为了说明这一点,我没有太多的红帽经验。 我的大部分经验都是在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有什么关系?
我能够通过改变来解决这个问题
sudo -E yum install ncurses ncurses-devel
至
sudo yum install ncurses ncurses-devel
我之前sudo yum无法访问外部世界(因为我的工作代理),但显然这是这个问题的原因。