archive.ubuntu.com/ubuntu is not known

Asked by greg tomsich

new to ubunto, installed and working but synaptic pkg manager gives error message and will not reload packages. Can't find repository dialog.

E: Type 'http://archive.ubuntu.com/ubuntu' is not known on line 24 in source list /etc/apt/sources.list
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: Type 'http://archive.ubuntu.com/ubuntu' is not known on line 24 in source list /etc/apt/sources.list
E: Unable to lock the list directory

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu synaptic Edit question
Assignee:
No assignee Edit question
Solved by:
Dean Sas
Solved:
Last query:
Last reply:
Revision history for this message
Dean Sas (dsas) said :
#1

It's in System -> Administration -> Software Properties

Revision history for this message
greg tomsich (gtomsich) said :
#2

i get repository window. Added all repositories. hit reload.received this error

E: Type 'http://archive.ubuntu.com/ubuntu' is not known on line 22 in source list /etc/apt/sources.list
E: Unable to lock the list directory

Never dealt with any of this before. only used suse with kde.

Revision history for this message
Dean Sas (dsas) said :
#3

Ok, I'm not sure how it got like that, but the manual way to fix it is probably to edit /etc/apt/sources.list and change line 22 to start with "deb "

if that fails copy the /etc/apt/sources.list file to this webpage.

Revision history for this message
greg tomsich (gtomsich) said :
#4

decided to reinstall

Revision history for this message
Jane smith (arunmain) said :
#5

bu how to edit /etc/apt/sources.list

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#6

Please delete it, open a Terminal from the menu Applications->Accessories->Terminal and type:

sudo gedit /etc/apt/sources.list

give your user password when requested, you don't see nothing when you type it, then press enter.

Save and exit then retry.

Then be also sure your system is fully upgraded, to check:
open a Terminal from the menu Applications->Accessories->Terminal and type:

sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get clean all
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get clean all
sudo apt-get autoremove

then plase reboot your system, type

sudo reboot

give your user password when requested, you don't see nothing when you type it, then press enter.

Hope this helps

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#7

Sorry better don't delete the row... but

open a Terminal from the menu Applications->Accessories->Terminal and type:

sudo gedit /etc/apt/sources.list

give your user password when requested, you don't see nothing when you type it, then press enter.

Make a check of the file rows or copy and paste contents here... to get better help.

Save and exit then retry to update.

Then be also sure your system is fully upgraded, to check:
open a Terminal from the menu Applications->Accessories->Terminal and type:

sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get clean all
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get clean all
sudo apt-get autoremove

then plase reboot your system, type

sudo reboot

give your user password when requested, you don't see nothing when you type it, then press enter.

Hope this helps