无法找到包装Mongodb-org
我无法在Ubuntu 22.04上安装mongoDB,
~$ sudo apt-get update
~$ sudo apt-get install -y mongodb-org
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package mongodb-org
然后我尝试了
~$ sudo apt-get install -y 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
I'm not able to install mongoDB on my ubuntu 22.04
~$ sudo apt-get update
~$ sudo apt-get install -y mongodb-org
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package mongodb-org
Then I tried this
~$ sudo apt-get install -y 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能已经错过了回购的重点,请检查确切的步骤在这里
对于MongoDB 5.0,有望创建此恰当列表:
如下:
然后执行:
因此要考虑新的回购...
You have maybe missed the point with the repo , check the exact steps here
For mongoDB 5.0 it is expected to create this apt list:
as follow:
and then executing:
So the new repo to be considered ...
这是因为
要解决此问题,您必须安装
libssl1.1
,所以我发现我解决了解决方案,只需键入以下命令
步骤-1:open终端(ctrl+alt+t)
步骤-2:键入
sudo -s
按Enter并输入您的root密码步骤-3:键入
sudo -i
,然后按Enter步骤-4:键入
wget http://archive.ubuntu.com/ubuntu/pool/main/main/o/openssl/libssl1.1.1.1.1.1.1f-1ubuntu2_amd64.deb
步骤-5:键入
sudo dpkg -i libssl1.1.1.1.1.1f-1ubuntu2_amd64.deb
,然后按Enter您已经成功安装了
libssl1.1
,您可以去通过键入安装mongoDB:sudo apt -get install -y mongodb
it is because
to fix this you have to install
libssl1.1
so , i found i solution to fix it just type the following command
Step - 1 : Open Terminal (Ctrl+Alt+T)
Step - 2 : type
sudo -s
press enter and type your root passwordStep - 3 : type
sudo -i
and press enterStep - 4 : type
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb
and press enterStep - 5 : type
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb
and press enterYou have successfully installed
libssl1.1
and you can go to install mongodb by typing :sudo apt-get install -y mongodb