I was using Ubuntu 11.10 and installed the KDE Desktop and I was happy with that. But I wanted to get my old login screen back so I removed the package kdm
. When I boot my PC now, it keeps booting and nothing happens.
How can I add the kdm
package again? I got into recovery mode, terminal and tried to execute sudo apt-get instal kdm
but I got an error message.
W: Not using locking for read only lock file /var/lib/dpkg/lock E: Unable to write to /var/cache/apt/ E: The package lists or status file could not be parsed or opened
I'm pretty desperate now, could somebody please help me?
If you need to install package in recovery mode, you can first ask for repairing packages (it will mount
/
in rw mode as suggested by enzotib) and then, when you use the root terminal, you will be able to install new packages and avoid the error you mentioned.I suggest you to go to tty1 with Ctrl-Alt-F1, log in and then start the GUI with
startx
.At that point you can reinstall the package
kdm
.I'm going to put @enzotib's comment here, because I missed it the first time coming here.
Enter "Recovery Mode" in grub
select, "Drop To Root Shell Prompt (read-only mode)"
In the shell execute the command below to re-mount
/
in read/write mode: