Cause: build lamp environment, linux environment is centos6 64 bit, run the instruction “Yum remove httpd” to remove the original Apache
Complete error prompt:
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package httpd.i686 0:2.2.15-29.el6.centos will be erased
--> Processing Dependency: httpd >= 2.2.0 for package: gnome-user-share-2.28.2-3.el6.i686
--> Running transaction check
---> Package gnome-user-share.i686 0:2.28.2-3.el6 will be erased
--> Finished Dependency Resolution
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/i386/6/base/mirrorlist.txt
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
terms of settlement:
Just run the following three instructions
ed -i "s|enabled=1|enabled=0|g" /etc/yum/pluginconf.d/fastestmirror.conf
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo
There is another solution in the original, but I solved it with the first one. If you can’t solve it with this method, you can try the second one in the original https://blog.csdn.net/weixin_ 45621658/article/details/110734514
Read More:
- Solution to Linux error loading mirror speeds from cached hostfile
- Docker load loading mirror message JSON no such file or directory error
- Ora-01008: not all variables are bound
- [Solved] FTP Error: 553 Could not create file
- FTP prompt in Linux — 553 could not create file (absolutely useful)
- Alicloud CentOS 5 old version yum/ repomd.xml : [Errno 14] HTTP Error 404: Not Found
- HTTP Error 404.2 – Not Found “The page you are requesting cannot be served because of the ISAPI and
- Eclipse .java File Syntax error, parameterized types are only available if source level is 1.5 or
- File contains no section headers. File: File: / / etc/ yum.repos .d/
- An error occurred trying to connect: get http: / / var / run/ docker.sock/v1 .21/containers/json?all
- ls: cannot access /usr/sbin/smartctl: No such file or directory /usr/sbin/smartctl not found
- In windows, “cmake” is not an internal or external command, nor a runnable program or batch file.
- Java – read all the files and folders in a certain directory and three methods to get the file name from the file path
- Unable to load file D:: program files (x86) node-v16.4.0-win-x861 because scripts are not allowed to run on this system.
- Springboot error: property ‘sqlsessionfactory’ or ‘sqlsessiontemplate’ are required error details
- Using apt mirror to build Debian local warehouse
- Syntax error, annotations are only available if source level is 1.5 or greater
- Add multiple URLs to the Maven property of a gradle
- python: HTTP Error 505: HTTP Version Not Supported
- Error: Projects must list all files or use an ‘include‘ pattern.