我有一个7.9.2009版的CentOS Linux版本,每天都会发邮件/问题,我不知道如何解决。我每天收到一封电子邮件:
The following updates will be applied on myserver.xyz:
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
nodejs-libs x86_64 1:16.14.0-2.el7 epel 14 M
replacing v8.x86_64 1:3.14.5.10-25.el7
Updating:
MariaDB-client x86_64 10.6.7-1.el7.centos mariadb-main 14 M
MariaDB-common x86_64 10.6.7-1.el7.centos mariadb-main 81 k
MariaDB-compat x86_64 10.6.7-1.el7.centos mariadb-main 2.2 M
MariaDB-server x86_64 10.6.7-1.el7.centos mariadb-main 25 M
MariaDB-shared x86_64 10.6.7-1.el7.centos mariadb-main 113 k
galera-4 x86_64 26.4.11-1.el7.centos mariadb-main 9.9 M
java-1.8.0-openjdk-headless
x86_64 1:1.8.0.322.b06-1.el7_9 updates 33 M
jotta-cli x86_64 0.13.55213-2 jotta-cli 10 M
libsmbclient x86_64 4.10.16-18.el7_9 updates 146 k
libwbclient x86_64 4.10.16-18.el7_9 updates 116 k
php x86_64 8.1.3-1.el7.remi remi-php81 1.9 M
php-cli x86_64 8.1.3-1.el7.remi remi-php81 5.9 M
php-common x86_64 8.1.3-1.el7.remi remi-php81 1.2 M
php-gd x86_64 8.1.3-1.el7.remi remi-php81 97 k
php-ldap x86_64 8.1.3-1.el7.remi remi-php81 95 k
php-mysqlnd x86_64 8.1.3-1.el7.remi remi-php81 244 k
php-pdo x86_64 8.1.3-1.el7.remi remi-php81 149 k
php-process x86_64 8.1.3-1.el7.remi remi-php81 98 k
php-sodium x86_64 8.1.3-1.el7.remi remi-php81 93 k
polkit x86_64 0.112-26.el7_9.1 updates 170 k
remi-release noarch 7.9-3.el7.remi remi-safe 23 k
samba x86_64 4.10.16-18.el7_9 updates 720 k
samba-client x86_64 4.10.16-18.el7_9 updates 646 k
samba-client-libs x86_64 4.10.16-18.el7_9 updates 5.0 M
samba-common noarch 4.10.16-18.el7_9 updates 216 k
samba-common-libs x86_64 4.10.16-18.el7_9 updates 182 k
samba-common-tools x86_64 4.10.16-18.el7_9 updates 466 k
samba-libs x86_64 4.10.16-18.el7_9 updates 271 k
v8-devel x86_64 2:9.4.146.24-1.16.14.0.2.el7 epel 9.5 k
Installing for dependencies:
brotli x86_64 1.0.7-5.el7 epel 318 k
brotli-devel x86_64 1.0.7-5.el7 epel 27 k
nodejs x86_64 1:16.14.0-2.el7 epel 206 k
nodejs-devel x86_64 1:16.14.0-2.el7 epel 178 k
openssl11 x86_64 1:1.1.1k-2.el7 epel 692 k
openssl11-libs x86_64 1:1.1.1k-2.el7 epel 1.5 M
Transaction Summary
================================================================================
Install 1 Package (+6 Dependent packages)
Upgrade 29 Packages
Updates failed to install with the following error message:
Could not run transaction.无法运行事务似乎是唯一的错误,但这并没有揭示多少!?
我尝试过yum clean all,但第二天也有同样的问题。
该错误可能与另一个错误有关,它同时以电子邮件的形式出现:
上
/etc/cron.daily/0yum-daily.cron:
Transaction couldn't start:
file /usr/lib64/libbrotlicommon.so.1 from install of brotli-1.0.7-5.el7.x86_64 conflicts with file from package libbrotli-1.0.9-1.codeit.el7.x86_64
file /usr/lib64/libbrotlidec.so.1 from install of brotli-1.0.7-5.el7.x86_64 conflicts with file from package libbrotli-1.0.9-1.codeit.el7.x86_64
file /usr/lib64/libbrotlienc.so.1 from install of brotli-1.0.7-5.el7.x86_64 conflicts with file from package libbrotli-1.0.9-1.codeit.el7.x86_64yum repolist给出了这个输出:
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.netsite.dk
* epel: mirror.netsite.dk
* extras: mirror.netsite.dk
* remi-php81: mirror.dk.team.blue
* remi-safe: mirror.dk.team.blue
* updates: mirror.netsite.dk
repo id repo name status
base/7/x86_64 CentOS-7 - Base 10,060+12
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,733
extras/7/x86_64 CentOS-7 - Extras 500
jotta-cli Jottacloud CLI 24
mariadb MariaDB 88
mariadb-main MariaDB Server 94
mariadb-maxscale MariaDB MaxScale 4
mariadb-tools MariaDB Tools 15
remi-php81 Remi's PHP 8.1 RPM repository for Enterprise Linux 7 - x86_64 285
remi-safe Safe Remi's RPM repository for Enterprise Linux 7 - x86_64 4,696
updates/7/x86_64 CentOS-7 - Updates 3,413+1
repolist: 32,912yum list installed | grep brotli给出了这个输出:
libbrotli.x86_64 1.0.9-1.codeit.el7 @CodeITcat /etc/cron.daily/0yum-daily.cron给出了这个输出:
#!/bin/bash
# Only run if this flag is set. The flag is created by the yum-cron init
# script when the service is started -- this allows one to use chkconfig and
# the standard "service stop|start" commands to enable or disable yum-cron.
if [[ ! -f /var/lock/subsys/yum-cron ]]; then
exit 0
fi
# Action!
exec /usr/sbin/yum-cron我想(?)这可能是因为brotli使用@CodeIT存储库,但是在yum repolist中没有列出这样的存储库?我不记得什么时候更改了这些存储库,但可能与PHP或MariaDB有关。
有没有人知道这可能是什么,以及如何解决它?
我已更新意见,以质疑所建议的答案。这就是我在运行yum remove libbrotli-1.0.9-1.codeit.el7.x86_64时得到的结果:
[root@myserver ~]# yum remove libbrotli-1.0.9-1.codeit.el7.x86_64
Loaded plugins: fastestmirror, langpacks
Resolving Dependencies
--> Running transaction check
---> Package libbrotli.x86_64 0:1.0.9-1.codeit.el7 will be erased
--> Processing Dependency: libbrotlienc.so.1()(64bit) for package: httpd-2.4.51-1.codeit.el7.x86_64
--> Running transaction check
---> Package httpd.x86_64 0:2.4.51-1.codeit.el7 will be erased
--> Processing Dependency: httpd = 2.4.51-1.codeit.el7 for package: 1:mod_ssl-2.4.51-1.codeit.el7.x86_64
--> Processing Dependency: httpd = 2.4.51-1.codeit.el7 for package: httpd-manual-2.4.51-1.codeit.el7.noarch
--> Processing Dependency: httpd-mmn = 20120211x8664 for package: mod_fcgid-2.3.9-6.el7.x86_64
--> Processing Dependency: httpd-mmn = 20120211x8664 for package: mod_http2-1.15.24-2.codeit.x86_64
--> Processing Dependency: httpd-mmn = 20120211x8664 for package: php-8.1.2-1.el7.remi.x86_64
--> Processing Dependency: httpd-mmn = 20120211x8664 for package: 1:mod_ssl-2.4.51-1.codeit.el7.x86_64
--> Running transaction check
---> Package httpd-manual.noarch 0:2.4.51-1.codeit.el7 will be erased
---> Package mod_fcgid.x86_64 0:2.3.9-6.el7 will be erased
---> Package mod_http2.x86_64 0:1.15.24-2.codeit will be erased
---> Package mod_ssl.x86_64 1:2.4.51-1.codeit.el7 will be erased
--> Processing Dependency: mod_ssl for package: python2-certbot-apache-1.11.0-1.el7.noarch
---> Package php.x86_64 0:8.1.2-1.el7.remi will be erased
--> Running transaction check
---> Package python2-certbot-apache.noarch 0:1.11.0-1.el7 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
===========================================================================================================================================================================
Package Arch Version Repository Size
===========================================================================================================================================================================
Removing:
libbrotli x86_64 1.0.9-1.codeit.el7 @CodeIT 768 k
Removing for dependencies:
httpd x86_64 2.4.51-1.codeit.el7 @CodeIT 4.3 M
httpd-manual noarch 2.4.51-1.codeit.el7 @CodeIT 7.2 M
mod_fcgid x86_64 2.3.9-6.el7 @base 228 k
mod_http2 x86_64 1.15.24-2.codeit @CodeIT 535 k
mod_ssl x86_64 1:2.4.51-1.codeit.el7 @CodeIT 254 k
php x86_64 8.1.2-1.el7.remi @remi-php81 5.7 M
python2-certbot-apache noarch 1.11.0-1.el7 @epel 578 k
Transaction Summary
===========================================================================================================================================================================
Remove 1 Package (+7 Dependent packages)我肯定不会删除httpd 2.4.51-1和php 8.1.2-1,因为我需要这些。因为他们是最新和最伟大的版本,那么我认为他们不包括在RHEL回购?
因此,我希望我不会很容易地解决这个问题,除非我想回到旧的版本为这些?
用我的解决方案更新2
我不确定这是一个普遍的解决办法,但它为我解决了它。我可能有个回购错误。
首先,我用yum repolist检查了我的活动repos,我发现我错过了CodeIT回购,所以我从如何在Centos 7上安装最新的Apache服务器(httpd)重新安装了这个解决方案:
cd /etc/yum.repos.d && wget https://repo.codeit.guru/codeit.el`rpm -q --qf "%{VERSION}" $(rpm -q --whatprovides redhat-release)`.repo然后,我尝试了一个yum update,我觉得它成功了,它可以毫无问题地更新。
然后我注意到我的PHP没有更新,所以我还为此重新安装了回购程序,从这里可以看到,如何在CentOS 7/RHEL 7上安装PHP8.1:
yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum-config-manager --disable 'remi-php*'
yum-config-manager --enable remi-php81然后,我又做了一个yum update,突然它将PHPO更新为最新的8.1版本:-)
也许其他人可以用这个来启发我们去检查什么。
发布于 2022-02-20 18:21:10
包'brotli-1.0.7-5.el7.x86_64‘来自EPEL存储库:https://centos.pkgs.org/7/epel-x86_64/brotli-1.0.7-5.el7.x86_64.rpm.html
基于yum update输出,这个依赖被'v8-devel‘包拉进来,它会吸引’nodejs‘,然后再引入'brotli-devel’。
‘’libbrotli 1.0.9-1.codeit.el7.x86_64‘来自CodeIT:https://repo.codeit.guru/packages/centos/7/x86_[64]托管的存储库。
存储库似乎提供了特定的web服务器构建- Apache & Nginx。
这两个包提供了相互冲突的共享库: libbrotlicommon.so.1、libbrotlidec.so.1、libbrotlienc.so.1。yum无法解决此冲突,因此出现错误。
据我所知,解决这种情况是不容易的。您将不得不删除现有的软件包,以安装EPEL 1。当然,这也将强制删除任何依赖它的包。yum remove libbrotli-1.0.9-1.codeit.el7.x86_64将向您显示受影响的包(在确认之前它不会实际删除包)。
https://unix.stackexchange.com/questions/691457
复制相似问题