我有一个CentOS 6.9 Linux VM,它无法访问存储库,即删除了文件/etc/yum.repos.d/CentOS-Base.repo
,以防止意外更新软件包,因为我们需要一组特定版本。
因此,我正在尝试仅更新必要的软件包。我已经安装了pacemaker-cli-1.1.15-5.el6
,并且想要将其更新为pacemaker-cli-1.1.18-3.el6
。它的依存关系是pacemaker-libs-1.1.15-5.el6
。所以我尝试了以下命令
sudo yum localinstall http://mirror.centos.org/centos/6/os/x86_64/Packages/pacemaker-libs-1.1.18-3.el6.x86_64.rpm http://mirror.centos.org/centos/6/os/x86_64/Packages/pacemaker-cli-1.1.18-3.el6.x86_64.rpm
但是我遇到了以下错误:
Loaded plugins: fastestmirror, priorities
Setting up Local Package Process
pacemaker-libs-1.1.18-3.el6.x86_64.rpm | 578 kB 00:00
Examining /var/tmp/yum-root-xFPI0g/pacemaker-libs-1.1.18-3.el6.x86_64.rpm: pacemaker-libs-1.1.18-3.el6.x86_64
Marking /var/tmp/yum-root-xFPI0g/pacemaker-libs-1.1.18-3.el6.x86_64.rpm as an update to pacemaker-libs-1.1.15-5.el6.x86_64
Loading mirror speeds from cached hostfile
pacemaker-cli-1.1.18-3.el6.x86_64.rpm | 312 kB 00:00
Examining /var/tmp/yum-root-xFPI0g/pacemaker-cli-1.1.18-3.el6.x86_64.rpm: pacemaker-cli-1.1.18-3.el6.x86_64
Marking /var/tmp/yum-root-xFPI0g/pacemaker-cli-1.1.18-3.el6.x86_64.rpm as an update to pacemaker-cli-1.1.15-5.el6.x86_64
Resolving Dependencies
--> Running transaction check
---> Package pacemaker-cli.x86_64 0:1.1.15-5.el6 will be updated
--> Processing Dependency: pacemaker-cli = 1.1.15-5.el6 for package: pacemaker-1.1.15-5.el6.x86_64
---> Package pacemaker-cli.x86_64 0:1.1.18-3.el6 will be an update
---> Package pacemaker-libs.x86_64 0:1.1.15-5.el6 will be updated
--> Processing Dependency: pacemaker-libs = 1.1.15-5.el6 for package: pacemaker-1.1.15-5.el6.x86_64
--> Processing Dependency: pacemaker-libs = 1.1.15-5.el6 for package: pacemaker-cluster-libs-1.1.15-5.el6.x86_64
---> Package pacemaker-libs.x86_64 0:1.1.18-3.el6 will be an update
--> Finished Dependency Resolution
Error: Package: pacemaker-1.1.15-5.el6.x86_64 (@scalearc-3.2)
Requires: pacemaker-libs = 1.1.15-5.el6
Removing: pacemaker-libs-1.1.15-5.el6.x86_64 (@scalearc-3.2)
pacemaker-libs = 1.1.15-5.el6
Updated By: pacemaker-libs-1.1.18-3.el6.x86_64 (/pacemaker-libs-1.1.18-3.el6.x86_64)
pacemaker-libs = 1.1.18-3.el6
Error: Package: pacemaker-1.1.15-5.el6.x86_64 (@scalearc-3.2)
Requires: pacemaker-cli = 1.1.15-5.el6
Removing: pacemaker-cli-1.1.15-5.el6.x86_64 (@scalearc-3.2)
pacemaker-cli = 1.1.15-5.el6
Updated By: pacemaker-cli-1.1.18-3.el6.x86_64 (/pacemaker-cli-1.1.18-3.el6.x86_64)
pacemaker-cli = 1.1.18-3.el6
Error: Package: pacemaker-cluster-libs-1.1.15-5.el6.x86_64 (@scalearc-3.2)
Requires: pacemaker-libs = 1.1.15-5.el6
Removing: pacemaker-libs-1.1.15-5.el6.x86_64 (@scalearc-3.2)
pacemaker-libs = 1.1.15-5.el6
Updated By: pacemaker-libs-1.1.18-3.el6.x86_64 (/pacemaker-libs-1.1.18-3.el6.x86_64)
pacemaker-libs = 1.1.18-3.el6
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
你能帮忙吗?
答案 0 :(得分:0)
显然,发生此错误是因为命令中并未列出所有依赖项。所有4个pacemaker
组件都必须立即更新,执行此命令的命令是:
sudo yum install http://mirror.centos.org/centos/6/os/x86_64/Packages/pacemaker-libs-1.1.18-3.el6.x86_64.rpm http://mirror.centos.org/centos/6/os/x86_64/Packages/pacemaker-cli-1.1.18-3.el6.x86_64.rpm http://mirror.centos.org/centos/6/os/x86_64/Packages/pacemaker-1.1.18-3.el6.x86_64.rpm http://mirror.centos.org/centos/6/os/x86_64/Packages/pacemaker-cluster-libs-1.1.18-3.el6.x86_64.rpm