apt error: "The list of sources could not be read."
- Keywords:
- apt synaptic update-manager sources.list broken wget
- Last updated by:
- Bhavani Shankar
You have added some incorrect lines to your file /etc/apt/
To resolve this you need to edit the file /etc/apt/
As a guide, sources.list should only contain lines that start "deb", "deb-src", "cdrom" or a "#" symbol, anything else is wrong and should not be there. Please refer to the error message, which should contain a line number.
To edit the sources.list file, press ALT+F2 at the Ubuntu desktop and then type the following command in the box, depending on your Ubuntu flavour:
For Ubuntu:
gksudo gedit /etc/apt/
For Kubuntu:
kdesudo kwrite /etc/apt/
Exactly as you see it there, then press enter/return. Enter your password when prompted and edit the file in the editor as advised above. You should then save and quit the editor.
The program which reads /etc/apt/
For ubuntu 7.10 please paste the below:
#deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted
# See http://
# newer versions of the distribution.
deb http://
deb-src http://
## Major bug fix updates produced after the final release of the
## distribution.
deb http://
deb-src http://
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://
deb-src http://
deb http://
deb-src http://
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://
deb-src http://
deb http://
deb-src http://
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://
deb-src http://
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
Save the source list
Run the update manager
gksu "update-manager -c"