我正在尝试按照移民指南(修改以反映我正在处理非当前版本的事实)从 RHEL 5.1 迁移到 CentOS 5.1。我使用了以下命令:
# rpm -e --nodeps redhat-release-notes redhat-release yum-rhn-plugin redhat-logos
# rpm -ivh http://vault.centos.org/5.1/os/x86_64/CentOS/centos-release-5-1.0.el5.centos.1.x86_64.rpm http://vault.centos.org/5.1/os/x86_64/CentOS/centos-release-notes-5.1.0-2.x86_64.rpm
# yum update
此yum update
步骤失败,并出现错误,声称 e2fsprogs 和内核之间存在冲突。我在下面提供了更详细的错误。
# yum -d7 upgrade kernel
Loading "installonlyn" plugin
Running "config" handler for "installonlyn" plugin
Yum Version: 3.0.1
COMMAND: yum -d7
Installroot: /
Ext Commands:
kernel
Setting up Upgrade Process
Setting up repositories
Reading repository metadata in from local files
Setting up Package Sacks
Reading Local RPMDB
Building updates object
Resolving Dependencies
1248192166.57
--> Populating transaction set with selected packages. Please wait.
Member: kernel.x86_64 0-2.6.18-128.2.1.el5 - u
kernel - 2.6.18-128.2.1.el5.x86_64 converted to install
Adding Package kernel - 2.6.18-128.2.1.el5.x86_64 in mode i
---> Package kernel.x86_64 0:2.6.18-128.2.1.el5 set to be installed
--> Running transaction check
# of Deps = 1
Dep Number: 1/1
--> Processing Conflict: kernel conflicts e2fsprogs < 1.37-4
TSINFO: Updating e2fsprogs - 1.39-20.el5.x86_64 to resolve conflict.
miss = 0
conf = 0
CheckDeps = 1
--> Restarting Dependency Resolution with new changes.
---> Loop Number: 2
Restarting Loop
--> Populating transaction set with selected packages. Please wait.
Member: kernel.x86_64 0-2.6.18-128.2.1.el5 - i
Member: e2fsprogs.x86_64 0-1.39-20.el5 - u
Adding Package e2fsprogs - 1.39-20.el5.x86_64 in mode u
---> Package e2fsprogs.x86_64 0:1.39-20.el5 set to be updated
--> Running transaction check
# of Deps = 3
Dep Number: 1/3
--> Processing Conflict: kernel conflicts e2fsprogs < 1.37-4
Error: No Package Matching kernel.x86_64
答案1
检查您的系统中是否存在 32 位版本 (i386、i586、i686) 的 e2fsprogs,如果不需要,请将其删除。
答案2
正如 HD 所说,旧版本的 yum 中有一个已知的错误,如果单个软件包中存在 2 个或更多冲突,yum 将先修复第一个,然后放弃第二个(这里 .i?86 和 .x86_64 的冲突各算一个)。
您可以获取 5.4 版的 yum 测试版,或者删除其中一个 arches...或者手动更新 e2fsprogs(这样就不会发生冲突)。