Add/ Remove application error

Asked by Ravichandra R

Hi,

When i tried to install screenelets on Ubuntu 8.04 system get hang. later i restart forcefully and started again to install but through an error and fail to start add/remove software

below is the info on the terminal

ravichandrra@Ravichandrra-Laptop:~$ sudo apt-get install -f
[sudo] password for ravichandrra:
E: Type 'http://ubuntu.org.au' is not known on line 57 in source list /etc/apt/sources.list
E: The list of sources could not be read.
ravichandrra@Ravichandrra-Laptop:~$

please help me out.

regards

Ravichandra R

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Elfy (elfy) said :
#1

You need to edit the file to remove incorrect entries

Backup the file with

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

Edit the file

gksudo gedit /etc/apt/sources.list

Edit the gedit preferences (edit menu) and enable line numbers, will make it so much easier.

Go to line 57 - all lines in the sources list should only contain lines that start "deb", "deb-src", "cdrom" or a "#" symbol anything else will cause a problem.

If you have lines whic do not look similar to
deb http://security.ubuntu.com/ubuntu hardy-security main restricted

either comment the line out with a

#

or delete the line ,

if you have been trying to get new repositories added and have lines starting with

wget or similar delete it.

When you have checked the list for errors do

sudo apt-get update

If you think you have half installed packages

sudo apt-get install -f

Can you help with this problem?

Provide an answer of your own, or ask Ravichandra R for more information if necessary.

To post a message you must log in.