There are now errors when updating and I cannot install most software due to a corrupted
/etc/apt/sources.list
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.
|
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. |
|||
| show 1 more comment |
Try thisGo to this website. Select your Country and Ubuntu Release. For the default set of repositories, you need to enable these repositories.
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 oneRun the following commands in a Terminal.
Copy/paste all the text from the newly generated sources.list to this file. Save it and close Gedit. Now, update apt.
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. |
|||||||
|
|
You can use this trick. Open a terminal ( Pressing Ctrl-Alt-T ) and do these
|
|||
|
|
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_Packages) W: You may want to run apt-get update to correct these problems– Klikini Apr 21 '12 at 18:18W: 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/Packages 404 Not Found W: Failed to fetch http://ppa.launchpad.net/pmcenery/ppa/ubuntu/dists/precise/main/binary-i386/Packages 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