执行命令时sudo dpkg -C
我得到以下结果 -
The following packages are in a mess due to serious problems during
installation. They must be reinstalled for them (and any packages
that depend on them) to function properly:
nemo-data File manager and graphical shell for Cinnamon (data files
python3-apt Python 3 interface to libapt-pkg
python3-distupgrade manage release upgrades
python3-software-properties manage the repositories that you install software
python3-twisted Event-based framework for internet applications
python3-uno Python-UNO bridge
python3-update-manager python 3.x module for update-manager
software-properties-common manage the repositories that you install software f
software-properties-gtk manage the repositories that you install software from
systemd system and service manager
ubuntu-advantage-tools management tools for Ubuntu Advantage
ubuntu-drivers-common Detect and install additional Ubuntu driver packages
update-manager GNOME application that manages apt updates
我尝试重新安装上面列出的软件包,但这样做时收到以下消息 -E: The package python3-software-properties needs to be reinstalled, but I can't find an archive for it.
有没有一种方法可以重新安装所有这些软件包而不需要重新安装 Ubuntu 本身?
更新:感谢加根,我能够得到一些解决这个问题的见解。不幸的是,在某个时候我的桌面关闭了,我无法加载 GUI(我根本没有看到登录屏幕)。通过一些黑客攻击,我能够访问终端。
虽然,现在我又陷入困境了。这次我收到以下消息。
命令:dpkg -C
回复 -
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
ubuntu-desktop The Ubuntu desktop system
ubuntu-desktop-minimal The Ubuntu desktop minimal system
ubuntu-release-upgrader-gtk manage release upgrades
update-manager GNOME application that manages apt updates
update-notifier Daemon which notifies about package updates
尽管我收到以下消息,但大多数这些软件包似乎取决于update-notifier-common
我尝试安装它的时间 -
(Reading database ... 264324 files and directories currently installed.)
Preparing to unpack update-notifier-common_3.192.30_all.deb ...
Unpacking update-notifier-common (3.192.30) over (3.192.30) ...
Setting up update-notifier-common (3.192.30) ...
Traceback (most recent call last):
File "/usr/lib/update-notifier/package-data-downloader", line 24, in <module>
import debian.deb822
ModuleNotFoundError: No module named 'debian'
dpkg: error processing package update-notifier-common (--install):
installed update-notifier-common package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
update-notifier-common
我的系统中有debian
,但我仍然收到上述消息。
答案1
尝试:
sudo apt --fix-broken install
这是通常用于重新安装损坏的软件包的命令。您也可以尝试:
sudo apt install -f