Title: Centos installation error for zlib-devel installation
Tags: centos7
Question: I have Centos-7.
When I tried to install sudo yum install zlib-devel,I have error as HTTP Error 404 - Not Found for the link http://mirror.centos.org/centos/6/sclo/x86_64/sclo/repodata/repomd.xml. But my Centos is 7 version. The link looks for Centos 6. http://mirror.centos.org/**centos/6**/sclo/x86_64/sclo/repodata/repomd.xml
What could be wrong?
The whole error is
(open-mmlab) [sysadmin@traininglab gcc-build]$ sudo yum install zlib-devel
Loaded plugins: fastestmirror, langpacks
Repository copr:copr.fedorainfracloud.org:rhscl:centos-release-scl is listed more than once in the configuration
Loading mirror speeds from cached hostfile
http://mirror.centos.org/centos/6/sclo/x86_64/sclo/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article
https://wiki.centos.org/yum-errors
If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
One of the configured repositories failed (CentOS-6 - SCLo sclo),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work &quot;fix&quot; this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=centos-sclo-sclo ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable centos-sclo-sclo
or
subscription-manager repos --disable=centos-sclo-sclo
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=centos-sclo-sclo.skip_if_unavailable=true
failure: repodata/repomd.xml from centos-sclo-sclo: [Errno 256] No more mirrors to try.
http://mirror.centos.org/centos/6/sclo/x86_64/sclo/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Comment: I need to remove  `centos-release-scl` using  `sudo yum remove centos-release-scl`



{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 0, 'CommentCount': 1, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2022:00:01/30/22', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<centos7>', 'Title': 'Centos installation error for zlib-devel installation', 'ViewCount': 111, 'id': 70915081, 'user_AboutMe': '', 'user_AccountId': 2875629.0, 'user_DisplayName': 'batuman', 'user_Reputation': 6756.0, 'user_Views': 1398.0, 'user_id': 2467772.0}}