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. |
||||
|
You can use this trick. Open a terminal ( Pressing Ctrl+Alt+T ) and do these
Updated with inline content This is the
And to replace the word you can use this
Now, content of
Note 1: the word Note 2: Using Note 3: There are repository lines which includes all four components Note 4: You can find some explanation of the repositories in this my other answer |
|||||||||||||
|
|
Go to https://repogen.simplylinux.ch. 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. |
|||||||||||||
|
|
By default there will be a backup for your sources.list file on the same directory itself.
Answer from similar question here: https://askubuntu.com/a/465210/150936 |
|||||
|
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
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/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