Dependências quebradas com texlive

2

Eu tinha uma versão de trabalho do texlive em 16.04 mas depois de atualizar de 16.04 para 16.10 e depois para 17.04 (e talvez outras coisas?) agora está quebrado. Eu purgou todos os meus pacotes texlive com o apt-get: sudo apt-get purge tex* Eu também purgou todo o meu texlive no dpkg sudo dpkg --purge texlive para todos os pacotes texlive e relacionados. Todas as seguintes correções sem erros:

sudo apt-get install -f
sudo apt-get update
sudo apt-get upgrade
sudo dpkg --configure -a 

Mas quando eu tento instalar o texlive eu recebo:

sudo apt-get install texlive  
Reading package lists... Done  
Building dependency tree   
Reading state information... Done  
Some packages could not be installed.  
This may mean that you have requested an impossible situation or if you are  
using the unstable distribution that some required packages have not yet been created    
or been moved out of Incoming.  
The following information may help to resolve the situation:
The following packages have unmet dependencies:
 texlive : Depends: texlive-latex-recommended (>= 2016) but it is not going to be installed  
           Depends: texlive-latex-base (>= 2016) but it is not going to be installed  
           Depends: texlive-fonts-recommended (>= 2016) but it is not going to be installed  
E: Unable to correct problems, you have held broken packages.  
    
por Oz Amram 20.07.2017 / 04:32

2 respostas

2

OK depois de tentar mais algumas coisas por um tempo eu instalei o aptitude que foi capaz de propor uma solução (depois de tentar o primeiro e falhar) que funcionou, fazendo o downgrade de libpathsea6 . Detalhes:

oz@oz-linux:~$ sudo aptitude install texlive-latex-base
The following NEW packages will be installed:
  fonts-lmodern{a} libpotrace0{a} libptexenc1{a} libsynctex1{a} libtexlua52{a} libtexluajit2{a} libzzip-0-13{a} lmodern{a} 
  texlive-base{a} texlive-binaries{ab} texlive-latex-base texlive-latex-base-doc{a} 
0 packages upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 83.4 MB of archives. After unpacking 188 MB will be used.
The following packages have unmet dependencies:
 texlive-binaries : Depends: libkpathsea6 (< 2016.20160513.41080.dfsg-1.1~) but 2017.20170613.44585-1~16.04.york0 is installed
The following actions will resolve these dependencies:

Keep the following packages at their current version:
1)     texlive-base [Not Installed]                       
2)     texlive-binaries [Not Installed]                   
3)     texlive-latex-base [Not Installed]                 
4)     texlive-latex-base-doc [Not Installed]             


Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:

 Downgrade the following packages:                                                             
 1)     libkpathsea6 [2017.20170613.44585-1~16.04.york0 (now) -> 2016.20160513.41080.dfsg-1 (zesty)]
    
por Oz Amram 20.07.2017 / 20:06
1

Eu tive um problema semelhante, e o que fiz foi: sudo apt-get purge texlive e, em seguida, executar sudo apt-get autoremove e a sequência de comandos de instalação de correção que você mencionou e, em seguida, o comando:

sudo apt-get install texlive-full

    
por Harsh Sinha 20.07.2017 / 05:41