Linux-yum installation error and solution (extended)

One, yum installation error

1. Question 1: /var/run/yum.pid has been locked, and another program with PID xxx is running

1. /var/run/yum.pid has been locked, and another program with PID xxx is running.
Insert picture description here
2.rm -f /var/run/yum.pid-delete
Insert picture description here

问题二:failure: repodata/repomd.xml from local: [Errno 256] No more mirrors to try.file:///mnt/repodata/repomd.xml: [Errno 14] curl#37 - “Couldn’t open file /mnt/repodata/repomd.xml”

1.failure: repodata/repomd.xml from local: [Errno 256] No more mirrors to try.file:///mnt/repodata/repomd.xml: [Errno 14] curl#37 - “Couldn’t open file /mnt/repodata/repomd.xml”
Insert picture description here
2.rm -rf /etc/yum.repos.d/*
Insert picture description here
3.wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
Insert picture description hereInsert picture description here

3. Summary, don’t panic when you encounter problems, there is always a solution to the problem

Don’t panic when you encounter problems, there is always a solution to the problem

Guess you like

Origin blog.csdn.net/s15212790607/article/details/113876897