PDA

View Full Version : [kubuntu] APT broken - can't fix!



palob
July 1st, 2008, 02:40 PM
Hi,

Can anyone help. I am a new Linux user. have installed Kubuntu KDE4 onto my desktop and have managed to break APT. i can't load it, i tried to attach a hard drive as another sources for loading software, thought it had failed. however it has entered this drive onto the end of the sources.list and everytime it tries to load apt fails with an error message saying it doesn't recognise this entry in line 56. i have read everything I can find on apt but i can't seem to amend the sources file, it doesn't recognise my authority and keeps asking for the root user, i am the only user.

Sorry this has taken so long, but I'm getting to the point that i might abandon Linux, since it has me stumped! i have tried apt install etc etc

Thank you if anyone can help.

PS i've always been very good at breaking systems!

MacMan
July 1st, 2008, 04:37 PM
To execute a command as root in (K)Ubuntu you use the sudo command. In this case, to edit your sources.list file as root you would open a Konsole and type something like:

sudo kate /etc/apt/sources.list
Press enter to execute the command: the system will ask you for your password: insert the password you use as a normal user.

Yours is a question about a very basic aspect of Ubuntu, so I suggest you go and read some documentation. That's the way you do it with Linux: first search around for tips (Google is your friend, and this forum is a huge knowledge base as well) and then eventually ask here.

With just a bit of patience you'll learn fast and become acquainted with your new Linux system in no time - and you'll have a lot of fun!

Ciao.

palob
July 1st, 2008, 05:10 PM
hi,

Thank you for your help. i have tried sudo and your suggestion but it doesn't recognise the command.

MacMan
July 1st, 2008, 08:01 PM
It would be very helpful to know exactly what output you got when you tried the command. Can you try again and paste the result here?

Ciao.

palob
July 1st, 2008, 09:16 PM
Hi,

Thank you for your help.

response received

sudo: kate: command not found.

MacMan
July 2nd, 2008, 10:20 AM
You will have to make do with a console editor. Try this:

sudo nano -w /etc/apt/sources.list

Make your change, then press CTRL+X to exit. The program will ask you if you want to save your changes. You press Y to confirm. Good luck.

Ciao.