当我使用 apt 获取软件包时,我总是收到相同的错误消息。以下是尝试安装 wicd(已安装)的示例:
Reading package lists...
Building dependency tree...
Reading state information...
wicd is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
3 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up tex-common (2.06) ...
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.)
debconf: falling back to frontend: Readline
Running mktexlsr. This may take some time... done.
No packages found matching texlive-base.
dpkg: error processing tex-common (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of texlive-binaries:
texlive-binaries depends on tex-common (>= 2.00); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-binaries (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of dvipng:
dvipng depends on texlive-base-bin; however:
Package texlive-base-bin is not installed.
Package texlive-binaries which provides texlive-base-bin is not configured yet.
dpkg: error processing dvipng (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
tex-common
texlive-binaries
dvipng
E: Sub-process /usr/bin/dpkg returned an error code (1)
我不确定这是 apt 的问题还是 dpkg 的问题,但情况肯定不太好!
答案1
通常使用两个命令可以解决此问题:
sudo apt-get update
将你的数据库更新到最新的软件包。
sudo apt-get -f upgrade
升级并修复这些软件包。
答案2
@Tshepang,Firefeater:命令是“sudo apt-get install X”,其中 X 是我最近尝试安装的任何东西。我实际上不知道我是否正在使用它抱怨的 3 个软件包。我当然不会直接使用它们,但也许我使用的其他东西需要它们。
@Javier Rivera:我运行了你建议的两个命令。发生了很多事情,下载了一些东西,最后,我又得到了
Errors were encountered while processing:
tex-common
texlive-binaries
dvipng
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案3
尝试sudo apt-get clean
看看sudo apt-get autoremove
这是否可以清除错误。
如果您还没有尝试清除软件包,您也可以尝试一下:
sudo apt-get purge texlive-base-bin
sudo apt-get purge texlive-binaries
sudo apt-get purge tex-common
这是一个启动板错误页面我相信其中有相关信息。
还有ubuntuforums 上的一个帖子有人遇到了非常相似的问题。
答案4
看起来你失踪了texlive 基础。
您可以从该链接在软件中心安装它,或者在终端(Ctrl++ )中使用以下命令Alt安装它:T
sudo apt-get update
sudo apt-get install texlive-base