apt-get quebrado após a atualização da versão (dependências não atendidas)

7

Eu fiz uma atualização para 14.04 - > 15.10 com a ferramenta de atualização de software. Eu entrei e tentei atualizar / atualizar. Eu me deparo com mensagens de erro sobre dependências não atendidas que têm a ver com o TeXlive que estão me impedindo de fazer qualquer operação do apt-get.

Eu recebo essa resposta toda vez que tento fazer algo com o apt-get:

 user@XPS13:~$ sudo apt-get upgrade
    [sudo] password for user: 
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:
 asymptote : Depends: texlive-latex-base but it is not installed
             Depends: texlive-base-bin
 context : Depends: texlive-binaries but it is not installed
           Recommends: fonts-freefont but it is not installable
 dvipng : Depends: texlive-base-bin
 feynmf : Depends: texlive-latex-base but it is not installed
          Depends: texlive-font-utils but it is not installed
          Depends: texlive-extra-utils but it is not installed
 fragmaster : Depends: texlive-base-bin
              Depends: texlive-latex-base but it is not installed
              Depends: texlive-extra-utils but it is not installed
              Depends: texlive-font-utils but it is not installed
 latex-beamer : Depends: texlive-latex-base but it is not installed
 latex-cjk-common : Depends: texlive-latex-base but it is not installed
                    Depends: texlive-font-utils (>= 2007.dfsg.2-1) but it is not installed
 latex-cjk-thai : Depends: texlive-latex-base but it is not installed
                  Depends: texlive-lang-other (>= 2013.20130523-1) but it is not installed
 latexmk : Depends: texlive-latex-base but it is not installed
 luatex : Depends: texlive-binaries (>= 2014) but it is not installed
 musixtex : Depends: texlive-binaries but it is not installed
 pmx : Depends: texlive-latex-base but it is not installed
 prosper : Depends: texlive-latex-base but it is not installed
 tex4ht : Depends: texlive-base-bin
 tex4ht-common : Depends: texlive-base-bin
 texlive-base : Depends: texlive-binaries (>= 2013.20130512) but it is not installed
 texlive-fonts-extra-doc : Depends: texlive-base (>= 2015) but 2013.20140215-1 is installed
                           Depends: tex-common (>= 6) but 4.04 is installed
 texlive-fonts-recommended-doc : Depends: tex-common (>= 6) but 4.04 is installed
                                 Depends: texlive-base (>= 2015) but 2013.20140215-1 is installed
 texlive-full : Depends: texlive-lang-spanish (>= 2015) but it is not installed
                Depends: texlive-music (>= 2015) but 2013.20140215-2 is installed
                Depends: texlive-lang-arabic (>= 2015) but it is not installed
                Depends: texlive-lang-english (>= 2015) but it is not installed
                Depends: texlive-metapost-doc (>= 2015) but 2013.20140215-1 is installed
                Depends: texlive-bibtex-extra (>= 2015) but it is not installed
                Depends: texlive-latex-extra (>= 2015) but 2013.20140215-2 is installed
                Depends: texlive-xetex (>= 2015) but 2013.20140215-1 is installed
                Depends: texlive-latex-base (>= 2015) but it is not installed
                Depends: texlive-lang-french (>= 2015) but it is not installed
                Depends: texlive-science-doc (>= 2015) but 2013.20140215-2 is installed
                Depends: texlive-latex-recommended (>= 2015) but 2013.20140215-1 is installed
                Depends: texlive-lang-polish (>= 2015) but it is not installed
                Depends: texlive-latex-recommended-doc (>= 2015) but 2013.20140215-1 is installed
                Depends: texlive-lang-german (>= 2015) but it is not installed
                Depends: texlive-fonts-recommended (>= 2015) but it is not installed
                Depends: texlive-math-extra (>= 2015) but 2013.20140215-2 is installed
                Depends: texlive-games (>= 2015) but it is not installed
                Depends: texlive-extra-utils (>= 2015) but it is not installed
                Depends: texlive-font-utils (>= 2015) but it is not installed
                Depends: texlive-latex-base-doc (>= 2015) but 2013.20140215-1 is installed
                Depends: texlive-publishers-doc (>= 2015) but 2013.20140215-2 is installed
                Depends: texlive-pstricks (>= 2015) but 2013.20140215-2 is installed
                Depends: texlive-latex-extra-doc (>= 2015) but 2013.20140215-2 is installed
                Depends: texlive-lang-indic (>= 2015) but it is not installed
                Depends: texlive-lang-cyrillic (>= 2015) but it is not installed
                Depends: texlive-lang-czechslovak (>= 2015) but it is not installed
                Depends: texlive-lang-other (>= 2015) but it is not installed
                Depends: texlive-lang-greek (>= 2015) but it is not installed
                Depends: texlive-fonts-extra (>= 2015) but it is not installed
                Depends: texlive-lang-korean (>= 2015) but it is not installed
                Depends: texlive-omega (>= 2015) but 2013.20140215-1 is installed
                Depends: texlive-pictures-doc (>= 2015) but 2013.20140215-1 is installed
                Depends: texlive-lang-african (>= 2015) but it is not installed
                Depends: prerex but it is not installed
                Depends: texlive-lang-portuguese (>= 2015) but it is not installed
                Depends: texlive-formats-extra (>= 2015) but it is not installed
                Depends: texlive-science (>= 2015) but 2013.20140215-2 is installed
                Depends: texlive-pictures (>= 2015) but 2013.20140215-1 is installed
                Depends: texlive-lang-cjk (>= 2015) but it is not installed
                Depends: texlive-humanities (>= 2015) but it is not installed
                Depends: texlive-plain-extra (>= 2015) but 2013.20140215-2 is installed
                Depends: texlive-metapost (>= 2015) but 2013.20140215-1 is installed
                Depends: texlive-lang-italian (>= 2015) but it is not installed
                Depends: texlive-publishers (>= 2015) but 2013.20140215-2 is installed
                Depends: texlive-lang-chinese (>= 2015) but it is not installed
                Depends: texlive-generic-recommended (>= 2015) but it is not installed
                Depends: texlive-generic-extra (>= 2015) but it is not installed
                Depends: texlive-base (>= 2015) but 2013.20140215-1 is installed
                Depends: texlive-lang-japanese (>= 2015) but it is not installed
                Depends: texlive-luatex (>= 2015) but 2013.20140215-1 is installed
                Depends: texlive-binaries (>= 2015.20150524) but it is not installed
                Depends: texlive-pstricks-doc (>= 2015) but 2013.20140215-2 is installed
                Depends: texlive-lang-european (>= 2015) but it is not installed
 texlive-humanities-doc : Depends: texlive-base (>= 2015) but 2013.20140215-1 is installed
                          Depends: tex-common (>= 6) but 4.04 is installed
 texlive-latex-extra : Depends: texlive-binaries (>= 2013.20130512) but it is not installed
 texlive-latex-recommended : Depends: texlive-latex-base (>= 2013.20130512) but it is not installed
                             Depends: texlive-binaries (>= 2013.20130512) but it is not installed
 texlive-luatex : Depends: texlive-binaries (>= 2013.20130512) but it is not installed
 texlive-math-extra : Depends: texlive-latex-base (>= 2013.20130512) but it is not installed
                      Depends: texlive-fonts-recommended (>= 2013.20130512) but it is not installed
                      Depends: texlive-binaries (>= 2013.20130512) but it is not installed
 texlive-metapost : Depends: texlive-binaries (>= 2013.20130512) but it is not installed
 texlive-music : Depends: texlive-binaries (>= 2013.20130512) but it is not installed
                 Depends: texlive-latex-base (>= 2013.20130512) but it is not installed
 texlive-omega : Depends: texlive-binaries (>= 2013.20130512) but it is not installed
                 Depends: texlive-latex-base (>= 2013.20130512) but it is not installed
 texlive-pictures : Depends: texlive-binaries (>= 2013.20130512) but it is not installed
 texlive-pstricks : Depends: texlive-generic-recommended (>= 2013.20130512) but it is not installed
                    Depends: texlive-binaries (>= 2013.20130512) but it is not installed
                    Recommends: texlive-font-utils but it is not installed
                    Recommends: texlive-extra-utils but it is not installed
 texlive-publishers : Depends: texlive-latex-base (>= 2013.20130512) but it is not installed
 texlive-science : Depends: texlive-latex-base (>= 2013.20130512) but it is not installed
                   Depends: texlive-binaries (>= 2013.20130512) but it is not installed
 texlive-xetex : Depends: texlive-latex-base (>= 2013.20130512) but it is not installed
                 Depends: texlive-binaries (>= 2013.20130512) but it is not installed
 tipa : Depends: texlive-latex-base but it is not installed
        Depends: texlive-base-bin
