当前位置:  开发笔记 > 编程语言 > 正文

MongoDB 2.6更新错误

如何解决《MongoDB2.6更新错误》经验,为你挑选了1个好方法。

我什么时候发生冲突

[root @ MongoDB ec2-user] #sudo yum install mongodb-org加载的插件:priority,security,update-motd,upgrade-helper设置安装进程解析依赖关系 - >运行事务检查--->包mongodb-org.将安装x86_64 0:2.6.0-1 - >处理依赖项:mongodb-org-tools = 2.6.0 for package:mongodb-org-2.6.0-1.x86_64 - > Processing Dependency:mongodb-org- shell = 2.6.0 for package:mongodb-org-2.6.0-1.x86_64 - > Processing Dependency:mongodb-org-server = 2.6.0 for package:mongodb-org-2.6.0-1.x86_64 - >处理依赖性:mongodb-org-mongos = 2.6.0 for package:mongodb-org-2.6.0-1.x86_64 - >运行事务检查--->包mongodb-org-mongos.x86_64 0:2.6.0 -1将被安装--->软件包mongodb-org-server.x86_64 0:2.6.0-1将被安装--->软件包mongodb-org-shell.x86_64 0:2.6.0-1将被安装 - - >软件包mongodb-org-tools.x86_64 0:2.6.0-1将被安装 - >处理冲突:mongodb-org-tools-2.6.0-1.x86_64冲突莫 ngo-10gen-server - >处理冲突:mongodb-org-tools-2.6.0-1.x86_64冲突mongo-10gen - >处理冲突:mongodb-org-mongos-2.6.0-1.x86_64冲突mongo- 10gen-server - >处理冲突:mongodb-org-mongos-2.6.0-1.x86_64冲突mongo-10gen - >处理冲突:mongodb-org-shell-2.6.0-1.x86_64冲突mongo-10gen- server - > Processing Conflict:mongodb-org-shell-2.6.0-1.x86_64冲突mongo-10gen - >处理冲突:mongodb-org-2.6.0-1.x86_64冲突mongo-10gen-server - >处理冲突:mongodb-org-2.6.0-1.x86_64冲突mongo-10gen - >处理冲突:mongodb-org-server-2.6.0-1.x86_64冲突mongo-10gen-server - >处理冲突:mongodb -org-server-2.6.0-1.x86_64冲突mongo-10gen - >完成的依赖项解析错误:mongodb-org-shell与mongo-10gen-2.4.10-mongodb_1.x86_64冲突错误:mongodb-org-server冲突与mongo-10gen-server-2.4.10-mongodb_1.x86_64错误:mongodb-org-mongos与mongo-1冲突 0gen-2.4.10-mongodb_1.x86_64错误:mongodb-org-mongos与mongo-10gen-server-2.4.10-mongodb_1.x86_64冲突错误:mongodb-org-tools与mongo-10gen-2.4.10-mongodb_1冲突. x86_64错误:mongodb-org-server与mongo-10gen-2.4.10-mongodb_1.x86_64冲突错误:mongodb-org-tools与mongo-10gen-server-2.4.10-mongodb_1.x86_64冲突错误:mongodb-org与mongo-10gen-server-2.4.10-mongodb_1.x86_64错误:mongodb-org与mongo-10gen-2.4.10-mongodb_1.x86_64冲突错误:mongodb-org-shell与mongo-10gen-server-2.4.10-冲突mongodb_1.x86_64您可以尝试使用--skip-broken解决问题您可以尝试运行:rpm -Va --nofiles --nodigest

并更新给出此错误:

sudo yum update mongodb-org加载插件:优先级,安全性,update-motd,upgrade-helper amzn-main
| 2.1 kB 00:00 amzn-updates
| 2.3 kB 00:00设置更新进程包mongodb-org可用但未安装.

我怎样才能解决这个问题 ?



1> 小智..:

由于包名已更改,因此您需要删除旧包并安装新包.但是,不要将其作为两个步骤,而是使用yum shell更清晰.这将删除旧包并在单个事务中安装新包:

