我对 Ubuntu 还很陌生。几个月来,我一直使用 20.04 和 Gnome 3。好吧,我想试试 kubuntu。我安装了 kubuntu,它已经启动并运行了。我去卸载 Gnome 3(使用互联网上的说明),但卸载到一半时,我退出了,不知道不能重新开始。
当我输入命令时
$ sudo dpkg-重新配置 lightdm
我明白了:
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
有人能帮忙吗?我不想破坏任何东西!谢谢!:)