repository problem i think... im new with this

Asked by Snake

E: Type 'sudo' is not known on line 37 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.

i have all the newest updates. i installed some programs with the manager. and then i tried to install beryl from the terminal according to the wiki page and i practically just coppied some commands in there and it didnt work so it eventualy gave me this when i enetered the package manager... the reload doesn't work anymore donno what 2 do :D pls help

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Alan Pope 🍺🐧🐱 🦄
Solved:
Last query:
Last reply:
Revision history for this message
Best Alan Pope 🍺🐧🐱 🦄 (popey) said :
#1

You have added some commands to the end of your /etc/apt/sources.list which should have been executed in a terminal.

To resolve this you need to edit the file /etc/apt/sources.list and remove the lines from the end that should not be there. As a guide, sources.list should only contain lines that start "deb", "deb-src" or a "#" symbol, anything else is wrong and should not be there.

To edit it, press ALT+F2 at the Ubuntu desktop and then type the following command in the box:-

gksudo gedit /etc/apt/sources.list

Exactly as you see there, then press enter. Enter your password when prompted and edit the file in the editor as I advised above. You should then save and quit the editor. The update manager should then work.

Revision history for this message
Snake (metal-gear-solid-999) said :
#2

sorry for latency of reply i was busy in between. 10k you for your promptitude (excuse my english if it is bad) your solution worked perfectly. 10x again :)