centos 7 - ошибка обновления yum

Я не могу установить панель управления, потому что не удалось обновить yum. Я использую centos7. Пожалуйста, помогите мне .... Что мне делать?

[root@trial ~]# yum 
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.nes.co.id
 * centosplus: mirror.nes.co.id
 * epel: epel.mirror.angkasa.id
 * extras: mirror.axarva.id
 * updates: mirror.nes.co.id
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transaction --cleanup-only" and "yum history redo last", first to finish them. If those don't work you'll have to try removing/installing packages by hand (maybe package-cleanup can help).
The program yum-complete-transaction is found in the yum-utils package.
--> Running transaction check
---> Package nettle.x86_64 0:2.7.1-8.el7 will be updated
--> Processing Dependency: libhogweed.so.2()(64bit) for package: gnutls-3.3.26-9.el7.x86_64
--> Processing Dependency: libnettle.so.4()(64bit) for package: gnutls-3.3.26-9.el7.x86_64
---> Package nettle.x86_64 0:3.2-2.el6 will be an update
--> Processing Dependency: libgmp.so.3()(64bit) for package: nettle-3.2-2.el6.x86_64
--> Finished Dependency Resolution
Error: Package: gnutls-3.3.26-9.el7.x86_64 (@base)
           Requires: libhogweed.so.2()(64bit)
           Removing: nettle-2.7.1-8.el7.x86_64 (@base)
               libhogweed.so.2()(64bit)
           Updated By: nettle-3.2-2.el6.x86_64 (epel)
              ~libhogweed.so.4()(64bit)
Error: Package: nettle-3.2-2.el6.x86_64 (epel)
           Requires: libgmp.so.3()(64bit)
Error: Package: gnutls-3.3.26-9.el7.x86_64 (@base)
           Requires: libnettle.so.4()(64bit)
           Removing: nettle-2.7.1-8.el7.x86_64 (@base)
               libnettle.so.4()(64bit)
           Updated By: nettle-3.2-2.el6.x86_64 (epel)
              ~libnettle.so.6()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[root@trial ~]#
0
задан 15 November 2017 в 09:06
1 ответ

Если вы проверите сообщение об ошибке, вы увидите, что пакеты обновлений содержат префикс el6.x86_64 , этот пакет rpm для CentOS 6. Похоже, вы устанавливаете EPEL для CentOS 6. Удалите неправильное репо (например, rpm -qa | grep epel | xargs rpm -e или rm /etc/yum.repos.d/epel*.repo, если вы устанавливаете это вручную), запустите yum clean all , установите правую часть EPEL yum install epel-release и попробуйте снова запустить yum update .

2
ответ дан 4 December 2019 в 13:29

Теги

Похожие вопросы