我目前无法运行软件更新程序。从 GUI 界面运行时,它会立即返回并且不提供任何附加信息。从终端运行时,我收到以下错误输出:
user@comp:~$ update-manager
Traceback (most recent call last):
File "/usr/bin/update-manager", line 118, in <module>
app.start_update()
File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 221, in start_update
update_backend = get_backend(self, InstallBackend.ACTION_UPDATE)
File "/usr/lib/python3/dist-packages/UpdateManager/backend/__init__.py", line 365, in get_backend
raise Exception("No working backend found, please try installing "
Exception: No working backend found, please try installing aptdaemon or synaptic
当我尝试安装 synaptic(sudo apt-get install synaptic)时,我得到以下输出,并且更新管理器如上所述失败:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libept1.6.0 libxapian30
Suggested packages:
xapian-tools dwww menu deborphan apt-xapian-index tasksel
The following NEW packages will be installed:
libept1.6.0 libxapian30 synaptic
0 upgraded, 3 newly installed, 0 to remove and 117 not upgraded.
4 not fully installed or removed.
Need to get 1,362 kB of archives.
After this operation, 6,346 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://do.archive.ubuntu.com/ubuntu focal/universe amd64 libept1.6.0 amd64 1.1+nmu3ubuntu3 [79.6 kB]
Get:2 http://do.archive.ubuntu.com/ubuntu focal/universe amd64 libxapian30 amd64 1.4.14-2 [661 kB]
Get:3 http://do.archive.ubuntu.com/ubuntu focal/universe amd64 synaptic amd64 0.84.6ubuntu5 [622 kB]
Fetched 1,362 kB in 5s (293 kB/s)
/bin/sh: 1: /usr/sbin/dpkg-preconfigure: not found
Setting up install-info (6.7.0.dfsg.2-5) ...
/var/lib/dpkg/info/install-info.postinst: 32: update-info-dir: not found
dpkg: error processing package install-info (--configure):
installed install-info package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)
当尝试安装 aptdaemon(sudo apt-get install aptdaemon)时,它会产生以下输出,并且更新管理器会如上所述失败:
Reading package lists... Done
Building dependency tree
Reading state information... Done
aptdaemon is already the newest version (1.1.1+bzr982-0ubuntu32.2).
aptdaemon set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 117 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
/bin/sh: 1: /usr/sbin/dpkg-preconfigure: not found
Setting up install-info (6.7.0.dfsg.2-5) ...
/var/lib/dpkg/info/install-info.postinst: 32: update-info-dir: not found
dpkg: error processing package install-info (--configure):
installed install-info package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)
我最近将我的笔记本电脑(戴尔 Inspiron 15R)升级到 16 GB RAM 和 1TB SSD(我从 1TB HDD 复制而来)。其他一切似乎都运行良好。
有人能提供一些关于如何修复或替换更新管理器的建议吗?我可以运行什么东西来检查整个系统并检测/修复损坏的命令吗?
谢谢你,克劳德