Ubuntu – Reinstall commercial software (e.g. oil rush, steelstorm etc.)


After a reinstall of Ubuntu 12.04 ,it's impossible to install commercial games, e.g Oil Rush. It gives this error:

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.

I bought these games in 11.10, but I installed these games in 12.04 before… How can I solve this problem?

Best Answer

I had the same problem trying to reinstall Steel Storm: Burning Retribution.

Error 401 is an authentication error.

I just found out to get it back for my case I hope it will help.

First, you need to know that your authentication details for the PPA are stored in /etc/apt/auth.conf.

Second you need to verify that the details are correct by going to https://launchpad.net and connecting with the details you used to purchase the software.

Once logged in click on your name if the right top corner (next to the logout button).

In the "Personal package archives" section click on "View your private PPA subscriptions".

On the right side of the line corresponding to your purchase click on "view"

You should now see something that looks like this:

deb https://USERNAME:PASSWORD@private-ppa.launchpad.net/commercial-ppa-uploaders/PURCHASE/ubuntu YOUR_UBUNTU_VERSION_HERE main

Verify that USERNAME and PASSWORD respectively match login and password in your /etc/apt/auth.conf file.

Once /etc/apt/auth.conf is updated with the correct details, run as sudo apt-get update from the terminal and check if you still get error messages, if you don't you should now be able to re-install the game.

Another problem that you can have is if your game doesn't have a PRECISE version yet, in that case you need to go in /etc/apt/sources.list.d/ and modify the file containing the description of the private PPA (in my case /etc/apt/sources.list.d/private-ppa.launchpad.net_commercial-ppa-uploaders_steel-storm2_ubuntu.list).

Example in my case:

I had to replace this line:

deb https://private-ppa.launchpad.net/commercial-ppa-uploaders/steel-storm2/ubuntu precise main

...with this:

deb https://private-ppa.launchpad.net/commercial-ppa-uploaders/steel-storm2/ubuntu oneiric main
Related Question