The problem is that Lao Zuo helped a client configure the pagoda WEB environment in the server this morning. Of course, I am used to installing CentOS images with good compatibility. Of course, when I get the machine, I have to log in remotely to upgrade yum update to the latest source image software. However, an error was reported during the upgrade.
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).
This problem should be caused by blocking during the update process. In general, the solution I will take is to update Alibaba or 163 source to solve this problem. Here you can refer to:
1、 How to view the CentOS image version and change the CentOS7 image to a domestic image
2、 CentOS replaces Alibaba Cloud yum source to solve the problem of unable to update
3、 Solve the problem of "Cannot find a valid baseurl for repo" in Yum of CentOS system
Lao Zuo here sees that this problem can still be solved in this way.
yum install yum-utils
Let's install the yum utils toolkit first.
yum clean all
yum-complete-transaction --cleanup-only
Then we are cleaning up the unfinished items. Finally, of course, we can update again to see if there is an error. If there is still a problem, we can also change to another version of Centos. Sometimes the service provider has a problem, and some images have problems.
Scan the code to follow the official account
Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge