Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

There are now errors when updating and I cannot install most software due to a corrupted


file. Is there a copy I can download to replace it?

The file would be for Ubuntu 12.04 (Final Beta) in the United States.

share|improve this question
Have you tried the "Software Sources" GUI app? I'm not running 12.04, but in the past, this is where you could choose the repository location, and edit which ones to use from that location. –  Marty Fried Apr 21 '12 at 18:14
I did, and none of the errors listed were in that. I just want to find a copy of the sources.list file as it was when I had freshly installed Ubuntu. –  Klikini Apr 21 '12 at 18:15
Error: W: Duplicate sources.list entry http://dl.google.com/linux/deb/ testing/non-free amd64 Packages (/var/lib/apt/lists/dl.google.com_linux_deb_dists_testing_non-free_binary-amd64_‌​Packages) W: Duplicate sources.list entry http://dl.google.com/linux/deb/ testing/non-free i386 Packages (/var/lib/apt/lists/dl.google.com_linux_deb_dists_testing_non-free_binary-i386_P‌​ackages) W: You may want to run apt-get update to correct these problems –  Klikini Apr 21 '12 at 18:18
You should be able to go to the "Other Software" tab, and delete the duplicate entries. Or, if you're not sure, you can uncheck a few and see if that fixes the problem. Also, did you run "sudo apt-get update" like it suggested? –  Marty Fried Apr 21 '12 at 18:34
Yes, I did. It gives me W: Failed to fetch http://ppa.launchpad.net/pmcenery/ppa/ubuntu/dists/precise/main/source/Sources 404 Not Found W: Failed to fetch http://ppa.launchpad.net/pmcenery/ppa/ubuntu/dists/precise/main/binary-amd64/Pac‌​kages 404 Not Found W: Failed to fetch http://ppa.launchpad.net/pmcenery/ppa/ubuntu/dists/precise/main/binary-i386/Pack‌​ages 404 Not Found E: Some index files failed to download. They have been ignored, or old ones used instead. –  Klikini Apr 21 '12 at 19:09

2 Answers 2

up vote 28 down vote accepted

You can use this trick. Open a terminal ( Pressing Ctrl-Alt-T ) and do these

  • Remove the corrupted one

     sudo rm /etc/apt/sources.list
  • Open software-properties-gtk

     sudo software-properties-gtk

    This will open software-properties-gtk and a new sources.list will be created automatically.

    Then change the server to US or to any other server of your choice. You can also enable repositories from that window.

    enter image description here

share|improve this answer

Try this

Go to repogen.simplylinux.ch.

Select your Country and Ubuntu Release.

For the default set of repositories, you need to enable these repositories.

  • All of the Ubuntu Branches repositories.
  • Security - Important Security Updates.
  • Security Sources Repository
  • Updates - Recommended Updates
  • Updates Sources Repository

If you want to install software from Canonical Partner Repositories (closed source software), enable the Ubuntu Partner Repositories (both of them).

Enable any 3rd party repository you wish to enable.

Now, click the Generate List button at the bottom of that page and you'll see your generated sources.list.

Replace the old sources.list with the new one

Run the following commands in a Terminal.

sudo mv /etc/apt/sources.list /etc/apt/sources.list.old
gksudo gedit /etc/apt/sources.list

Copy/paste all the text from the newly generated sources.list to this file. Save it and close Gedit.

Now, update apt.

sudo apt-get update

This will update your repository index with the current sources.list and then you can install any software using Software Center, Synaptic or apt-get.

share|improve this answer
Somewhere in the past, you added ppa.launchpad.net/pmcenery/ppa/ubuntu/dists/precise/main/source/… to your list. Did you last have the natty version before the beta? I suspect the upgrader changed natty to precise, but there is no precise version available for this package. I would delete it from "Other Software". The error isn't hurting anything, by the way. –  Marty Fried Apr 21 '12 at 20:27
Can you please put your new information in your question instead of the comments, it's hard to see what part you're having a problem you're stuck on now. –  Jorge Castro Apr 21 '12 at 21:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.