메뉴 건너뛰기

GREATUSER

tech

출처 : 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.
번호 제목 글쓴이 날짜 조회 수
34 How to download and install prebuilt OpenJDK packages in LINUX(redhat and ubuntu) 관리자 2018.04.24 1226
33 XE 1.8.3 Release 위대한유저 2015.06.11 1324
» yum update error: "error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"" 위대한유저 2015.01.30 1542
31 mysql server system variables log_warnings to log_error_verbosity 관리자 2016.10.05 1680
30 XE 1.8.2까지의 버전에서 슬라이드 사용안함 속성이 반영 안되는 문제 위대한유저 2015.05.21 1754
29 error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE in PHP (after update centos-7.4) 관리자 2017.11.15 1838
28 mysql error : No data – zero rows fetched, selected, or processed 관리자 2016.04.06 2058
27 IE 확대/축소 기능끄기 위대한유저 2014.07.01 2477
26 윈도우에서 ARP CACHE 삭제/초기화 하는 방법 위대한유저 2015.05.29 2694
25 xfce4 on centos7(rhel7) 위대한유저 2015.01.28 2871
24 넷북 환경에서 윈도우 8.1 업데이트 하기 위대한유저 2014.05.14 3534
23 net use 사용시 시스템 오류 58(이)가 생겼습니다. 위대한유저 2015.04.08 6082
22 [python] 현재 실행중인 함수 이름 구하기 (sys._getframe().f_code.co_name) 관리자 2018.03.28 7304
21 아파치(httpd) ServerTokens 설정 위대한유저 2014.03.16 8657
20 Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP 위대한유저 2014.01.01 14133
위로