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.
i am already tried so many suggestion from google search but nothhing works, still having same issue.
So it will be very helpful if any guidance from you.
when i am trying to purge mongodb-org* return following message:
Reading state information… Done
Note, selecting ‘mongodb-org-unstable-tools’ for glob ‘mongodb-org*’
Note, selecting ‘mongodb-org-mongos’ for glob ‘mongodb-org*’
Note, selecting ‘mongodb-org-tools’ for glob ‘mongodb-org*’
Note, selecting ‘mongodb-org-unstable-server’ for glob ‘mongodb-org*’
Note, selecting ‘mongodb-org-unstable-shell’ for glob ‘mongodb-org*’
Note, selecting ‘mongodb-org-shell’ for glob ‘mongodb-org*’
Note, selecting ‘mongodb-org-unstable-mongos’ for glob ‘mongodb-org*’
Note, selecting ‘mongodb-org-unstable’ for glob ‘mongodb-org*’
Note, selecting ‘mongodb-org’ for glob ‘mongodb-org*’
Note, selecting ‘mongodb-org-server’ for glob ‘mongodb-org*’
Package ‘mongodb-org-unstable’ is not installed, so not removed
Package ‘mongodb-org-unstable-mongos’ is not installed, so not removed
Package ‘mongodb-org-unstable-server’ is not installed, so not removed
Package ‘mongodb-org-unstable-shell’ is not installed, so not removed
Package ‘mongodb-org-unstable-tools’ is not installed, so not removed
Package ‘mongodb-org’ is not installed, so not removed
Package ‘mongodb-org-mongos’ is not installed, so not removed
Package ‘mongodb-org-server’ is not installed, so not removed
Package ‘mongodb-org-shell’ is not installed, so not removed
Package ‘mongodb-org-tools’ is not installed, so not removed
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-142 linux-headers-4.4.0-142-generic
linux-headers-4.4.0-143 linux-headers-4.4.0-143-generic
linux-image-4.4.0-142-generic linux-image-4.4.0-143-generic
linux-image-extra-4.4.0-142-generic linux-modules-4.4.0-143-generic
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
when i am searching for the error, in one link suggest, try to install mongodb and then try mongodb-org, then i was do so. Then mongodb is installed error free. But whenever i was tried for mongodb-org same error showing as mentioned above.
I still believe the problem is from both mongodb and mongodb-org installed. They can’t coexist.
Try to remove all mongodb packages completely, be sure nothing left behind. This can help (only removing, do not install anything in this step):
Run ‘apt autoremove’. Reboot, to be sure.
In /etc/apt/sources.list.d/ delete all ‘mongodb*’ lists.
Install mongodb-org, using manual from Graylog docs.
If that fails, have no idea.