我尝试安装 texlive-full apt-get
,但由于一些错误,安装停止了。后来我手动删除了与texlive、texmf相关的所有文件夹和文件。从那时起,我在尝试对任何软件包使用 apt-get install 时收到以下错误。我已经尝试过apt-get clean
,aptitude clean
等等。有人可以帮助我吗?我认为这是dpkg
给出错误的原因。
我正在使用 Linux Mint,并且是 Linux 的新手。我已将错误消息粘贴到下面:
Setting up tex-common (3.13) ...
find: `/etc/texmf/texmf.d': No such file or directory
update-language-dat: cannot read /etc/texmf/hyphen.d/00tex.cnf
update-language-dat: if it was removed by accident, it has to be reinstalled with
update-language-dat: t=$(mktemp -d); cd $t; apt-get download tex-common ; dpkg -i --force-confmiss tex-common*.deb
dpkg: error processing tex-common (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of latex-sanskrit:
latex-sanskrit depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing latex-sanskrit (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of tex-gyre:
tex-gyre depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing tex-gyre (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-latex-base:
texlive-latex-base depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-latex-base (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of asymptote:
asymptote depends on texlive-latex-base; however:
Package texlive-latex-base is not configured yet.
asymptote depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing asymptote (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of context:
context depends on tex-gyre; however:
Package tex-gyre is not configured yet.
context depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing context (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of context-modules:
context-modules depends on context (>> 2011); however:
Package context is not configured yet.
context-modules depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing context-modules (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ipe:
ipe depends on texlive-latex-base; however:
Package texlive-latex-base is not configured yet.
dpkg: error processing ipe (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-latex-recommended:
texlive-latex-recommended depends on texlive-latex-base (>= 2012.20120516); however:
Package texlive-latex-base is not configured yet.
texlive-latex-recommended depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-latex-recommended (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of latex-xcolor:
latex-xcolor depends on texlive-latex-recommended; however:
Package texlive-latex-recommended is not configured yet.
latex-xcolor depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing latex-xcolor (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pgf:
pgf depends on tex-common (>= 2.00); however:
Package tex-common is not configured yet.
pgf depends on texlive-latex-recommended; however:
Package texlive-latex-recommended is not configured yet.
pgf depends on latex-xcolor (>= 2.00-1); however:
Package latex-xcolor is not configured yet.
dpkg: error processing pgf (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of latex-beamer:
latex-beamer depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
latex-beamer depends on pgf (>= 1.00-1); however:
Package pgf is not configured yet.
latex-beamer depends on latex-xcolor (>= 2.00-1); however:
Package latex-xcolor is not configured yet.
latex-beamer depends on texlive-latex-base; however:
Package texlive-latex-base is not configured yet.
dpkg: error processing latex-beamer (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of latex-cjk-chinese-arphic-bkai00mp:
latex-cjk-chinese-arphic-bkai00mp depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing latex-cjk-chinese-arphic-bkai00mp (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of latex-cjk-chinese-arphic-bsmi00lp:
latex-cjk-chinese-arphic-bsmi00lp depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing latex-cjk-chinese-arphic-bsmi00lp (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of latex-cjk-chinese-arphic-gbsn00lp:
latex-cjk-chinese-arphic-gbsn00lp depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing latex-cjk-chinese-arphic-gbsn00lp (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of latex-cjk-chinese-arphic-gkai00mp:
latex-cjk-chinese-arphic-gkai00mp depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing latex-cjk-chinese-arphic-gkai00mp (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of latex-cjk-japanese-wadalab:
latex-cjk-japanese-wadalab depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing latex-cjk-japanese-wadalab (--configure):
dependency problems - leaving unconfigured
Setting up m-tx (0.60d-5) ...
warning: kpathsea: configuration file texmf.cnf not found in these directories: /etc/texmf/web2c:/usr/share/texlive/texmf/web2c:/usr/share/texlive/texmf-dist/web2c:/usr/local/share/texmf/web2c.
/var/lib/dpkg/info/m-tx.postinst: 17: /var/lib/dpkg/info/m-tx.postinst: $TEXMFMAIN/web2c/mktexupd: not found
dpkg: error processing m-tx (--configure):
subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of musixtex:
musixtex depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing musixtex (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of prosper:
prosper depends on texlive-latex-base; however:
Package texlive-latex-base is not configured yet.
prosper depends on texlive-latex-recommended; however:
Package texlive-latex-recommended is not configured yet.
prosper depends on tex-common (>= 1.10); however:
Package tex-common is not configured yet.
dpkg: error processing prosper (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-ar:
texlive-doc-ar depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-doc-ar (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-bg:
texlive-doc-bg depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-doc-bg (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-cs+sk:
texlive-doc-cs+sk depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-doc-cs+sk (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-de:
texlive-doc-de depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-doc-de (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-en:
texlive-doc-en depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-doc-en (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-es:
texlive-doc-es depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-doc-es (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-fi:
texlive-doc-fi depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-doc-fi (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-fr:
texlive-doc-fr depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-doc-fr (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-it:
texlive-doc-it depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-doc-it (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-ja:
texlive-doc-ja depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-doc-ja (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-ko:
texlive-doc-ko depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-doc-ko (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-mn:
texlive-doc-mn depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-doc-mn (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-nl:
texlive-doc-nl depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-doc-nl (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-pl:
texlive-doc-pl depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-doc-pl (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-pt:
texlive-doc-pt depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-doc-pt (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-rs:
texlive-doc-rs depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-doc-rs (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-ru:
texlive-doc-ru depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-doc-ru (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-si:
texlive-doc-si depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-doc-si (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-th:
texlive-doc-th depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-doc-th (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-tr:
texlive-doc-tr depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-doc-tr (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-uk:
texlive-doc-uk depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-doc-uk (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-vi:
texlive-doc-vi depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-doc-vi (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-doc-zh:
texlive-doc-zh depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-doc-zh (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-fonts-extra:
texlive-fonts-extra depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-fonts-extra (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-fonts-extra-doc:
texlive-fonts-extra-doc depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-fonts-extra-doc (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-fonts-recommended:
texlive-fonts-recommended depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-fonts-recommended (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-fonts-recommended-doc:
texlive-fonts-recommended-doc depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-fonts-recommended-doc (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-generic-extra:
texlive-generic-extra depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-generic-extra (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-humanities-doc:
texlive-humanities-doc depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-humanities-doc (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-lang-african:
texlive-lang-african depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-lang-african (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of texlive-lang-arabic:
texlive-lang-arabic depends on tex-common (>= 3); however:
Package tex-common is not configured yet.
dpkg: error processing texlive-lang-arabic (--configure):
dependency problems - leaving unconfigured
dpkg: too many errors, stopping
Errors were encountered while processing:
tex-common
latex-sanskrit
tex-gyre
texlive-latex-base
asymptote
context
context-modules
ipe
texlive-latex-recommended
latex-xcolor
pgf
latex-beamer
latex-cjk-chinese-arphic-bkai00mp
latex-cjk-chinese-arphic-bsmi00lp
latex-cjk-chinese-arphic-gbsn00lp
latex-cjk-chinese-arphic-gkai00mp
latex-cjk-japanese-wadalab
m-tx
musixtex
prosper
texlive-doc-ar
texlive-doc-bg
texlive-doc-cs+sk
texlive-doc-de
texlive-doc-en
texlive-doc-es
texlive-doc-fi
texlive-doc-fr
texlive-doc-it
texlive-doc-ja
texlive-doc-ko
texlive-doc-mn
texlive-doc-nl
texlive-doc-pl
texlive-doc-pt
texlive-doc-rs
texlive-doc-ru
texlive-doc-si
texlive-doc-th
texlive-doc-tr
texlive-doc-uk
texlive-doc-vi
texlive-doc-zh
texlive-fonts-extra
texlive-fonts-extra-doc
texlive-fonts-recommended
texlive-fonts-recommended-doc
texlive-generic-extra
texlive-humanities-doc
texlive-lang-african
texlive-lang-arabic
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
我手动删除了与 texlive、texmf 相关的所有文件夹和文件
哎哟。
您可以尝试重新安装这些软件包。你需要强迫事情进展。首先下载软件包:
apt-get -d --reinstall install texlive texlive-common …
你必须列出所有你弄乱的包。然后用 解压它们dpkg
。
dpkg --unpack /var/cache/apt/archives/texlive*
然后尝试将它们全部配置:
dpkg --configure -a
apt-get -f install
很难预测这是否有效。如果不起作用,请删除受影响的软件包,然后重新安装。您必须删除删除前和删除后脚本,因为它们可能会失败。
rm /var/lib/dpkg/texlive*.post*
dpkg -r texlive-common texlive …
apt-get -f install
apt-get install texlive
答案2
我参加聚会有点晚了,但我刚刚遇到了这个问题,这为我解决了:
我尝试卸载其中一个软件包,但这似乎让事情变得更糟。因此,我尝试重新安装,但在原始帖子中被此问题阻止,因此经过多次搜索,我发现这与我因删除其中一个软件包而引起的问题有关。
sudo -s
cd /var/cache/debconf
rm *.dat
apt-get update && apt-get upgrade
之后一切似乎都工作正常并且这个问题得到了解决。
答案3
3个月没有更新系统后,我也遇到了类似的问题,记录如下:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Linuxmint
Description: Linux Mint 20.1
Release: 20.1
Codename: ulyssa
然而,就我而言,我没有手动删除任何内容,而且我不记得做过任何激烈的事情。我尝试时遇到的错误apt upgrade
是:
dpkg: error processing package libglib2.0-0:i386 (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for libglib2.0-0:i386:
libglib2.0-0:i386 depends on libc6 (>= 2.28); however:
Package libc6:i386 is not configured yet.
libglib2.0-0:i386 depends on libmount1 (>= 2.28); however:
Package libmount1:i386 is not configured yet.
libglib2.0-0:i386 depends on zlib1g (>= 1:1.2.2); however:
Package zlib1g:i386 is not configured yet.
无论如何,这些是我为恢复情况所遵循的步骤,到目前为止,它似乎已经奏效:
$ sudo apt remove zlib1g:i386 libmount1:i386 libc6:i386 libglib2.0-0:i386
这生成了一份令人印象深刻的已删除的附加库和应用程序列表,其中包含不少于 264 个条目。我将整个控制台输出复制到名为packages_removed.txt的文件中,然后执行以下操作:
$ grep Removing packages_removed.txt | cut -d' ' -f2 > removed.txt
$ sudo apt install zlib1g:i386 libmount1:i386 libc6:i386 libglib2.0-0:i386
$ sudo apt autoremove --yes
$ xargs -n 1 -a removed.txt sudo apt install --yes
$ sudo apt update && sudo apt upgrade --yes
不出所料,最后一条命令没有导致系统发生进一步的变化。