출처 : 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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
139 | mysql 데이터베이스 용량 확인하기 | 위대한유저 | 2013.08.22 | 16276 |
138 | linux / proftpd 에서 대소문자 구분없는 환경 만들기 | 위대한유저 | 2013.12.14 | 18562 |
137 | Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP | 위대한유저 | 2014.01.01 | 14129 |
136 | 아파치(httpd) ServerTokens 설정 | 위대한유저 | 2014.03.16 | 8652 |
135 | centos 기반에서 tftp 서비스 활성화하기 | 위대한유저 | 2014.03.21 | 16486 |
134 | 넷북 환경에서 윈도우 8.1 업데이트 하기 | 위대한유저 | 2014.05.14 | 3534 |
133 | IE 확대/축소 기능끄기 | 위대한유저 | 2014.07.01 | 2477 |
132 | hdparm 을 이용한 디스크 초기화 | 위대한유저 | 2014.11.14 | 1176 |
131 | atime, mtime, ctime 의 차이점 | 위대한유저 | 2014.11.27 | 1050 |
130 | IIS의 ASP페이지에서 데이터베이스 연결을 만드는 방법 | 위대한유저 | 2014.12.14 | 477 |
129 | 윈도우 원격데스크탑 포트변경하기 | 위대한유저 | 2015.01.10 | 407 |
128 | 리눅스 virtualbox에서 게스트os에 usb드라이브 마운트 안된다면... | 위대한유저 | 2015.01.20 | 472 |
127 | xfce4 on centos7(rhel7) | 위대한유저 | 2015.01.28 | 2870 |
» | yum update error: "error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"" | 위대한유저 | 2015.01.30 | 1542 |
125 | cacti-0.8.8c 버전에서의 주의점 | 위대한유저 | 2015.02.03 | 785 |