yum shell
> install mongodb-org
> remove mongo-10gen
> remove mongo-10gen-server
> run
--> Running transaction check
---> Package mongo-10gen.i686 0:2.4.10-mongodb_1 will be erased
---> Package mongo-10gen-server.i686 0:2.4.10-mongodb_1 will be erased
---> Package mongodb-org.i686 0:2.6.0-1 will be installed
--> Processing Dependency: mongodb-org-tools = 2.6.0 for package: mongodb-org-2.6.0-1.i686
--> Processing Dependency: mongodb-org-shell = 2.6.0 for package: mongodb-org-2.6.0-1.i686
--> Processing Dependency: mongodb-org-server = 2.6.0 for package: mongodb-org-2.6.0-1.i686
--> Processing Dependency: mongodb-org-mongos = 2.6.0 for package: mongodb-org-2.6.0-1.i686
--> Running transaction check
---> Package mongodb-org-mongos.i686 0:2.6.0-1 will be installed
---> Package mongodb-org-server.i686 0:2.6.0-1 will be installed
---> Package mongodb-org-shell.i686 0:2.6.0-1 will be installed
---> Package mongodb-org-tools.i686 0:2.6.0-1 will be installed
--> Finished Dependency Resolution

================================================================================
 Package                  Arch       Version                 Repository    Size
================================================================================
Installing:
 mongodb-org              i686       2.6.0-1                 10gen        4.6 k
Removing:
 mongo-10gen              i686       2.4.10-mongodb_1        @10gen       181 M
 mongo-10gen-server       i686       2.4.10-mongodb_1        @10gen        30 M
Installing for dependencies:
 mongodb-org-mongos       i686       2.6.0-1                 10gen        6.7 M
 mongodb-org-server       i686       2.6.0-1                 10gen        8.9 M
 mongodb-org-shell        i686       2.6.0-1                 10gen        4.2 M
 mongodb-org-tools        i686       2.6.0-1                 10gen         88 M

Transaction Summary
================================================================================
Install  1 Package  (+4 Dependent packages)
Remove   2 Packages

Total download size: 108 M
Is this ok [y/d/N]: y
Downloading packages:
(1/5): mongodb-org-2.6.0-1.i686.rpm                      | 4.6 kB     00:00
(2/5): mongodb-org-mongos-2.6.0-1.i686.rpm               | 6.7 MB     00:00
(3/5): mongodb-org-server-2.6.0-1.i686.rpm               | 8.9 MB     00:00
(4/5): mongodb-org-shell-2.6.0-1.i686.rpm                | 4.2 MB     00:00
(5/5): mongodb-org-tools-2.6.0-1.i686.rpm                |  88 MB     00:04
--------------------------------------------------------------------------------
Total                                               19 MB/s | 108 MB  00:05
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : mongodb-org-server-2.6.0-1.i686                              1/7
  Installing : mongodb-org-mongos-2.6.0-1.i686                              2/7
  Installing : mongodb-org-tools-2.6.0-1.i686                               3/7
  Installing : mongodb-org-shell-2.6.0-1.i686                               4/7
  Installing : mongodb-org-2.6.0-1.i686                                     5/7
  Erasing    : mongo-10gen-server-2.4.10-mongodb_1.i686                     6/7
  Erasing    : mongo-10gen-2.4.10-mongodb_1.i686                            7/7
  Verifying  : mongodb-org-2.6.0-1.i686                                     1/7
  Verifying  : mongodb-org-shell-2.6.0-1.i686                               2/7
  Verifying  : mongodb-org-tools-2.6.0-1.i686                               3/7
  Verifying  : mongodb-org-mongos-2.6.0-1.i686                              4/7
  Verifying  : mongodb-org-server-2.6.0-1.i686                              5/7
  Verifying  : mongo-10gen-server-2.4.10-mongodb_1.i686                     6/7
  Verifying  : mongo-10gen-2.4.10-mongodb_1.i686                            7/7

Removed:
  mongo-10gen.i686 0:2.4.10-mongodb_1
  mongo-10gen-server.i686 0:2.4.10-mongodb_1

Installed:
  mongodb-org.i686 0:2.6.0-1

Dependency Installed:
  mongodb-org-mongos.i686 0:2.6.0-1      mongodb-org-server.i686 0:2.6.0-1
  mongodb-org-shell.i686 0:2.6.0-1       mongodb-org-tools.i686 0:2.6.0-1

Finished Transaction
> exit
Leaving Shell

推荐阅读
手机用户2502852037
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有