RHEL 6.6:[Errno 14] PYCURL ERROR 22 - “请求的 URL 返回错误:403 禁止”

RHEL 6.6:[Errno 14] PYCURL ERROR 22 - “请求的 URL 返回错误:403 禁止”

首先,这是我第一次安装RHEL机器,我更习惯Debian。

我们同时安装多台机器。我们已从 RHEL 6.3 升级到 RHEL 6.6,现在正在尝试安装 openmotif22(几天后发布的 IBM 安装程序需要)。

在第一台机器上,一切正常,我们没有任何问题,但在第二台机器上,我们收到了这两个包的错误,我不知道它来自哪里。

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

修复。

我做了什么:

  1. 使用代理设置填写 rhsm.conf 文件 ( /etc/rhsm/rhsm.conf)
  2. 重新启动机器
  3. 尝试安装:root@mymachine:~# yum install -y openmotif22.i686 openmotif22.x86_64-> 失败,同样的错误
  4. yum clean all -v
  5. yum repolist -v
  6. root@mymachine:~# yum install -y openmotif22.i686 openmotif22.x86_64-> 它起作用了...不知道为什么,但重新启动是关键。

我已经完成了这些步骤而没有重新启动,但它不起作用。

答案2

这就是为我解决的问题:

yum clean all
rm -rf /var/cache/yum

答案3

在为 rpm(yum 服务器)提供服务的 Web 服务器上运行:

setenforce 0

这将禁用 SELinux 并允许 Web 服务器为 RPM 提供服务。仅当 Web 服务器尝试为外部源创建的 RPM 提供服务时,提供 RPM 的问题才会触发 SELinux。 Redhat/Centos 操作系统 RPM 不会触发 SELinux 系统,即使 SELinux 系统处于活动状态也不会被阻止。

答案4

尝试这个:

$> cd /etc/yum.repos.d
$> rm sandbox.repo

返回并重试安装:

$> yum install python-pip

相关内容