我安装了相当老的 Ubuntu,定期升级到 LTS。上次我通过 Discover 进行常规软件包更新时,发现一切都已损坏。
简单的 apt install 让我得到了这个:
apt install firefox
...
...
dpkg: error processing package udev (--configure):
installed udev package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of snapd:
snapd depends on udev; however:
Package udev is not configured yet.
dpkg: error processing package snapd (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
udev
snapd
E: Sub-process /usr/bin/dpkg returned an error code (1)
使用 dpkg 修复也不起作用
# dpkg --configure udev
Setting up udev (249.11-0ubuntu3.9) ...
The group `kvm' already exists and is not a system group. Exiting.
dpkg: error processing package udev (--configure):
installed udev package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
udev
# dpkg --configure snapd
dpkg: dependency problems prevent configuration of snapd:
snapd depends on udev; however:
Package udev is not configured yet.
dpkg: error processing package snapd (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
snapd
即使我想删除或安装一些不相关的软件包。我尝试了所有我能找到的方法,但没有任何效果。
错误列表会根据我想要执行的操作而增长。但这些错误始终存在。
即使我拥有 20 年的桌面经验和轻量级 linux/bsd 管理经验,我也无法解决这个问题。