0

I am very new to Ubuntu. I've had 20.04 with Gnome 3 for a couple months. Well, I wanted to try kubuntu. I got kubuntu installed and it is up and running. I went to uninstall Gnome 3 (using directions from the internet), but halfway through uninstalling, I exited out, not knowing you couldn't just start over again.

When I put in the command

$ sudo dpkg-reconfigure lightdm

I get this:

debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable

$ sudo fuser -v /var/cache/debconf/config.dat

USER        PID ACCESS COMMAND
/var/cache/debconf/config.dat:
                     root      32024 F.... frontend

$ sudo apt-get remove gnome-session

E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 31127 (apt-get)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

$ ps aux | grep -i apt

root       31124  0.0  0.0  11732  4828 ?        S    07:49   0:00 sudo apt-get remove gnome-session gnome gnome-shell
root       31127  0.1  0.8  83060 69492 ?        S    07:49   0:01 apt-get remove gnome-session gnome gnome-shell
strawbe+   73729  0.0  0.0   9032   660 pts/2    S+   08:06   0:00 grep --color=auto -i apt

Can anyone help please? I don't want to break anything! Thank you! :)

karel
  • 122,292
  • 133
  • 301
  • 332

0 Answers0