无法找到包装Mongodb-org

发布于 2025-02-11 12:55:54 字数 659 浏览 1 评论 0原文

我无法在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

忆伤 2025-02-18 12:55:54

您可能已经错过了回购的重点,请检查确切的步骤在这里

对于MongoDB 5.0,有望创建此恰当列表:

 /etc/apt/sources.list.d/mongodb-org-5.0.list 

如下:

echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list

然后执行:

 sudo  apt update 

因此要考虑新的回购...

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:

 /etc/apt/sources.list.d/mongodb-org-5.0.list 

as follow:

echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list

and then executing:

 sudo  apt update 

So the new repo to be considered ...

柳絮泡泡 2025-02-18 12:55:54

这是因为

 mongodb-org-mongos : Depends: libssl1.1 (>= 1.1.0) but it is not installable
 mongodb-org-server : Depends: libssl1.1 (>= 1.1.0) but it is not installable
 mongodb-org-shell : Depends: libssl1.1 (>= 1.1.0) but it is not installable

要解决此问题,您必须安装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

 mongodb-org-mongos : Depends: libssl1.1 (>= 1.1.0) but it is not installable
 mongodb-org-server : Depends: libssl1.1 (>= 1.1.0) but it is not installable
 mongodb-org-shell : Depends: libssl1.1 (>= 1.1.0) but it is not installable

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 password
Step - 3 : type sudo -i and press enter
Step - 4 : type wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb and press enter
Step - 5 : type sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb and press enter

You have successfully installed libssl1.1 and you can go to install mongodb by typing : sudo apt-get install -y mongodb

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文