Linux
yum install 在嘗試從 rhel-x86_64-server-6 安裝時拋出錯誤 403
首先,我沒有太多的紅帽經驗。我的大部分經驗是使用 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
無法訪問外部世界的問題(因為我的工作代理),但顯然這就是這個問題的原因。