我最近升级到了 Ubuntu 20.04。
运行命令并apt install
返回错误,如下所示。据我了解,apt 尝试删除该错误apt-transport-spacewalk
但失败了。
我该如何成功删除该apt-transport-spacewalk
程序?或者,我该如何停止apt
尝试卸载它,以便安装我需要的程序?
堆栈跟踪:
sudo apt install apt-transport-spacewalk
Reading package lists... Done
Building dependency tree
Reading state information... Done
apt-transport-spacewalk is already the newest version (1.0.6-4.1).
The following packages will be REMOVED:
apt-transport-spacewalk
0 upgraded, 0 newly installed, 1 to remove and 326 not upgraded.
1 not fully installed or removed.
After this operation, 92.2 kB disk space will be freed.
Do you want to continue? [Y/n] Y
/usr/share/apt-listchanges/apt_listchanges.py:540: FutureWarning: Possible nested set at position 25
email_re = re.compile(r'([a-zA-Z0-9_\+\-\.]+)@(([[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)')
(Reading database ... 150063 files and directories currently installed.)
Removing apt-transport-spacewalk (1.0.6-4.1) ...
mv: cannot stat '/etc/apt/apt.conf.d/50spacewalk': No such file or directory
dpkg: error processing package apt-transport-spacewalk (--remove):
installed apt-transport-spacewalk package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
apt-transport-spacewalk
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)