How to Fix: Yum [Errno 14] PYCURL ERROR 22 - 404 Not Found
Infopackets Reader Steve T. writes:
" Dear Dennis,
I am running Centos 6 32-bit (i386) on a virtual machine and recently I started having 'PYCURL ERROR 22' every time I use 'yum list updates' or 'yum -y update' to list and download updates. The error message says '[Errno 14] PYCURL ERROR 22 - The requested URL returned error: 404 Not Found'. I have gone to the wiki.centos.org/yum-errors as the error message suggests, but have not been able to find a solution to this problem. Can you help? "
My response:
I asked Steve if he would like me to connect to his virtual machine using my remote desktop support service in order to have a closer look at the problem, and he agreed. Below I will discuss my findings.
How to Fix: Yum [Errno 14] PYCURL ERROR 22 - 404 Not Found
As the centos.org wiki suggests, the first thing to do is to clear the yum cache as it may be corrupt, which will result in the PYCURL ERROR 22. To do so, open a terminal window / SSH and enter in the following:
yum clean all
rm -rf /var/cache/yum/*
If that does resolve your problem, please have a closer look at the error message. In Steve's case it was the repo.ius.io mirror which was failing, as noted in the sample output below. In order to fix it, I went to the /etc/yum.repos.d directory and modified the ius.repo file in order to disable it.
Here is the sample output:
yum list updates
Loaded plugins: fastestmirror
Repository remi-safe is listed more than once in the configuration
Repository remi-php70 is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: mirror.layeronline.com
* extras: mirror.layeronline.com
* remi: rpms.remirepo.net
* remi-php71: rpms.remirepo.net
* remi-safe: rpms.remirepo.net
* rpmforge: mirror.bacloud.com
* updates: mirror.layeronline.com
base | 3.7 kB 00:00
extras | 3.3 kB 00:00
https ://repo.ius.io/6/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
To address this issue please refer to the below wiki article
https://wiki.centos.org/yum-errors
Disable Repository to Fix 'PYCURL ERROR 22'
If you note the above output (red bold text), it lists the URL that is causing the error (repo.ius.io). To fix the error you need to disable the repository via its configuration file, but this is really only a temporary fix to the issue as it does not replace the broken repository.
For the record, I attempted to open https: //repo.ius.io/6/i386/repodata/repomd.xml via the browser and it results in a 404 (file not found). After a bit more research, it appears that repo.ius.io has removed all i386 (Centos 6 32 bit) data from their server and currently only supports x64. This may be because Centos 6 is reaching its end of life (as of November 30 2020).
I am not familiar enough on how to replace this repository as it seems they have switched from using mirrors to a content distribution network (CDN) as of April 30, 2019. I also tried 'yum update ius-release' as the page suggests, but it made no difference.
To disable the repo.ius.io repository, do the following:
cd /etc/yum.repos.d
####show all files with ius in it:
ls -al |grep ius
-rw-r -- r-- 1 root root 669 May 1 12:00 ius-archive.repo
-rw-r -- r-- 1 root root 591 May 1 12:00 ius.repo
<=== this file
-rw-r -- r-- 1 root root 669 May 1 12:00 ius-testing.repo
####modify the repo file:
nano -w ius.repo
[ius]
name = IUS for Enterprise Linux 6 - $basearch
baseurl = https://repo.ius.io/6/$basearch/
####was enabled = 1, set to 0
enabled = 0
repo_gpgcheck = 0
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-IUS-6
That's it! I hope that helps.
If anyone has any suggestions on getting the ius.repo to work again, please leave a comment below. For now, it appears to be taken offline - perhaps permanently.
Got a Computer Question or Problem? Ask Dennis!
I need more questions. If you have a computer question - or even a computer problem that needs fixing - please email me with your question so that I can write more articles like this one. I can't promise I'll respond to all the messages I receive (depending on the volume), but I'll do my best.
About the author: Dennis Faas is the owner and operator of Infopackets.com. With over 30 years of computing experience, Dennis' areas of expertise are a broad range and include PC hardware, Microsoft Windows, Linux, network administration, and virtualization. Dennis holds a Bachelors degree in Computer Science (1999) and has authored 6 books on the topics of MS Windows and PC Security. If you like the advice you received on this page, please up-vote / Like this page and share it with friends. For technical support inquiries, Dennis can be reached via Live chat online this site using the Zopim Chat service (currently located at the bottom left of the screen); optionally, you can contact Dennis through the website contact form.
Most popular articles
- Which Processor is Better: Intel or AMD? - Explained
- How to Prevent Ransomware in 2018 - 10 Steps
- 5 Best Anti Ransomware Software Free
- How to Fix: Computer / Network Infected with Ransomware (10 Steps)
- How to Fix: Your Computer is Infected, Call This Number (Scam)
- Scammed by Informatico Experts? Here's What to Do
- Scammed by Smart PC Experts? Here's What to Do
- Scammed by Right PC Experts? Here's What to Do
- Scammed by PC / Web Network Experts? Here's What to Do
- How to Fix: Windows Update Won't Update
- Explained: Do I need a VPN? Are VPNs Safe for Online Banking?
- Explained: VPN vs Proxy; What's the Difference?
- Explained: Difference Between VPN Server and VPN (Service)
- Forgot Password? How to: Reset Any Password: Windows Vista, 7, 8, 10
- How to: Use a Firewall to Block Full Screen Ads on Android
- Explained: Absolute Best way to Limit Data on Android
- Explained: Difference Between Dark Web, Deep Net, Darknet and More
- Explained: If I Reset Windows 10 will it Remove Malware?
My name is Dennis Faas and I am a senior systems administrator and IT technical analyst specializing in cyber crimes (sextortion / blackmail / tech support scams) with over 30 years experience; I also run this website! If you need technical assistance , I can help. Click here to email me now; optionally, you can review my resume here. You can also read how I can fix your computer over the Internet (also includes user reviews).
We are BBB Accredited
We are BBB accredited (A+ rating), celebrating 21 years of excellence! Click to view our rating on the BBB.