Hi,I tried to install but failed MongoDB, BUT something went worng, i was try to fix it, but it didn't work

roni-0po

New Member
Joined
Oct 19, 2022
Messages
5
Reaction score
1
Credits
42
Linux MInt 21, I try to instal it for like 3 days but apparently I'm not doing something right. I would greatly appreciate it if you could tell me what I am doing wrong :))

Code:
Lenovo-Y520-15IKBM:~$ sudo apt install mongodb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package mongodb is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'mongodb' has no installation candidate

Lenovo-Y520-15IKBM:~$ ^C

Lenovo-Y520-15IKBM:~$ sudo apt-get purge mongo*
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'mongodb-server' for glob 'mongo*'
Note, selecting 'mongodb-dev' for glob 'mongo*'
Note, selecting 'mongodb' for glob 'mongo*'
Note, selecting 'mongoose' for glob 'mongo*'
Package 'mongodb-dev' is not installed, so not removed
Package 'mongodb' is not installed, so not removed
Package 'mongodb-server' is not installed, so not removed
Package 'mongoose' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 63 not upgraded.

Lenovo-Y520-15IKBM:~$ sudo apt install mongodb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package mongodb is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'mongodb' has no installation candidate

Lenovo-Y520-15IKBM:~$ ^C

Lenovo-Y520-15IKBM:~$ sudo apt remove --autoremove mongodb-org
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package mongodb-org
Lenovo-Y520-15IKBM:~$ ^C

Lenovo-Y520-15IKBM:~$ sudo apt install mongodb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package mongodb is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'mongodb' has no installation candi
 


This page may be of help. Mongodb is not in the offical repository so it can not be install that way. You will have to download the .deb file and install using gdebi Good luck.
 
This page may be of help. Mongodb is not in the offical repository so it can not be install that way. You will have to download the .deb file and install using gdebi Good luck.
I really want to ask you something, some ppl told that when im with LInux MInt 21, i shouldn't install Ubuntu stuff and try to see how to make it for LInux MInt, but in the link that you gave me there are no LInux MInt, only Ubuntu and Debian, but LInux MInt is based on Debian and Ubuntu. I need the Debian resource or the Ubuntu's
 
MongoDB 4.4 Enterprise Edition supports the following 64-bit Ubuntu LTS (long-term support) releases on x86_64 architecture:
  • 20.04 LTS ("Focal")
  • 18.04 LTS ("Bionic")
  • 16.04 LTS ("Xenial")


Mint 21 is based on Ubuntu 22.04 - so it is not supported - so you will have to wait for an upgrade or downgrade your OS
 
Even though 22.04 is not yet support I would give the 20.04 version a try. At worst it will not install and you can remove it.
 
I really want to ask you something, some ppl told that when im with LInux MInt 21, i shouldn't install Ubuntu stuff and try to see how to make it for LInux MInt, but in the link that you gave me there are no LInux MInt, only Ubuntu and Debian, but LInux MInt is based on Debian and Ubuntu. I need the Debian resource or the Ubuntu's
Mint is based on Ubuntu. Mint 21 is based on Ubuntu 22.04 Mint 20.x is based on 20.4 and most of the packages in the Mint repositories are Ubuntu packages. Just a few are unique to Mint. I have had no problems install ubuntu packages on Mint other than sometimes there are dependency problems where some Ubuntu packages have been modified to work with Mint. But those are few. It usually does not hurt to try a Ubuntu package. 90 plus percent of the time they will work. I would not install gnome specific packages, that is those that are desktop packages. Because if you are using Cinnamon they may conflict with that desktop. Other than that try it. As always it's a good Idea to have a back up of important files.
 
Linux MInt 21, I try to instal it for like 3 days but apparently I'm not doing something right. I would greatly appreciate it if you could tell me what I am doing wrong :))

Code:
Lenovo-Y520-15IKBM:~$ sudo apt install mongodb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package mongodb is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'mongodb' has no installation candidate

Lenovo-Y520-15IKBM:~$ ^C

Lenovo-Y520-15IKBM:~$ sudo apt-get purge mongo*
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'mongodb-server' for glob 'mongo*'
Note, selecting 'mongodb-dev' for glob 'mongo*'
Note, selecting 'mongodb' for glob 'mongo*'
Note, selecting 'mongoose' for glob 'mongo*'
Package 'mongodb-dev' is not installed, so not removed
Package 'mongodb' is not installed, so not removed
Package 'mongodb-server' is not installed, so not removed
Package 'mongoose' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 63 not upgraded.

Lenovo-Y520-15IKBM:~$ sudo apt install mongodb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package mongodb is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'mongodb' has no installation candidate

Lenovo-Y520-15IKBM:~$ ^C

Lenovo-Y520-15IKBM:~$ sudo apt remove --autoremove mongodb-org
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package mongodb-org
Lenovo-Y520-15IKBM:~$ ^C

Lenovo-Y520-15IKBM:~$ sudo apt install mongodb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package mongodb is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'mongodb' has no installation candi
Hi, That packet is not available, try to use [email protected], I think this is the last version. if you want to install mongodb-community Edition, tak a look https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-os-x/

brew tap mongodb/brew
brew update
brew install [email protected]
 
Last edited:

Members online


Latest posts

Top