E: Unmet dependencies. Try using -f.
user@XPS13:~$ 

executando o apt-get -f install baixou os pacotes perdidos, mas retornou um erro, e o problema persistiu:

Fetched 1,526 MB in 10min 34s (2,404 kB/s)                                     
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 654588 files and directories currently installed.)
Preparing to unpack .../texlive-latex-base-doc_2015.20150625-1ubuntu1_all.deb ...
Unpacking texlive-latex-base-doc (2015.20150625-1ubuntu1) over (2013.20140215-1) ...
dpkg: error processing archive /var/cache/apt/archives/texlive-latex-base-doc_2015.20150625-1ubuntu1_all.deb (--unpack):
 trying to overwrite '/usr/share/doc/texlive-doc/latex/url/url.tex.gz', which is also in package texlive-latex-recommended-doc 2013.20140215-1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/texlive-latex-base-doc_2015.20150625-1ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Encontrei um tópico em outro fórum em que alguém teve o mesmo problema após uma atualização de versão, mas não há solução.

link

Fazer a limpeza do apt-get dos pacotes texlive apenas retorna o mesmo erro sobre as dependências ausentes.

Outro tópico com um problema idêntico:

dpkg-deb : erro: pasta de subprocesso foi eliminada por sinal (Broken pipe) depois de instalar o Ubuntu 15.10

