首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法从Ubuntu14.04中删除TeXLive 2016

无法从Ubuntu14.04中删除TeXLive 2016
EN

Ask Ubuntu用户
提问于 2018-05-27 12:25:12
回答 1查看 208关注 0票数 1

我通过PPA安装了TeXLive 2016,并使用了以下命令-

代码语言:javascript
复制
sudo add-apt-repository ppa:jonathonf/texlive
sudo apt update
sudo apt install texlive-full

由于一些原因,我试图删除它,但我做不到。后来,我安装了TeXLive从官方网站通过这个链接在互联网上安装TeX现场直播。我用了以下命令-

代码语言:javascript
复制
ravi@home:~/Downloads/install-tl-20180527$ sudo ./install-tl

现在,我能够使用TeXLive 2018在Ubuntu14.04LTS上使用Texmaker 4.1 (compiled with Qt 4.8.4 and Poppler 0.24.3)。但是,我的Ubuntu显示了以下错误-

看来TeXLive2016是罪魁祸首。我用的是sudo apt-get purge texlive*,但没有用。请见下文-

代码语言:javascript
复制
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).

还尝试了sudo apt-get autoremovesudo apt-get -f install。拜托,见下文-

代码语言:javascript
复制
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)

有什么办法可以解决吗?

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2018-05-27 17:50:17

您应该使用ppa-purge命令以正确的方式删除PPA。它将将包降级为官方存储库中的版本,并且只有在此之后才会删除/etc/apt/ remove es.list.d/中的相应文件。

您需要运行的命令如下:

代码语言:javascript
复制
#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

然后用以下方式安装TeXLive 2018年:

代码语言:javascript
复制
cd ~/Downloads/install-tl-20180527
sudo ./install-tl
票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1040868

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档