执行yum更新时依赖关系问题

当我试图做yum更新,有问题,你能让我知道哪里是问题?

[~]# 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 

我认为你的系统的更新资料库的元数据已过时。

更新失败,因为无法find相应的perl-Git软件包更新。 但是,我检查了我的本地CentOS镜像,并且正确的更新包在那里。

因此,我怀疑你有更新回购的旧元数据。 我build议你清理你的元数据,然后再次尝试更新。

 yum clean metadata 

如果仍然失败,那么问题可能在于镜像,而不是您的系统。 在这种情况下,等待24小时,希望镜像恢复同步。

我尝试了这么多的命令,我发现以下命令非常有用。

 # yum update --disableexcludes=main