texlive-plain-generic 破坏了我的 Ubuntu 16.04 升级过程

texlive-plain-generic 破坏了我的 Ubuntu 16.04 升级过程

当我最近更新和升级我的 Ubuntu 16.04.3 时,我收到以下错误消息:

qxd@NapaValley:~/SoftwareRepo/simnanophotonics$ sudo apt upgrade Reading package lists... Done Building dependency tree
Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: texlive-formats-extra : Depends: texlive-plain-generic (>= 2017.20170628) but it is not installed texlive-full : Depends: texlive-plain-generic (>= 2017.20170628) but it is not installed texlive-generic-recommended : Depends: texlive-plain-generic (>= 2017.20170628) but it is not installed texlive-lang-arabic : Depends: texlive-plain-generic (>= 2017.20170628) but it is not installed texlive-pstricks : Depends: texlive-plain-generic (>= 2017.20170628) but it is not installed E: Unmet dependencies. Try using -f. qxd@NapaValley:~/SoftwareRepo/simnanophotonics$ sudo apt-get install -f Reading package lists... Done Building dependency tree
Reading state information... Done Correcting dependencies... Done The following additional packages will be installed: texlive-plain-generic The following NEW packages will be installed: texlive-plain-generic 0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded. 151 not fully installed or removed. Need to get 0 B/23.5 MB of archives. After this operation, 53.6 MB of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 414323 files and directories currently installed.) Preparing to unpack .../texlive-plain-generic_2017.20170818-1~16.04.york0_all.deb ... Unpacking texlive-plain-generic (2017.20170818-1~16.04.york0) ... dpkg: error processing archive /var/cache/apt/archives/texlive-plain-generic_2017.20170818-1~16.04.york0_all.deb (--unpack): trying to overwrite '/usr/share/texlive/texmf-dist/tex4ht/bin/tex4ht.jar', which is also in package texlive-binaries 2017.20170613.44585-1~16.04.york0 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Processing triggers for install-info (6.1.0.dfsg.1-5) ... Errors were encountered while processing: /var/cache/apt/archives/texlive-plain-generic_2017.20170818-1~16.04.york0_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

  • 因此,我尝试texlive-full使用卸载程序完全卸载依赖项sudo dpkg --purge *,然后texlive-full使用知名的第三方 PPA ( sudo add-apt-repository ppa:jonathonf/texlive) 重新安装,但之后仍出现相同的错误。我还尝试过这种链接方式卸载 texlive。

  • sudo apt-get install -f没有修复任何问题。

  • 我也尝试sudo dpkg --force-all --purge texlive-plain-generic此链接,但没有运气。

由于此未满足依赖项错误,我无法安装任何升级或新软件包。您觉得如何?

答案1

我当前的解决方案(目前看来有效)如下。

  1. 清除 texlive 的第三方 PPA sudo apt install ppa-purge && sudo ppa-purge ppa:jonathonf/texlive sudo update

  2. 像我之前一样清除所有 texlive 包。另外,清除一个容易弄乱的包sudo apt purge libkpathsea6

  3. 从头开始重新安装 texlive sudo apt install texlive-full

相关内容