texlive-plain-generic quebrou meu processo de atualização do Ubuntu 16.04

0

Quando atualizo e atualizo meu Ubuntu 16.04.3 recentemente, recebi as seguintes mensagens de erro:

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)

  • Portanto, tentei unisntall texlive-full e dependências usando completamente sudo dpkg --purge * e, em seguida, reinstale texlive-full com o conhecido PPA de terceiros ( sudo add-apt-repository ppa:jonathonf/texlive ), o mesmo erro ocorre posteriormente. Eu também tentei esta maneira ligada para desinstalar o texlive.

  • sudo apt-get install -f não corrigiu nada.

  • Eu também tentei sudo dpkg --force-all --purge texlive-plain-generic seguindo este link , mas sem sorte.

Com este erro de dependências não atendidas, não consigo instalar nenhuma atualização ou novo pacote. O que você acha?

    
por Xiaodong Qi 06.09.2017 / 18:26

1 resposta

0

Minha solução atual, que parece estar funcionando por enquanto, é a seguinte.

  1. Limpar o PPA de terceiros para o texlive sudo apt install ppa-purge && sudo ppa-purge ppa:jonathonf/texlive sudo update

  2. Purgue todos os pacotes texlive como eu fiz antes. Além disso, purgar um pacote fácil de confundir por sudo apt purge libkpathsea6 .

  3. Reinstale o texlive desde o início, sudo apt install texlive-full .

por Xiaodong Qi 06.09.2017 / 22:19