重新安装商业软件(例如 oil rush、steelstorm 等)

keb*_*ish 3 ppa commercial games 12.04

重新安装Ubuntu 12.04后,无法安装商业游戏,例如Oil Rush。它给出了这个错误:

Failed to fetch https://private-ppa.launchpad.net/commercial-ppa-uploaders/oilrush/ubuntu/dists/oneiric/main/binary-amd64/Packages  The requested URL returned error: 401
Failed to fetch https://private-ppa.launchpad.net/commercial-ppa-uploaders/oilrush/ubuntu/dists/oneiric/main/binary-i386/Packages  The requested URL returned error: 401
Some index files failed to download. They have been ignored, or old ones used instead.
Run Code Online (Sandbox Code Playgroud)

这些游戏我是11.10买的,但是我之前在12.04装过这些游戏。。。请问怎么解决这个问题?

小智 6

我在尝试重新安装 Steel Storm: Burning Retribution 时遇到了同样的问题。

错误 401 是身份验证错误。

我刚刚发现要为我的案件取回它,希望它会有所帮助。

首先,您需要知道 PPA 的身份验证详细信息存储在/etc/apt/auth.conf.

其次,您需要通过访问https://launchpad.net并连接您用于购买软件的详细信息来验证详细信息是否正确。

登录后,如果右上角(在注销按钮旁边)单击您的姓名。

在“个人包档案”部分,单击“查看您的私人 PPA 订阅”。

在与您的购买对应的行的右侧,单击“查看”

您现在应该看到如下所示的内容:

deb https://USERNAME:PASSWORD@private-ppa.launchpad.net/commercial-ppa-uploaders/PURCHASE/ubuntu YOUR_UBUNTU_VERSION_HERE main
Run Code Online (Sandbox Code Playgroud)

验证USERNAMEPASSWORD分别匹配登录密码,在你的/etc/apt/auth.conf文件中。

一旦/etc/apt/auth.conf与正确的细节,如运行更新sudo apt-get update从终端,并检查是否仍然得到错误信息,如果你不这样做,你现在应该能够重新安装游戏。

您可能遇到的另一个问题是,如果您的游戏还没有 PRECISE 版本,在这种情况下,您需要进入/etc/apt/sources.list.d/并修改包含私有 PPA 描述的文件(在我的情况下/etc/apt/sources.list.d/private-ppa.launchpad.net_commercial-ppa-uploaders_steel-storm2_ubuntu.list)。

我的例子:

我不得不替换这一行:

deb https://private-ppa.launchpad.net/commercial-ppa-uploaders/steel-storm2/ubuntu precise main
Run Code Online (Sandbox Code Playgroud)

...有了这个:

deb https://private-ppa.launchpad.net/commercial-ppa-uploaders/steel-storm2/ubuntu oneiric main
Run Code Online (Sandbox Code Playgroud)