问题原文
原帖链接 · 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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
