출처 : https://access.redhat.com/solutions/64532
ISSUE
- yum package update error:
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
# yum upgrade
Loaded plugins: product-id, refresh-packagekit, rhnplugin, subscription-manager
Updating Red Hat repositories.
rhel-x86_64-rhev-agent-6-server-beta 4/4
rhel-x86_64-rhev-mgmt-agent-6-beta 56/56
rhel-x86_64-server-6-beta 766/766
rhel-x86_64-server-6-beta-debuginfo 354/354
rhel-x86_64-server-6-debuginfo 2295/2295
rhel-x86_64-server-6-rhevm-3-beta 54/54
rhel-x86_64-server-6-rhevm-3-jboss-5-beta 286/286
rhel-x86_64-server-fastrack-6 240/240
rhel-x86_64-server-fastrack-6-debuginfo 95/95
Error: failed to retrieve repodata/dd400ee340700cdcc6f0f8a539facee56d380e05b82f56ba73be9187e61a681b-primary.xml.gz from rhel-x86_64-server-ha-6
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
[root@mng ~]# yum update
Loaded plugins: product-id, refresh-packagekit, rhnplugin, subscription-manager
Updating Red Hat repositories.
Error: failed to retrieve repodata/dd400ee340700cdcc6f0f8a539facee56d380e05b82f56ba73be9187e61a681b-primary.xml.gz from rhel-x86_64-server-ha-6
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
- yum update fails with error: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403"
ENVIRONMENT
- Red Hat Enterprise Linux(RHEL) 5.7 and onwards
- Red Hat Subscription Manager(RHSM)
- Red Hat Network(RHN) Classic
RESOLUTION
For system registered with RHSM
- Unregister the system and re-register it using Subscription-manager by:-
# subscription-manager unsubscribe
# subscription-manager unregister
# subscription-manager clean
- To Re-register the system to
RHSM
by:-
# subscription-manager register --autosubscribe
For system registered with RHN Classic
- Re-sync the channel for which yum is throwing the said error by :-
# rhn-channel --remove -c <affected Channel name> --user username --password password
- Verify that channel is not listed and then add the same channel again by :-
# yum repolist
# rhn-channel --add -c <affected Channel name> --user username --password password
# yum clean all
- Verify that channel is now listed by :-
# yum repolist
- An additional step mey be needed, unregistering from both classic and normal subscription service then registering again with the new method.
ROOT CAUSE
- Affected channel may not be synced with the system properly. Re-registering or re-syncing the channel resolves the issue.
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
124 | WordPress 4.4 “Clifford” | 관리자 | 2015.12.31 | 40 |
123 | iptables port redirection | 관리자 | 2015.12.31 | 40 |
122 | WordPress 4.6 Release Candidate | 관리자 | 2016.07.28 | 42 |
121 | Moving Toward SSL | 관리자 | 2016.12.02 | 42 |
120 | mod_rpaf on aws elb | 관리자 | 2016.06.17 | 43 |
119 | Apache Tomcat Versions – Which Do I Want? | 관리자 | 2016.06.24 | 44 |
118 | WordPress 4.7.2 Security Release | 관리자 | 2017.01.27 | 45 |
117 | Changing Screen Size/Resolution of CentOS GUEST on VirtualBox | 관리자 | 2017.05.31 | 45 |
116 | Support for SATA and SAS disk drives with a size of 2TB or greater | 관리자 | 2017.07.07 | 45 |
115 | WordPress 4.6 “Pepper” | 관리자 | 2016.08.17 | 46 |
114 | 최신 버전 XE에서 config.inc.php 호출 내용 변경 | 관리자 | 2015.12.31 | 47 |
113 | Mozilla SSL Configuration Generator | 관리자 | 2016.10.15 | 47 |
112 | Secure by Default in MySQL 5.7 | 관리자 | 2015.12.31 | 48 |
111 | install proftpd with account in sql | 관리자 | 2016.01.26 | 48 |
110 | WordPress 4.8 Beta 1 | 관리자 | 2017.05.13 | 48 |