首先,我没有太多的 Red Hat 经验。我的大部分经验都是在 Ubuntu 上。我现在使用的服务器运行的是 Red Hat Enterprise 6.5。
我正在尝试做一个简单的yum install ncurses-devel
,但我遇到了 403 错误的问题。如果我尝试安装 gdal,也会遇到同样的问题。问题似乎特别出在 rhel-x86_64-server-6 上,但我不知道为什么。
$ sudo -E yum install ncurses ncurses-devel
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
Package ncurses-5.7-3.20090208.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package ncurses-devel.x86_64 0:5.7-3.20090208.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================
Installing:
ncurses-devel x86_64 5.7-3.20090208.el6 rhel-x86_64-server-6 642 k
Transaction Summary
===============================================================================================================================
Install 1 Package(s)
Total download size: 642 k
Installed size: 0
Is this ok [y/N]: y
Downloading Packages:
Error Downloading Packages:
ncurses-devel-5.7-3.20090208.el6.x86_64: failed to retrieve getPackage/ncurses-devel-5.7-3.20090208.el6.x86_64.rpm from rhel-x86_64-server-6
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403"
我该如何解决这个问题?这与 有关系吗subscription-manager
?
答案1
我可以通过改变来解决这个问题
sudo -E yum install ncurses ncurses-devel
到
sudo yum install ncurses ncurses-devel
我之前遇到了一些sudo yum
无法访问外部世界的情况(因为我的工作代理),但显然这是导致这个问题的原因。