Linux-yum installation error and solutions
- One, yum installation error
-
- 1. Question 1: /var/run/yum.pid has been locked, and another program with PID xxx is running
- 问题二: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"
- 3. Summary, don’t panic when you encounter problems, there is always a solution to the problem
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.
2.rm -f /var/run/yum.pid-delete
问题二: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”
2.rm -rf /etc/yum.repos.d/*
3.wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
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