前bsnes几天我去安装,不知什么原因,安装失败。现在,我无法更新、安装新软件包或执行任何 apt-get 命令,因为它们都试图处理这个损坏的软件包并失败。尝试安装一个新的软件包也注定了它的命运。
我得到的错误是:
Setting up google-chrome-stable (33.0.1750.152-1) ...
/var/lib/dpkg/info/google-chrome-stable.postinst: 124: /var/lib/dpkg/info/google-chrome-stable.postinst: update-alternatives: not found
dpkg: error processing google-chrome-stable (--configure):
subprocess installed post-installation script returned error exit status 127
Setting up bsnes (0.088-7) ...
/var/lib/dpkg/info/bsnes.postinst: 5: /var/lib/dpkg/info/bsnes.postinst: update-alternatives: not found
dpkg: error processing bsnes (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
google-chrome-stable
bsnes
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)
我一直在谷歌和这里的 Ask Ubuntu 上搜索,但还没有找到可行的解决方案。
通常建议的修复是运行以下命令:
sudo apt-get clean && …Run Code Online (Sandbox Code Playgroud)