Não é possível remover o TeXLive 2016 do Ubuntu 14.04

1

Eu instalei o TeXLive 2016 via PPA e usei os seguintes comandos -

sudo add-apt-repository ppa:jonathonf/texlive
sudo apt update
sudo apt install texlive-full

Devido a algumas razões, tentei removê-lo, mas não consegui. Mais tarde, eu instalei o TeXLive a partir do site oficial seguindo este link Instalando o TeX Live pela Internet . Eu usei o seguinte comando -

ravi@home:~/Downloads/install-tl-20180527$ sudo ./install-tl

Agora, posso usar o TeXLive 2018 no Ubuntu 14.04 LTS usando Texmaker 4.1 (compiled with Qt 4.8.4 and Poppler 0.24.3) . No entanto, meu Ubuntu mostra o seguinte erro -

Parece que o TeXLive2016 é o culpado. Eu usei sudo apt-get purge texlive* mas não funcionou. Por favor, veja abaixo -

The following packages have unmet dependencies:
 asymptote : Depends: texlive-latex-base but it is not going to be installed
             Depends: texlive-base-bin
             Depends: texlive-pstricks but it is not going to be installed
 dvipng : Depends: texlive-base-bin
 feynmf : Depends: texlive-latex-base but it is not going to be installed
          Depends: texlive-font-utils but it is not going to be installed
          Depends: texlive-extra-utils but it is not going to be installed
 fragmaster : Depends: texlive-base-bin
              Depends: texlive-latex-base but it is not going to be installed
              Depends: texlive-latex-recommended but it is not going to be installed
              Depends: texlive-extra-utils but it is not going to be installed
              Depends: texlive-font-utils but it is not going to be installed
 latex-beamer : Depends: texlive-latex-base but it is not going to be installed
 latex-xcolor : Depends: texlive-latex-recommended but it is not going to be installed
 latexmk : Depends: texlive-latex-base but it is not going to be installed
 pgf : Depends: texlive-latex-recommended but it is not going to be installed
 prosper : Depends: texlive-latex-base but it is not going to be installed
           Depends: texlive-pstricks but it is not going to be installed
           Depends: texlive-latex-recommended but it is not going to be installed
 purifyeps : Depends: texlive-metapost but it is not going to be installed
 tex4ht-common : Depends: texlive-base-bin
                 Recommends: tex4ht but it is not going to be installed
 tipa : Depends: texlive-latex-base but it is not going to be installed
        Depends: texlive-base-bin
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Também tentei sudo apt-get autoremove e sudo apt-get -f install . Por favor, veja abaixo -

ravi@home:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  luatex texlive-binaries texlive-extra-utils texlive-font-utils
  texlive-fonts-recommended texlive-fonts-recommended-doc
  texlive-generic-recommended texlive-latex-base
The following packages will be REMOVED:
  context
The following NEW packages will be installed:
  luatex texlive-binaries texlive-extra-utils texlive-font-utils
  texlive-fonts-recommended texlive-fonts-recommended-doc
  texlive-generic-recommended texlive-latex-base
0 upgraded, 8 newly installed, 1 to remove and 264 not upgraded.
1 not fully installed or removed.
Need to get 0 B/30.2 MB of archives.
After this operation, 9,608 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 295461 files and directories currently installed.)
Removing context (2016.05.17.20160523-1~ubuntu14.04.1york0) ...
unknown option: format
dpkg: error processing package context (--remove):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 context
E: Sub-process /usr/bin/dpkg returned an error code (1)

Qualquer solução para corrigir isso, por favor?

    
por Ravi Joshi 27.05.2018 / 14:25

1 resposta

1

Você deve remover o PPA de maneira correta usando o comando ppa-purge . Ele fará o downgrade dos pacotes para as versões do repositório oficial e somente depois disso será removido o arquivo correspondente de /etc/apt/sources.list.d / .

Os comandos que você precisa executar estão abaixo:

#sudo add-apt-repository ppa:jonathonf/texlive # add you PPA again if removed
sudo apt-get install ppa-purge # install ppa-purge
sudo ppa-purge ppa:jonathonf/texlive # downgrade packages

Em seguida, instale o TeXLive 2018 com:

cd ~/Downloads/install-tl-20180527
sudo ./install-tl
    
por N0rbert 27.05.2018 / 19:50