Quote:
Originally Posted by rosh1182
Likely the problem is that you do not have permission to write the file. In Linux systems, security is built in by not allowing regular users to edit important files. In order to edit the file, you must become the root user. There are a variety of ways to do this. I will give you two.
Command-line version (Doing everything from a terminal):
1. Type 'su', then hit ENTER
2. Type in the root password
3. enter your editor of choice and edit the file. (Examples: "nano /etc/apt/sources.list" or "vi /etc/apt/sources.list" or "kate /etc/apt/sources.list"
Gui-version:
1. Click on the "Start" menu, then click "Run Command"
2. type either of the following (depending on what application you want as your editor): "kdesu kate" or "kdesu kwrite"
3. Type in the root password.
4. Now that you are in the editor of choice (in the above examples, either kate or kwrite), open /etc/apt/sources.list and edit the file accordingly
|
it let me save in Kate, but I still get errors in the Terminal when trying the "apt" commands.
I type apt-get update, and I got this error:
E: Could not open lock file /var/lib/apt/lists/lock - open (13 Permission denied)
E: Unable to lock the list directory
did it as sudo apt-get update and got this:
Failed to fetch cdrom:[Kubuntu 5.10 _Breezy Badger_ - Release i386 (20051012)]/dists/breezy/main/binary-i386/Packages.gz Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Failed to fetch cdrom:[Kubuntu 5.10 _Breezy Badger_ - Release i386 (20051012)]/dists/breezy/restricted/binary-i386/Packages.gz Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Reading package lists... Done
W: Couldn't stat source package list cdrom://Kubuntu 5.10 _Breezy Badger_ - Release i386 (20051012) breezy/main Packages (/var/lib/apt/lists/Kubuntu%205.10%20%5fBreezy%20Badger%5f%20-%20Release%20i386%20(20051012)_dists_breezy_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list cdrom://Kubuntu 5.10 _Breezy Badger_ - Release i386 (20051012) breezy/restricted Packages (/var/lib/apt/lists/Kubuntu%205.10%20%5fBreezy%20Badger%5f%20-%20Release%20i386%20(20051012)_dists_breezy_restricted_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones used instead.
it worked for like 5 seconds and go to a certain file and died. happened twice so I don't think it just "happened".
and when I try apt-get install limewire I get the same error as before; (E: Could not open lock file /var/lib/apt/lists/lock - open (13 Permission denied)
E: Unable to lock the list directory)
and when I try sudo apt-get install limewire I get:
Reading package lists... Done
Building dependency tree... Done
W: Couldn't stat source package list cdrom://Kubuntu 5.10 _Breezy Badger_ - Release i386 (20051012) breezy/main Packages (/var/lib/apt/lists/Kubuntu%205.10%20%5fBreezy%20Badger%5f%20-%20Release%20i386%20(20051012)_dists_breezy_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list cdrom://Kubuntu 5.10 _Breezy Badger_ - Release i386 (20051012) breezy/restricted Packages (/var/lib/apt/lists/Kubuntu%205.10%20%5fBreezy%20Badger%5f%20-%20Release%20i386%20(20051012)_dists_breezy_restricted_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Couldn't find package limewire