dpkg:错误处理包安装信息

Sha*_*han 15 package-management apt dpkg imagemagick

我尝试imagemagick通过以下方式安装软件包 sudo apt-get install imagemagick

我现在收到以下错误,如何修复它。

$ sudo apt-get install imagemagick
Reading package lists... Done
Building dependency tree       
Reading state information... Done
imagemagick is already the newest version (8:6.9.7.4+dfsg-16ubuntu2.3).
0 upgraded, 0 newly installed, 0 to remove and 0 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 install-info (6.4.90.dfsg.1-1build1) ...
/usr/sbin/update-info-dir: 2: /etc/environment: TESSDATA_PREFIX: not found
dpkg: error processing package install-info (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)

Sha*_*han 53

sudo mv /var/lib/dpkg/info/install-info.postinst /var/lib/dpkg/info/install-info.postinst.bad
Run Code Online (Sandbox Code Playgroud)

修复了问题。

  • 谢谢你。它解决了我的问题,但你能解释一下问题和解决方案吗? (4认同)