Software Update doesn't work anymore i get this error: The list of sources could not be read

Asked by Rico

hi i need help with this problem
'E:Type 'wget' is not known on line 50 in source list /etc/apt/sources.list, E:The list of sources could not be read.'

I have done all the steps you say here but when I try to save and then go to the next step of the alt f2. etc.
I get when I try to tax the / etc / apt / sources.list

Could not save the file /etc/apt/sources.list.
You do not have the permissions necessary to save the file. Please check that you typed the location correctly and try again.
cancel.

Anyone out there with ideas to fix this.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Rico (brandnew-nintendo-wii-for-sale) said :
#1

Do I have to reload Ubuntu and if so do I lose all my files

Revision history for this message
Philip Paquette (pcpaquette) said :
#2

Can you post your /etc/apt/sources.list here, there seems to be an incorrect line in it. No big deal...

Revision history for this message
Rico (brandnew-nintendo-wii-for-sale) said :
#3

Dude,
 I'm quite the Linux neophyte. How exactly do I post it where you suggest
and where is the incorrect line?

On 9/11/07, Philip Paquette <email address hidden> wrote:
>
> Your question #13191 on Ubuntu changed:
> https://answers.edge.launchpad.net/ubuntu/+question/13191
>
> Status: Open => Needs information
>
> Philip Paquette requested for more information:
> Can you post your /etc/apt/sources.list here, there seems to be an
> incorrect line in it. No big deal...
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.edge.launchpad.net/ubuntu/+question/13191
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Philip Paquette (pcpaquette) said :
#4

1) Go to Applications -> Accessories -> Text Editor
2) Click File -> Open ==> File System -> /etc -> apt -> sources.list
3) The file should open. Then goto Edit -> Select All
4) Goto Edit -> Copy
5) Come to this window and right click in the text box, then select paste. The file should be pasted.

Line 50 is the problematic line according to your report, but I'll fix the file for you and you'll just need to copy it back and save it.

Revision history for this message
Rico (brandnew-nintendo-wii-for-sale) said :
#5

Here it is:

deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Alpha i386 (20070823.5)]/ gutsy main
restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted universe
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted
universe
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-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.

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

## Uncomment the following two lines to add software from Canonical's
## 'commercial' 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 gutsy commercial
# deb-src http://archive.canonical.com/ubuntu gutsy commercial

deb http://security.ubuntu.com/ubuntu gutsy-security main restricted
universe
deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb http://security.ubuntu.com/ubuntu gutsy-security multiverse
deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse
wget http://www.getautomatix.com/keys/automatix2.key
gpg --import automatix2.key

On 9/11/07, Philip Paquette <email address hidden> wrote:
>
> Your question #13191 on Ubuntu changed:
> https://answers.edge.launchpad.net/ubuntu/+question/13191
>
> Status: Open => Needs information
>
> Philip Paquette requested for more information:
> 1) Go to Applications -> Accessories -> Text Editor
> 2) Click File -> Open ==> File System -> /etc -> apt -> sources.list
> 3) The file should open. Then goto Edit -> Select All
> 4) Goto Edit -> Copy
> 5) Come to this window and right click in the text box, then select
> paste. The file should be pasted.
>
> Line 50 is the problematic line according to your report, but I'll fix
> the file for you and you'll just need to copy it back and save it.
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.edge.launchpad.net/ubuntu/+question/13191
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Philip Paquette (pcpaquette) said :
#6

OK...

Now go to your desktop and type Alt-F2. A run application window should appear.
Type "gksudo gedit" . You should be prompted for your password. After that, the text editor window should appear.
Then open /etc/apt/sources.list and REMOVE the following 2 lines (at the end of the file).

"wget http://www.getautomatix.com/keys/automatix2.key
gpg --import automatix2.key"

Click Save and close the text editor.
Then Goto Applications > Accessories > Terminal ... a terminal should open, type the following commands one by one (without the >):

> wget http://www.getautomatix.com/keys/automatix2.key
> gpg --import automatix2.key
> sudo apt-get update

Then your problem should be fixed. You can verify by going to System > Administration > Update-Manager.

Also, next time you want to add a repository, you should do it through System > Administration > Software Sources > Third Party.

Hope this helps.

Revision history for this message
Rico (brandnew-nintendo-wii-for-sale) said :
#7

Thanks man. That fixed it.

On 9/12/07, Philip Paquette <email address hidden> wrote:
>
> Your question #13191 on Ubuntu changed:
> https://answers.edge.launchpad.net/ubuntu/+question/13191
>
> Status: Open => Answered
>
> Philip Paquette proposed the following answer:
> OK...
>
> Now go to your desktop and type Alt-F2. A run application window should
> appear.
> Type "gksudo gedit" . You should be prompted for your password. After
> that, the text editor window should appear.
> Then open /etc/apt/sources.list and REMOVE the following 2 lines (at the
> end of the file).
>
> "wget http://www.getautomatix.com/keys/automatix2.key
> gpg --import automatix2.key"
>
> Click Save and close the text editor.
> Then Goto Applications > Accessories > Terminal ... a terminal should
> open, type the following commands one by one (without the >):
>
> > wget http://www.getautomatix.com/keys/automatix2.key
> > gpg --import automatix2.key
> > sudo apt-get update
>
> Then your problem should be fixed. You can verify by going to System >
> Administration > Update-Manager.
>
> Also, next time you want to add a repository, you should do it through
> System > Administration > Software Sources > Third Party.
>
> Hope this helps.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.edge.launchpad.net/ubuntu/+question/13191/+confirm?answer_id=5
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.edge.launchpad.net/ubuntu/+question/13191
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Greg Toombs (greg-toombs) said :
#8

Rico, please mark this question as 'answered'. Thanks!

Revision history for this message
pila (poluxtrois) said :
#9

I have done all the steps you say here but when I try to save and then go to the next step of the alt-f2. etc.
 I get when I try to tax the / etc / apt / sources.list

Could not save the file /etc/apt/sources.list.
You do not have the permissions necessary to save the file. Please check that you typed the location correctly and try again.

please tell how i can resolve this problem.

thnks.

_________________________________________________________________
Windows Live: Friends get your Flickr, Yelp, and Digg updates when they e-mail you.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_3:092010

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

In a terminal type or copy and paste the row below, then press enter:

gksudo gedit /etc/apt/sources.list

the system will ask you a password give your user password, you will not see nothing when you type it, then press enter

Then do the suggested changes to the file, then save and close the file and try to update your system.

Hth

Revision history for this message
jimbob08 (jameswau) said :
#11

how do you fix the problem 'E:Type'"deb' line 41 in source list /etc/apt/sources.list
for Ubuntu 8.10?

i can't upgrade or open Package Manager and i don't have an internet connection currently.

Revision history for this message
jimbob08 (jameswau) said :
#12

how do you fix the problem 'E:Type'"deb' line 41 in source list /etc/apt/sources.list
for Ubuntu 8.10?

i can't upgrade or open Package Manager and i don't have an internet connection currently.

Can you help with this problem?

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

To post a message you must log in.