Oops I messed up update manager

Asked by Neil

HI there
Help
 I was trying something that I had read.
and......well...... I messed it up.

Thank you
Neil

I am getting this message.(see below) there are three slightly different ones, I have put them all here.
they are similar, but I guess the more info the better!
I will playing will the kernel I think, can I just reinstall it or update it.
This is the message from update manager.

'E:Type 'echo' is not known on line 58 in source list /etc/apt/sources.list, E:The list of sources could not be read.'

E: Type 'echo' is not known on line 58 in source list /etc/apt/sources.list
E: Unable to lock the list directory

E: Type 'echo' is not known on line 58 in source list /etc/apt/sources.list
E: The list of sources could not be read.
Go to the repository dialogue to correct the problem.
E: _cache->open() failed, please report.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Bhavani Shankar
Solved:
Last query:
Last reply:
Revision history for this message
Wyatt Smith (wyatt-smith) said :
#1

Please open a terminal and post the output of this command

cat /etc/apt/sources.list

It looks like you have a bad entry in your source list

Revision history for this message
Neil (goofandfroggie) said :
#2

Hi thanks for getting back to me
here the info
 Neil

# deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release i386 (20080423)]/ hardy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://au.archive.ubuntu.com/ubuntu/ hardy main restricted
deb-src http://au.archive.ubuntu.com/ubuntu/ hardy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://au.archive.ubuntu.com/ubuntu/ hardy-updates main restricted
deb-src http://au.archive.ubuntu.com/ubuntu/ hardy-updates main restricted

## 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://au.archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://au.archive.ubuntu.com/ubuntu/ hardy universe
deb http://au.archive.ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://au.archive.ubuntu.com/ubuntu/ hardy-updates universe

## 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://au.archive.ubuntu.com/ubuntu/ hardy multiverse
deb-src http://au.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://au.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
deb-src http://au.archive.ubuntu.com/ubuntu/ hardy-updates multiverse

## 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://au.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
# deb-src http://au.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse

## 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://archive.canonical.com/ubuntu hardy partner
# deb-src http://archive.canonical.com/ubuntu hardy partner

deb http://security.ubuntu.com/ubuntu hardy-security main restricted
deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted
deb http://security.ubuntu.com/ubuntu hardy-security universe
deb-src http://security.ubuntu.com/ubuntu hardy-security universe
deb http://security.ubuntu.com/ubuntu hardy-security multiverse
deb-src http://security.ubuntu.com/ubuntu hardy-security multiverse
deb http://ppa.launchpad.net/banshee-team/ubuntu hardy main

echo 'deb-src http://ppa.launchpad.net/reacocard-awn/ubuntu hardy main'
sudo tee -a /etc/apt/sources.list

sudo apt-get update

sudo tee -a /etc/apt/sources.list

deb http://ppa.launchpad.net/awn-testing/ubuntu hardy main
deb-src http://ppa.launchpad.net/awn-testing/ubuntu hardy main

Revision history for this message
David Hugh-Jones (davidhughjones) said :
#3

Delete these lines, they shouldn't be there:

echo 'deb-src http://ppa.launchpad.net/reacocard-awn/ubuntu hardy main'
sudo tee -a /etc/apt/sources.list

sudo apt-get update

sudo tee -a /etc/apt/sources.list

Revision history for this message
Neil (goofandfroggie) said :
#4

Hi

how do I delete them?
I typed in the command cat /etc/apt/sources

and get the a list that I can not alter .

Thanks again Neil

Revision history for this message
Best Bhavani Shankar (bhavi) said :
#5

Hello Neil

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/sources.list
For Kubuntu:
kdesudo kwrite /etc/apt/sources.list
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.

Then delete/remove these lines

echo 'deb-src http://ppa.launchpad.net/reacocard-awn/ubuntu hardy main'
sudo tee -a /etc/apt/sources.list

sudo apt-get update

sudo tee -a /etc/apt/sources.list

You should then save and quit the editor.

Then do

sudo apt-get update

The program which reads /etc/apt/sources.list should work again.

Regards

Revision history for this message
Neil (goofandfroggie) said :
#6

Thanks Bhavani Shankar, that solved my question.

Revision history for this message
Neil (goofandfroggie) said :
#7

Thanks all for your help will teach me for playing around with things
Neil