Unable to install graylog on ubuntu

Hi,

I am unable to install graylog in my local pc ubuntu. I am folllow your ubuntu installation guide but not success yet.

https://docs.graylog.org/en/3.0/pages/installation/os/ubuntu.html

Every time showing me in mongoDB installation-

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.

Thanks in advance

Maybe this could help you.

Cheers

Hello Jonas,

Thanks for your reply

But i am already go thorough this and applied, but nothing works

Most likely you installed mongodb-org package, not mongodb. Try to uninstall it at first

sudo apt-get purge mongodb-org*

Then follow the guide exactly step-by-step
https://docs.graylog.org/en/3.0/pages/installation/os/ubuntu.html#mongodb

Hello Karlis,

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.

Have you tried to install mongodb anyway? Be sure to follow the manual exactly as written.

Hello Karlis,

Yes i am 100% sure i am already follow the steps exactly what instructed there.

Yes “mongodb” is installed. Is graylog also working with mongodb insted of mongodb-org?

Oh, sorry, my fault, ‘mongodb-org’ is the right package. And, I believe, you shouldn’t have ‘mongo’ installed. At least I have only ‘mongodb-org’.

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.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.