[root@Lnx sam]# yum clean all
Loaded plugins: fastestmirror, langpacks
Cleaning repos: base epel extras updates
Cleaning up everything
Cleaning up list of fastest mirrors
[root@Lnx sam]# yum repolist enabled
Loaded plugins: fastestmirror, langpacks
base | 3.6 kB 00:00:00
epel/x86_64/metalink | 3.5 kB 00:00:00
epel | 4.3 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/7): base/7/x86_64/group_gz | 156 kB 00:00:00
(2/7): extras/7/x86_64/primary_db | 110 kB 00:00:00
(3/7): epel/x86_64/group_gz | 170 kB 00:00:05
(4/7): updates/7/x86_64/primary_db | 2.9 MB 00:00:08
(5/7): base/7/x86_64/primary_db | 5.7 MB 00:00:18
(6/7): epel/x86_64/primary_db | 4.8 MB 00:00:24
(7/7): epel/x86_64/updateinfo | 841 kB 00:00:24
Determining fastest mirrors
* base: centos.uniminuto.edu
* epel: mirror.cedia.org.ec
* extras: centos.uniminuto.edu
* updates: centos.uniminuto.edu
repo id repo name status
base/7/x86_64 CentOS-7 - Base 9,591
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 12,005
extras/7/x86_64 CentOS-7 - Extras 227
updates/7/x86_64 CentOS-7 - Updates 1,014
repolist: 22,837
[root@Lnx sam]#
我有这个:
--> Finished Dependency Resolution
Error: Package: libgpod-0.8.3-14.el7.x86_64 (@epel)
Requires: libplist.so.1()(64bit)
Removing: libplist-1.10-4.el7.x86_64 (@anaconda)
libplist.so.1()(64bit)
Updated By: libplist-1.12-3.el7.x86_64 (base)
~libplist.so.3()(64bit)
Error: Package: libgpod-0.8.3-14.el7.x86_64 (@epel)
Requires: libusbmuxd.so.2()(64bit)
Removing: usbmuxd-1.0.8-11.el7.x86_64 (@anaconda)
libusbmuxd.so.2()(64bit)
Obsoleted By: usbmuxd-1.1.0-1.el7.x86_64 (base)
Not found
Error: Package: libgpod-0.8.3-14.el7.x86_64 (@epel)
Requires: libimobiledevice.so.4()(64bit)
Removing: libimobiledevice-1.1.5-6.el7.x86_64 (@anaconda)
libimobiledevice.so.4()(64bit)
Updated By: libimobiledevice-1.2.0-1.el7.x86_64 (base)
~libimobiledevice.so.6()(64bit)
You could try using --skip-broken to work around the problem
** Found 4 pre-existing rpmdb problem(s), 'yum check' output follows:
ipa-client-4.4.0-14.el7.centos.7.x86_64 has installed conflicts freeipa-client: ipa-client-4.4.0-14.el7.centos.7.x86_64
ipa-client-common-4.4.0-14.el7.centos.7.noarch has installed conflicts freeipa-client-common: ipa-client-common-4.4.0-14.el7.centos.7.noarch
ipa-common-4.4.0-14.el7.centos.7.noarch has installed conflicts freeipa-common: ipa-common-4.4.0-14.el7.centos.7.noarch
ipa-python-compat-4.4.0-14.el7.centos.7.noarch has installed conflicts freeipa-python-compat: ipa-python-compat-4.4.0-14.el7.centos.7.noarch
[root@Lnx sam]#
[root@Lnx sam]# yum check
Loaded plugins: fastestmirror, langpacks
ipa-client-4.4.0-14.el7.centos.7.x86_64 has installed conflicts freeipa-client: ipa-client-4.4.0-14.el7.centos.7.x86_64
ipa-client-common-4.4.0-14.el7.centos.7.noarch has installed conflicts freeipa-client-common: ipa-client-common-4.4.0-14.el7.centos.7.noarch
ipa-common-4.4.0-14.el7.centos.7.noarch has installed conflicts freeipa-common: ipa-common-4.4.0-14.el7.centos.7.noarch
ipa-python-compat-4.4.0-14.el7.centos.7.noarch has installed conflicts freeipa-python-compat: ipa-python-compat-4.4.0-14.el7.centos.7.noarch
Error: check all
[root@Lnx sam]#
我无法更新 CentOS 7!
yum update --skip-broken
出现无限循环!
有什么线索吗?
答案1
基本上我必须卸载、更新、重新安装。
将 freeipa 作为 root 删除后...
# yum remove freeipa-client
# yum remove freeipa-common
# yum remove freeipa-client-common
...我在 libplist-1.10-4.el7.x86_64 上仍然存在此冲突。所以我用...
# yum whatprovides libgpod-0.8.3-14.el7.x86_64
...发现 Rythmbox 也使用了它。
# yum autoremove libgpod-0.8.3-14.el7.x86_64
...也删除了节奏盒。我现在安装了 yum 优先级,事后看来,也许不需要。我建议跳过应该进行的步骤这里并继续更新和重新安装已卸载的软件包。如果更新失败,则需要 yum 优先级,说明在最后。
像以前一样继续更新
# yum update
重新安装已删除的软件包
# yum install rythmbox
# yum install freeipa*
完毕。
设置 yum 优先级以尝试避免依赖性问题。
正如中所描述的 https://wiki.centos.org/PackageManagement/Yum/Priorities通过确保 /etc/yum.conf 包含来打开 yum 插件
plugins=1
然后运行
yum install yum-plugin-priorities
检查 /etc/yum/pluginconf.d/priorities.conf 是否包含
[main]
enabled=1
最后在/etc/yum.repos.d/*.repo中添加优先级
- 到 Centos*.repo 添加行“priority=1”
- 向 epel*.reo 添加行“priority=5”
- 到 google*.repo 添加行“priority=10”