Mongodb 没有从 4.2 正确更新到 4.4 [英] Mongodb is not updated properly from 4.2 to 4.4

查看:262
本文介绍了Mongodb 没有从 4.2 正确更新到 4.4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 ubuntu 18.04 上使用的是 mongodb 4.2.9

I was using mongodb 4.2.9 on ubuntu 18.04

我用包管理器安装了它.现在我将它更新到 4.4 版本使用包管理器以下 -->https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ 说明.

I installed it with package manager. Now I to update it to 4.4 version used package manager following --> https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ instructions.

安装没问题,但是当我编写 mongod -version 命令时,它显示 - db version v4.2.9.我尝试重新安装它说mongodb-org 已经是最新版本 (4.4.1). 但是 mongod -version 命令它显示 - db version v4.2.9.我怎样才能摆脱这个问题?

Installation was ok but when I write mongod -version command it shows - db version v4.2.9. I tried to re-install again it says mongodb-org is already the newest version (4.4.1). but mongod -version command it shows - db version v4.2.9. How can I get rid of this problem?

推荐答案

看起来 mongodb-org 是依赖所有其他包的元包,但它不需要依赖包来与它本身的版本相同.这适用于安装,但如果您在安装了较旧的单个软件包时安装 mongodb-org,则不会更新依赖软件包.

It looks like mongodb-org is the meta-package depending on all other packages, but it doesn't require dependent packages to be the same version as it is itself. This works fine for installation but doesn't update dependent packages if you install mongodb-org when you already have older individual packages installed.

修复:

  • 简单的解决方案 - apt-get upgrade.所有其他 MongoDB 包都应该更新.
  • 如果这不起作用,请再次手动安装所有其他软件包:apt-get install mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools.
  • Simple solution - apt-get upgrade. All of the other MongoDB packages should get updated.
  • If that doesn't work, manually install all the other packages again: apt-get install mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools.

你还有 mongodb-server ,如果它安装了你应该删除它,如果它没有安装你可以考虑在确保你不需要它的任何部分配置后清除它当前部署.

You also have mongodb-server in there, you should remove it if it's installed and if it's not installed you may consider purging it after ensuring you don't need any part of its configuration for your present deployment.

这篇关于Mongodb 没有从 4.2 正确更新到 4.4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