Atualização:

Eu removi manualmente cada um dos pacotes ofensivos um por um usando dpkg --purge --force-all. O apt-get funciona agora tanto quanto eu posso dizer. Espero que, quando eu reinstalar o texlive, tudo esteja bem.

    
por mysonbort 11.03.2016 / 08:57

3 respostas

11

Eu consertei o problema de maneira um pouco mais simples, apenas

sudo dpkg --force-all --purge texlive-latex-base-doc

Depois disso, consegui concluir a atualização com êxito.

    
por vehka 13.05.2016 / 07:53
3

Eu tive um problema semelhante. No meu caso eu tive que correr

sudo dpkg --purge --force-all texlive-xetex
sudo dpkg --purge --force-all texlive-math-extra

como mencionado por @mysonbort. Estes dois pacotes onde de alguma forma criam conflitos. Depois de removê-los um

sudo apt-get -f install

funcionou sem problemas.

    
por Hashimoto 15.06.2017 / 08:03
1

Eu tive o mesmo problema atualizando de 14,04 para 15,10. Seguindo a linha de pensamento do OP, consegui resolver isso executando:

sudo apt-get purge texlive* context dvipng feynmf fragmasater latex* luatex musixtex pmx propser tex4ht* tipa

mais algumas outras dependências que surgiriam quando eu fosse iterado no comando apt-get purge. Depois de eliminar todas as dependências relacionadas ao tex, eu consegui executar o dist-upgrade sem nenhum erro e depois instalar o texlive-full novamente. Não é bonita, mas sim eficaz.

    
por Alex 07.04.2016 / 02:01