大网数据广告活动
服务器运维问答

Unable to update CentOS 7 - yum update broken

· 52CE 我爱测

I'm trying to run yum update and now it isn't working... I'm at a loss as to why - this is a fairly generic setup just running basic web, services: [... tons of package updates...] --> Running transaction check ---> Package libwa…

问题原文

原帖链接 · S.ov · CC BY-SA 4.0

I'm trying to run yum update and now it isn't working... I'm at a loss as to why - this is a fairly generic setup just running basic web, services:

[... tons of package updates...]

--> Running transaction check
---> Package libwayland-client.x86_64 0:1.14.0-2.el7 will be installed
---> Package libwayland-server.x86_64 0:1.14.0-2.el7 will be installed
---> Package lz4.x86_64 0:1.7.3-1.el7 will be installed
---> Package systemd-libs.i686 0:219-57.el7 will be an update
--> Processing Dependency: liblz4.so.1 for package: systemd-libs-219-57.el7.i686
--> Finished Dependency Resolution
--> Running transaction check
---> Package kernel.x86_64 0:3.10.0-693.5.2.el7 will be erased
---> Package kernel.x86_64 0:3.10.0-693.11.1.el7 will be erased
---> Package systemd-libs.i686 0:219-57.el7 will be an update
--> Processing Dependency: liblz4.so.1 for package: systemd-libs-219-57.el7.i686
--> Finished Dependency Resolution

Error: Package: systemd-libs-219-57.el7.i686 (base)
         Requires: liblz4.so.1
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Using yum update --skip-broken doesn't work. And rpm -Va --nofiles --nodigest does nothing.

Anyone have any idea how to fix this? I am not not able to update the server at all because it sticks at this point.

已采纳解答

原帖链接 · Itai Ganot · CC BY-SA 4.0

These are the steps I would take:

yum list installed | grep liblz4

If it's installed then:

sudo updatedb
locate liblz4.so.1
you should find a file called liblz4.so.1.7.5 or something like that.
copy that file to /usr/lib64
cd /usr/lib64
ln -s liblz4.so.1.7.5 liblz4.so.1
yum update

If it's not installed then install it like so:

yum install https://rpmfind.net/linux/centos/7.5.1804/os/x86_64/Packages/lz4-1.7.5-2.el7.x86_64.rpm

Then repeat the steps above.

Just make sure that if your cpu arch is 64bit then you install the package for 64bit and then you place the file in /usr/lib64 but if your cpu arch is 32bit then you should install the 32bit package and place the file in /usr/lib instead.

In addition, I'd try removing both liblz and systemd-libs and try to install the again and then run yum update.

#Edit

Following our chat, I advised you install the following package:

lz4-1.7.5-2.el7.i686.rpm

As I believe there was some mix up with your liblz4.so.1 arch version and so far it seems like it solves your issue as the update process is running properly.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-06-21)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。