Not able to download the mongodb dependencies - mongodb

Getting the below error tried every command to download the dependency but still not able to download it
Please refer to the log here. These are the logs for installing mongodb by using the command sudo apt-get install mongodb
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
mongodb : Depends: mongodb-server (>= 1:2.4.1-2) but it is not going to be installed
mongodb-org : Depends: mongodb-org-server but it is not going to be installed
Depends: mongodb-org-mongos but it is not going to be installed
Depends: mongodb-org-tools but it is not going to be installed
Conflicts: mongodb but 1:3.6.3-0ubuntu1.1 is to be installed
mongodb-org-shell : Conflicts: mongodb but 1:3.6.3-0ubuntu1.1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Related

how to install mongodb specific version?

hi i want to install mongodb version 3.6.8 in my computer i follow mongodb official documentary but i got a error
sudo apt-get install -y mongodb-org=3.6.8 mongodb-org-server=3.6.8 mongodb-org-shell=3.6.8 mongodb-org-mongos=3.6.8 mongodb-org-tools=3.6.8
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mongodb-org-mongos : Depends: libssl1.0.0 (>= 1.0.2~beta3) but it is not installable
mongodb-org-server : Depends: libssl1.0.0 (>= 1.0.2~beta3) but it is not installable
mongodb-org-shell : Depends: libssl1.0.0 (>= 1.0.2~beta3) but it is not installable
mongodb-org-tools : Depends: libssl1.0.0 (>= 1.0.2~beta3) but it is not installable
E: Unable to correct problems, you have held broken packages.

Unable to install or remove mongodb

I am trying to install mongodb 4.4 by using (running as root): apt install -y mongodb-org
but then I got
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
mongodb-org : Depends: mongodb-org-mongos but it is not going to be installed
mongodb-org-tools : Depends: mongodb-database-tools but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
So I use apt --fix-broken install and got:
(Reading database ... 72856 files and directories currently installed.)
Preparing to unpack .../mongodb-org-server_4.4.2_amd64.deb ...
Unpacking mongodb-org-server (4.4.2) ...
dpkg: error processing archive /var/cache/apt/archives/mongodb-org-server_4.4.2_amd64.deb (--unpack):
trying to overwrite '/usr/bin/mongod', which is also in package mongodb-server-core 1:3.6.3-0ubuntu1.1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../mongodb-org-mongos_4.4.2_amd64.deb ...
Unpacking mongodb-org-mongos (4.4.2) ...
dpkg: error processing archive /var/cache/apt/archives/mongodb-org-mongos_4.4.2_amd64.deb (--unpack):
trying to overwrite '/usr/bin/mongos', which is also in package mongodb-server-core 1:3.6.3-0ubuntu1.1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../mongodb-database-tools_100.2.1_amd64.deb ...
Unpacking mongodb-database-tools (100.2.1) ...
dpkg: error processing archive /var/cache/apt/archives/mongodb-database-tools_100.2.1_amd64.deb (--unpack):
trying to overwrite '/usr/bin/bsondump', which is also in package mongo-tools 3.6.3-0ubuntu1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/mongodb-org-server_4.4.2_amd64.deb
/var/cache/apt/archives/mongodb-org-mongos_4.4.2_amd64.deb
/var/cache/apt/archives/mongodb-database-tools_100.2.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
So I try to remove mongodb by using: apt remove mongodb-org and got:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
mongodb-org-tools : Depends: mongodb-database-tools but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
See Mongodb is not updated properly from 4.2 to 4.4.
Remove all installed mongodb packages then install the 4.4 ones.
Use dpkg -l |grep mongodb to find which ones you have installed.

unfinished installation of pgadmin4 keeps blocking other installations

I have been trying to install pgAdmin4 but I get this error below, I tried to resolve the error and I couldn't, so I decided to go on with my installations, then I tried Mongodb, it also can't install
sudo apt-get install -y mongodb-org=4.4.2 mongodb-org-server=4.4.2 mongodb-org-shell=4.4.2 mongodb-org-mongos=4.4.2 mongodb-org-tools=4.4.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
mongodb-org-tools : Depends: mongodb-database-tools but it is not going to be installed
Depends: mongodb-org-database-tools-extra but it is not going to be installed
pgadmin4 : Depends: pgadmin4-web but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
I have tried:
sudo apt --fix-broken install
but still no positive yields as the error persists
How can I fully remove pgAdmin, I mean anything related to postgres, so that I re install a new fresh bundle.
The problem was with my dpkg config. but this helped me out
https://itectec.com/ubuntu/ubuntu-how-to-remove-install-a-package-that-is-not-fully-installed/

install postgresql on ubuntu 19.10

I'm trying to install postgresql on ubuntu 19.10 (Eoan). I've tried many ways but it seems that even the newest version of postgresql (12) is not supported.
Does anyone know if it can be installed in some way?
this is the error I get when I'm trying to install, for example, postgresql 11:
$ sudo apt-get install postgresql-11
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
postgresql-11 : Depends: postgresql-client-11
Depends: libicu55 (>= 55.1-1~) but it is not installable
Depends: libpq5 (>= 9.3~) but it is not going to be installed
Depends: libssl1.0.0 (>= 1.0.2~beta3) but it is not installable
Recommends: sysstat but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Try this:
https://askubuntu.com/a/1074728
sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main"
sudo apt-get update
sudo apt-get install libicu55

Cannot install latest Mongdb

My production Mongo database was hacked and all databases deleted. I now want to upgrade to the latest version of Mongo but am having extraordinary problems. Im on Linux Mint 17.1. Im following instructions here:
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
When I run:
sudo apt-get install -y mongodb-org
I end up with error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mongodb-org : Depends: mongodb-org-shell but it is not going to be installed
Depends: mongodb-org-server but it is not going to be installed
Depends: mongodb-org-mongos but it is not going to be installed
Depends: mongodb-org-tools but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
What can I try next? As I said, my app is down since the hack and now I cannot even install Mongo...
Try sudo apt-get install -f to fix packages.
If that doesn't work, figure out if you need all 4 packages, mongodb-org-server might be the only one you really need.
In this case you can try running the following command with a specific version (3.0.15 in my case):
sudo apt-get install -y --force-yes mongodb-org=3.0.15 mongodb-org-server=3.0.15 mongodb-org-shell=3.0.15 mongodb-org-mongos=3.0.15 mongodb-org-tools=3.0.15