我无法在 Ubuntu 14.04 LTS 上安装 MRGT-2.17.4 文本出现以下错误?
Reading package lists... Done
Building dependency tree
Reading state information... Done
mrtg is already the newest version.
The following packages were automatically installed and are no longer required:
libart-2.0-2 libcdr-0.0-0 libcmis-0.4-4 libmspub-0.0-0 liborcus-0.6-0
libvisio-0.0-0 libwpd-0.9-9 libwpg-0.2-2 libwps-0.2-2
linux-headers-3.13.0-85 linux-headers-3.13.0-85-generic
linux-image-3.13.0-85-generic linux-image-extra-3.13.0-85-generic
python-pexpect python-renderpm python-reportlab python-reportlab-accel
thunderbird-locale-en thunderbird-locale-en-gb thunderbird-locale-en-us
xfonts-mathml
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 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
Setting up pbis-open (8.2.0.2969) ...
Error: /opt/pbis/sbin/lwsmd --start-as-daemon --disable-autostart --loglevel debug returned 127 (aborting this script)
/var/lib/dpkg/info/pbis-open.postinst: 74: /var/lib/dpkg/info/pbis-open.postinst: /opt/pbis/sbin/lwsmd: not found
dpkg: error processing package pbis-open (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
pbis-open
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
正如输出所示,MRTG 已经安装:
mrtg已经是最新版本了。
但是,安装过程中包pbis-open
出现错误。
可以解决这个问题的一个方法是命令sudo apt install --reinstall pbis-open
此外,您安装了许多孤立的软件包(已安装但不再需要的依赖项)
您可以使用以下方法删除它们:sudo apt autoremove