在尝试更新、升级、重新配置 dpkg 以及清理或安装 -f 多次后,我非常绝望,因为错误消息仍然存在,而且我找不到解决方案。但让我们关注第一件事:当我执行 sudo dpkg --configure -a 时,我得到以下输出:
sudo dpkg --configure -a
Setting up rsyslog (8.2001.0-1ubuntu1.1) ...
The user `syslog' is already a member of `adm'.
The user `syslog' is already a member of `tty'.
dpkg: error processing package rsyslog (--configure):
installed rsyslog package post-installation script subprocess returned error exit status 10
Setting up ufw (0.36-6) ...
dpkg: error processing package ufw (--configure):
installed ufw package post-installation script subprocess returned error exit status 10
Setting up grub-pc (2.04-1ubuntu26.8) ...
dpkg: error processing package grub-pc (--configure):
installed grub-pc package post-installation script subprocess returned error exit status 10
Setting up gconf2-common (3.2.6-6ubuntu1) ...
dpkg: error processing package gconf2-common (--configure):
installed gconf2-common package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of gconf-service-backend:
gconf-service-backend depends on gconf2-common (= 3.2.6-6ubuntu1); however:
Package gconf2-common is not configured yet.
dpkg: error processing package gconf-service-backend (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gconf-service:
gconf-service depends on gconf-service-backend (= 3.2.6-6ubuntu1); however:
Package gconf-service-backend is not configured yet.
dpkg: error processing package gconf-service (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libgconf-2-4:amd64:
libgconf-2-4:amd64 depends on gconf2-common (= 3.2.6-6ubuntu1); however:
Package gconf2-common is not configured yet.
dpkg: error processing package libgconf-2-4:amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gconf2:
gconf2 depends on gconf-service; however:
Package gconf-service is not configured yet.
gconf2 depends on libgconf-2-4 (>= 3.2.6-6ubuntu1); however:
Package libgconf-2-4:amd64 is not configured yet.
gconf2 depends on gconf-service-backend (= 3.2.6-6ubuntu1); however:
Package gconf-service-backend is not configured yet.
dpkg: error processing package gconf2 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
rsyslog
ufw
grub-pc
gconf2-common
gconf-service-backend
gconf-service
libgconf-2-4:amd64
gconf2
我的系统目前是 Ubuntu 20.04。升级 Ubuntu 到当前版本时,情况变得很糟糕,因为在某个时候,有些东西冻结了。