![RHEL 6.6: [Errno 14] PYCURL ERROR 22 - "要求された URL がエラーを返しました: 403 禁止"](https://linux33.com/image/58810/RHEL%206.6%3A%20%5BErrno%2014%5D%20PYCURL%20ERROR%2022%20-%20%22%E8%A6%81%E6%B1%82%E3%81%95%E3%82%8C%E3%81%9F%20URL%20%E3%81%8C%E3%82%A8%E3%83%A9%E3%83%BC%E3%82%92%E8%BF%94%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%3A%20403%20%E7%A6%81%E6%AD%A2%22.png)
まず、RHELシステムをインストールするのは今回が初めてで、Debianに慣れています。
複数台の機械を同時に設置します。 RHEL 6.3からRHEL 6.6にアップグレードし、openmotif22(数日後にリリースされるIBMインストーラに必要)をインストールしようとしています。
最初のコンピュータでは、すべてがうまく動作し、問題はありません。ただし、2台目のコンピュータでは、これら2つのパッケージでエラーが発生し、そのエラーがどこから来たのかわかりません。
root@mymachine:~# yum install -y openmotif22.i686 openmotif22.x86_64 --verbose
Loading "rhnplugin" plugin
Loading "product-id" plugin
Loading "security" plugin
Loading "subscription-manager" plugin
Updating Subscription Management repositories.
Unable to read consumer identity
Config time: 0.260
This system is receiving updates from RHN Classic or RHN Satellite.
Looking for repo options for [main]
Looking for repo options for [rhel-x86_64-server-6]
Repo 'rhel-x86_64-server-6' setting option 'enabled' = '1'
Repo 'rhel-x86_64-server-6' setting option 'gpgcheck' = '1'
Yum Version: 3.2.29
rpmdb time: 0.000
Setting up Install Process
Setting up Package Sacks
pkgsack time: 0.306
Obs Init time: 0.288
Resolving Dependencies
--> Running transaction check
---> Package openmotif22.i686 0:2.2.3-19.el6 will be installed
Checking deps for openmotif22.i686 0:2.2.3-19.el6 - u
looking for ('rtld(GNU_HASH)', None, (None, None, None)) as a requirement of openmotif22.i686 0:2.2.3-19.el6 - u
looking for ('libc.so.6(GLIBC_2.7)', None, (None, None, None)) as a requirement of openmotif22.i686 0:2.2.3-19.el6 - u
looking for ('libc.so.6(GLIBC_2.4)', None, (None, None, None)) as a requirement of openmotif22.i686 0:2.2.3-19.el6 - u
looking for ('libc.so.6(GLIBC_2.3.4)', None, (None, None, None)) as a requirement of openmotif22.i686 0:2.2.3-19.el6 - u
looking for ('libc.so.6(GLIBC_2.3)', None, (None, None, None)) as a requirement of openmotif22.i686 0:2.2.3-19.el6 - u
looking for ('libc.so.6(GLIBC_2.2)', None, (None, None, None)) as a requirement of openmotif22.i686 0:2.2.3-19.el6 - u
looking for ('libc.so.6(GLIBC_2.11)', None, (None, None, None)) as a requirement of openmotif22.i686 0:2.2.3-19.el6 - u
looking for ('libc.so.6(GLIBC_2.1.3)', None, (None, None, None)) as a requirement of openmotif22.i686 0:2.2.3-19.el6 - u
looking for ('libc.so.6(GLIBC_2.1.2)', None, (None, None, None)) as a requirement of openmotif22.i686 0:2.2.3-19.el6 - u
looking for ('libc.so.6(GLIBC_2.1)', None, (None, None, None)) as a requirement of openmotif22.i686 0:2.2.3-19.el6 - u
looking for ('libc.so.6(GLIBC_2.0)', None, (None, None, None)) as a requirement of openmotif22.i686 0:2.2.3-19.el6 - u
looking for ('libc.so.6', None, (None, None, None)) as a requirement of openmotif22.i686 0:2.2.3-19.el6 - u
looking for ('libXt.so.6', None, (None, None, None)) as a requirement of openmotif22.i686 0:2.2.3-19.el6 - u
looking for ('libXp.so.6', None, (None, None, None)) as a requirement of openmotif22.i686 0:2.2.3-19.el6 - u
looking for ('libXmu.so.6', None, (None, None, None)) as a requirement of openmotif22.i686 0:2.2.3-19.el6 - u
looking for ('libXm.so.3', None, (None, None, None)) as a requirement of openmotif22.i686 0:2.2.3-19.el6 - u
looking for ('libXext.so.6', None, (None, None, None)) as a requirement of openmotif22.i686 0:2.2.3-19.el6 - u
looking for ('libX11.so.6', None, (None, None, None)) as a requirement of openmotif22.i686 0:2.2.3-19.el6 - u
looking for ('libUil.so.3', None, (None, None, None)) as a requirement of openmotif22.i686 0:2.2.3-19.el6 - u
looking for ('libSM.so.6', None, (None, None, None)) as a requirement of openmotif22.i686 0:2.2.3-19.el6 - u
looking for ('libMrm.so.3', None, (None, None, None)) as a requirement of openmotif22.i686 0:2.2.3-19.el6 - u
looking for ('libICE.so.6', None, (None, None, None)) as a requirement of openmotif22.i686 0:2.2.3-19.el6 - u
looking for ('/usr/share/X11/XKeysymDB', None, (None, None, None)) as a requirement of openmotif22.i686 0:2.2.3-19.el6 - u
Error: failed to retrieve repodata/9681fa082b2fd9fdd65a0548409bd4c16be74e217e46d11c1fff3470300e4df0-filelists.xml.gz from rhel-x86_64-server-6
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403 Forbidden
おそらく設定ファイルからインポートされたようです。しかし、私たちは
/etc/sysconfig/rhn/up2date
プロキシ設定を使用してください。
"http_proxy"変数は両方のシステムで空であり、両方のシステムにyum.conf
プロキシ情報がまったくありません。どちらのシステムもrhn_registerを使用して登録されます。
確認する構成ファイルが不足しています。
答え1
修理する。
私がしたこと:
- プロキシ設定でrhsm.confファイルを作成します(
/etc/rhsm/rhsm.conf
)。 - マシンを再起動してください
- インストールしようとしました:
root@mymachine:~# yum install -y openmotif22.i686 openmotif22.x86_64
- >同じエラーで失敗 yum clean all -v
yum repolist -v
root@mymachine:~# yum install -y openmotif22.i686 openmotif22.x86_64
->動作しました...理由はわかりませんが、再起動することが重要でした。
再起動せずにこの手順を実行しましたが、機能しません。
答え2
これが私のために問題を解決したものです。
yum clean all
rm -rf /var/cache/yum
答え3
rpmを提供するWebサーバー(yumサーバー)で実行します。
setenforce 0
これによりSELinuxが無効になり、WebサーバーがRPMを提供できるようになります。 RPM提供に関連する問題は、Webサーバーが外部ソースから生成されたRPMを提供しようとしたときにのみSELinuxを起動します。 Redhat / Centos OS RPMはSELinuxシステムを起動せず、SELinuxシステムが有効になってもブロックされません。
答え4
この試み:
$> cd /etc/yum.repos.d
$> rm sandbox.repo
戻って再インストールしてみてください。
$> yum install python-pip