我无法在 ubuntu 14.04 上安装 xulrunner 1.9.2

我无法在 ubuntu 14.04 上安装 xulrunner 1.9.2

尝试安装 xulrunner 1.9.2 时,出现以下错误:

Setting up xulrunner-1.9.2 (1.9.2.28+build1+nobinonly-0ubuntu0.10.04.1) ...
/var/lib/dpkg/info/xulrunner-1.9.2.postinst: 8: /var/lib/dpkg/info/xulrunner-1.9.2.postinst: /usr/sbin/update-alternatives: not found
dpkg: error processing package xulrunner-1.9.2 (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 xulrunner-1.9.2
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

  1. sudo nano /var/lib/dpkg/info/xulrunner-1.9.2.prerm

  2. 删除除此以外的所有内容

    #!/bin/sh

    set -e

  3. sudo dpkg -P --force-all xulrunner-1.9.2

    结果

抑制 xulrunner-1.9.2 (1.9.2.28+build1+nobinonly-0ubuntu0.11.04.1)...清除 xulrunner-1.9.2 (1.9.2.28+build1+nobinonly-0ubuntu0.11.04.1) 的配置文件...

参考>>https://www.skyminds.net/ubuntu-resoudre-lerreur-xulrunner-bin-error-while-loading-shared-libraries-libhunspell-1-2-so-0/

祝你好运 :)

相关内容