当我试图做百胜更新,有问题,你能告诉我哪里是问题吗?
[~]# yum update --skip-broken
Loaded plugins: fastestmirror
Setting up Update Process
Determining fastest mirrors
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
Resolving Dependencies
--> Running transaction check
---> Package emacs-git.noarch 0:1.7.1-3.el6_4.1 will be updated
---> Package emacs-git.noarch 0:1.7.1-4.el6_7.1 will be an update
---> Package git.x86_64 0:1.7.1-3.el6_4.1 will be updated
--> Processing Dependency: git = 1.7.1-3.el6_4.1 for package: perl-Git- 1.7.1-3.el6_4.1.noarch
---> Package git.x86_64 0:1.7.1-4.el6_7.1 will be an update
--> Processing Dependency: perl-Git = 1.7.1-4.el6_7.1 for package: git-1.7.1-4.el6_7.1.x86_64
---> Package git-all.noarch 0:1.7.1-3.el6_4.1 will be updated
---> Package git-all.noarch 0:1.7.1-4.el6_7.1 will be an update
--> Processing Dependency: perl-Git = 1.7.1-4.el6_7.1 for package: git-all-1.7.1-4.el6_7.1.noarch
---> Package git-cvs.noarch 0:1.7.1-3.el6_4.1 will be updated
---> Package git-cvs.noarch 0:1.7.1-4.el6_7.1 will be an update
---> Package git-email.noarch 0:1.7.1-3.el6_4.1 will be updated
---> Package git-email.noarch 0:1.7.1-4.el6_7.1 will be an update
--> Processing Dependency: perl-Git = 1.7.1-4.el6_7.1 for package: git-email-1.7.1-4.el6_7.1.noarch
---> Package git-gui.noarch 0:1.7.1-3.el6_4.1 will be updated
---> Package git-gui.noarch 0:1.7.1-4.el6_7.1 will be an update
---> Package git-svn.noarch 0:1.7.1-3.el6_4.1 will be updated
---> Package git-svn.noarch 0:1.7.1-4.el6_7.1 will be an update
---> Package gitk.noarch 0:1.7.1-3.el6_4.1 will be updated
---> Package gitk.noarch 0:1.7.1-4.el6_7.1 will be an update
--> Running transaction check
---> Package emacs-git.noarch 0:1.7.1-3.el6_4.1 will be updated
--> Processing Dependency: emacs-git = 1.7.1-3.el6_4.1 for package: git-all-1.7.1-3.el6_4.1.noarch
---> Package git-cvs.noarch 0:1.7.1-3.el6_4.1 will be updated
--> Processing Dependency: git-cvs = 1.7.1-3.el6_4.1 for package: git-all-1.7.1-3.el6_4.1.noarch
---> Package git-gui.noarch 0:1.7.1-3.el6_4.1 will be updated
--> Processing Dependency: git-gui = 1.7.1-3.el6_4.1 for package: git-all-1.7.1-3.el6_4.1.noarch
---> Package git-svn.noarch 0:1.7.1-3.el6_4.1 will be updated
--> Processing Dependency: git-svn = 1.7.1-3.el6_4.1 for package: git-all-1.7.1-3.el6_4.1.noarch
---> Package gitk.noarch 0:1.7.1-3.el6_4.1 will be updated
--> Processing Dependency: gitk = 1.7.1-3.el6_4.1 for package: git-all-1.7.1-3.el6_4.1.noarch
Packages skipped because of dependency problems:
emacs-git-1.7.1-4.el6_7.1.noarch from updates
git-1.7.1-4.el6_7.1.x86_64 from updates
git-all-1.7.1-4.el6_7.1.noarch from updates
git-cvs-1.7.1-4.el6_7.1.noarch from updates
git-email-1.7.1-4.el6_7.1.noarch from updates
git-gui-1.7.1-4.el6_7.1.noarch from updates
git-svn-1.7.1-4.el6_7.1.noarch from updates
gitk-1.7.1-4.el6_7.1.noarch from updates我试图手动安装这些软件包,但失败了,不知道该怎么办?
更新:-我张贴yum更新输出也。
# yum update
Loaded plugins: fastestmirror
Setting up Update Process
Determining fastest mirrors
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
Resolving Dependencies
--> Running transaction check
---> Package emacs-git.noarch 0:1.7.1-3.el6_4.1 will be updated
---> Package emacs-git.noarch 0:1.7.1-4.el6_7.1 will be an update
---> Package git.x86_64 0:1.7.1-3.el6_4.1 will be updated
--> Processing Dependency: git = 1.7.1-3.el6_4.1 for package: perl-Git-1.7.1-3.el6_4.1.noarch
---> Package git.x86_64 0:1.7.1-4.el6_7.1 will be an update
--> Processing Dependency: perl-Git = 1.7.1-4.el6_7.1 for package: git-1.7.1-4.el6_7.1.x86_64
---> Package git-all.noarch 0:1.7.1-3.el6_4.1 will be updated
---> Package git-all.noarch 0:1.7.1-4.el6_7.1 will be an update
--> Processing Dependency: perl-Git = 1.7.1-4.el6_7.1 for package: git-all-1.7.1-4.el6_7.1.noarch
---> Package git-cvs.noarch 0:1.7.1-3.el6_4.1 will be updated
---> Package git-cvs.noarch 0:1.7.1-4.el6_7.1 will be an update
---> Package git-email.noarch 0:1.7.1-3.el6_4.1 will be updated
---> Package git-email.noarch 0:1.7.1-4.el6_7.1 will be an update
--> Processing Dependency: perl-Git = 1.7.1-4.el6_7.1 for package: git-email-1.7.1-4.el6_7.1.noarch
---> Package git-gui.noarch 0:1.7.1-3.el6_4.1 will be updated
---> Package git-gui.noarch 0:1.7.1-4.el6_7.1 will be an update
---> Package git-svn.noarch 0:1.7.1-3.el6_4.1 will be updated
---> Package git-svn.noarch 0:1.7.1-4.el6_7.1 will be an update
---> Package gitk.noarch 0:1.7.1-3.el6_4.1 will be updated
---> Package gitk.noarch 0:1.7.1-4.el6_7.1 will be an update
--> Finished Dependency Resolution
Error: Package: perl-Git-1.7.1-3.el6_4.1.noarch (@updates)
Requires: git = 1.7.1-3.el6_4.1
Removing: git-1.7.1-3.el6_4.1.x86_64 (@updates)
git = 1.7.1-3.el6_4.1
Updated By: git-1.7.1-4.el6_7.1.x86_64 (updates)
git = 1.7.1-4.el6_7.1
Error: Package: git-all-1.7.1-4.el6_7.1.noarch (updates)
Requires: perl-Git = 1.7.1-4.el6_7.1
Installed: perl-Git-1.7.1-3.el6_4.1.noarch (@updates)
perl-Git = 1.7.1-3.el6_4.1
Error: Package: git-email-1.7.1-4.el6_7.1.noarch (updates)
Requires: perl-Git = 1.7.1-4.el6_7.1
Installed: perl-Git-1.7.1-3.el6_4.1.noarch (@updates)
perl-Git = 1.7.1-3.el6_4.1
Error: Package: git-1.7.1-4.el6_7.1.x86_64 (updates)
Requires: perl-Git = 1.7.1-4.el6_7.1
Installed: perl-Git-1.7.1-3.el6_4.1.noarch (@updates)
perl-Git = 1.7.1-3.el6_4.1
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest发布于 2016-05-17 03:30:38
我尝试了这么多命令,发现下面的命令非常有用。
# yum update --disableexcludes=main发布于 2016-05-16 06:09:39
我认为您的系统用于更新存储库的元数据已经过时。
由于找不到相应的perl-Git包更新,更新失败了。但是,我检查了我的本地CentOS镜像,正确的更新包就在那里。
因此,我怀疑您有一些旧的元数据用于更新回购。我建议您清除元数据,然后再尝试更新。
yum clean metadata如果它仍然失败,问题可能是镜像,而不是你的系统。在这种情况下,只需等待24小时,希望镜像恢复同步。
https://serverfault.com/questions/776976
复制相似问题