我正在尝试按照MigrationGuide中的步骤(已修改以反映我正在处理非当前版本的事实)从 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
检查系统中是否存在 e2fsprogs 的 32 位版本(i386、i586、i686),如果不需要,请将其删除。
正如 HD 所说,旧版本的 yum 中存在一个已知错误,如果单个包有 2 个或多个冲突,yum 将修复第一个,然后在第二个(这里 .i?86 和 .x86_64 的冲突都算一个)每个)。
您可以获取 5.4 的 yum 测试版,或者删除其中一个拱门……或者手动更新 e2fsprogs (这样就不会有冲突)。