尽管我已经从 DVD 安装了 Texlive,但 apt-get 每次都建议安装它,我该如何避免这种情况?

尽管我已经从 DVD 安装了 Texlive,但 apt-get 每次都建议安装它,我该如何避免这种情况?

TexLive 2014在 Ubuntu 14.04.1 64 位 LTS 上安装了它,现在我想安装其他软件包以及frontendLatex 软件包,即纺织工作室问题是,当我尝试仅安装 TexStudio 时,输出如下,我犹豫是否继续,因为它可能会弄乱我的 TexLive 安装:

$ sudo apt-get install texstudio
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  fonts-lmodern latex-beamer latex-xcolor libptexenc1 lmodern luatex pgf
  prosper ps2eps tex-common texlive-base texlive-binaries texlive-extra-utils
  texlive-font-utils texlive-generic-recommended texlive-latex-base
  texlive-latex-base-doc texlive-latex-recommended
  texlive-latex-recommended-doc texlive-luatex texlive-pstricks
  texlive-pstricks-doc
Suggested packages:
  chktex fragmaster xindy latexdiff lacheck latexmk dvidvi purifyeps dvipng
  psutils texlive-fonts-recommended texlive-latex-extra
The following NEW packages will be installed:
  fonts-lmodern latex-beamer latex-xcolor libptexenc1 lmodern luatex pgf
  prosper ps2eps tex-common texlive-base texlive-binaries texlive-extra-utils
  texlive-font-utils texlive-generic-recommended texlive-latex-base
  texlive-latex-base-doc texlive-latex-recommended
  texlive-latex-recommended-doc texlive-luatex texlive-pstricks
  texlive-pstricks-doc texstudio
0 upgraded, 23 newly installed, 0 to remove and 0 not upgraded.
Need to get 264 MB of archives.
After this operation, 430 MB of additional disk space will be used.
Do you want to continue? [Y/n] 

我能做些什么呢?这个问题甚至在使用其他命令时也存在,例如尽可能完整地构建 VIM 安装所需的依赖项。输出如下:

$ sudo apt-get build-dep vim-gnome
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Picking 'vim' as source package instead of 'vim-gnome'
Note, selecting 'libgpm-dev' instead of 'libgpmg1-dev'
The following NEW packages will be installed:
  docbook-dsssl docbook-utils jadetex libacl1-dev libattr1-dev libgpm-dev
  liblua5.2-dev libosp5 libostyle1c2 libperl-dev libptexenc1 libreadline-dev
  libreadline6-dev libsgmls-perl libsp1c2 libxaw7-dev libxmu-dev
  libxmu-headers lua5.2 luatex lynx lynx-cur openjade sgmlspl sp tcl-dev
  tcl8.6-dev tex-common texlive-base texlive-binaries
  texlive-fonts-recommended texlive-generic-recommended texlive-latex-base
  texlive-latex-recommended tipa
0 upgraded, 35 newly installed, 0 to remove and 0 not upgraded.
Need to get 51,4 MB of archives.
After this operation, 166 MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.

我可以做些什么来让它apt-get识别出已安装了新版本的软件包?

答案1

对于任何可能感兴趣的人,我在这里发布了解决方案,并归功于网站TeX Live 和 Debian/Ubuntu我从中学到解决方案。

将 vanilla TeX Live 与 Debian 集成

要安装 vanilla TeX Live 以替换 Debian 软件包,请执行以下步骤:

Install vanilla TeX Live as root, system-wide.
Ensure that the only Debian TeX Live packages installed are tex-common, texinfo, and perhaps lmodern
Add TeX Live's bin directory to ENV_PATH in /etc/login.defs.
Tell APT about your TeX Live installation by building a dummy package using equivs:
$ aptitude install equivs # as root
mkdir /tmp/tl-equivs && cd /tmp/tl-equivs
equivs-control texlive-local
# edit texlive-local (see below)
$ equivs-build texlive-local
$ sudo dpkg -i texlive-local_2014-1_all.deb

该网站建议对texlive-local文件进行如下编辑,以便最新安装2014年纺织与纺织品博览会

Section: misc
Priority: optional
Standards-Version: 3.9.4

Package: texlive-local
Version: 2014-1
Maintainer: you <[email protected]>
Provides: chktex, biblatex, biblatex-dw, cm-super, cm-super-minimal, context, 
 dvidvi, dvipng, feynmf, fragmaster, jadetex, lacheck, latex-beamer, 
 latex-cjk-all, latex-cjk-chinese, latex-cjk-chinese-arphic-bkai00mp, 
 latex-cjk-chinese-arphic-bsmi00lp, latex-cjk-chinese-arphic-gbsn00lp, 
 latex-cjk-chinese-arphic-gkai00mp, latex-cjk-common, latex-cjk-japanese, 
 latex-cjk-japanese-wadalab, latex-cjk-korean, latex-cjk-thai, latexdiff, 
 latexmk, latex-sanskrit, latex-xcolor, lcdf-typetools, lmodern, luatex, 
 musixtex, passivetex, pgf, preview-latex-style, prosper, ps2eps, psutils, 
 purifyeps, t1utils, tex4ht, tex4ht-common, tex-gyre, texlive, texlive-base, 
 texlive-bibtex-extra, texlive-binaries, texlive-common, texlive-extra-utils,
 texlive-fonts-extra, texlive-fonts-extra-doc, texlive-fonts-recommended,
 texlive-fonts-recommended-doc, texlive-font-utils, texlive-formats-extra,
 texlive-games, texlive-generic-extra, texlive-generic-recommended,
 texlive-humanities, texlive-humanities-doc, texlive-lang-african,
 texlive-lang-all, texlive-lang-arabic, texlive-lang-cjk, texlive-lang-cyrillic,
 texlive-lang-czechslovak, texlive-lang-english, texlive-lang-european,
 texlive-lang-japanese, texlive-lang-chinese, texlive-lang-korean,
 texlive-lang-french, texlive-lang-german, texlive-lang-greek, 
 texlive-lang-indic, texlive-lang-italian, texlive-lang-other, 
 texlive-lang-polish, texlive-lang-portuguese, texlive-lang-spanish,
 texlive-latex-base, texlive-latex-base-doc, texlive-latex-extra, 
 texlive-latex-extra-doc, texlive-latex-recommended, 
 texlive-latex-recommended-doc, texlive-luatex, texlive-math-extra, 
 texlive-metapost, texlive-metapost-doc, texlive-music,
 texlive-omega, texlive-pictures, texlive-pictures-doc, texlive-plain-extra,
 texlive-pstricks, texlive-pstricks-doc, texlive-publishers,
 texlive-publishers-doc, texlive-science, texlive-science-doc, texlive-xetex,
 thailatex, tipa, tipa-doc, xindy, xindy-rules, xmltex 
Architecture: all
Description: My local installation of TeX Live 2014.
 A full "vanilla" TeX Live 2014
 http://tug.org/texlive/debian#vanilla

安装此软件包后,我只能安装 TeXStudio,而无需安装texlive它所依赖的所有必需软件包。

答案2

不幸的是,一旦你离开软件包系统,你就会看到类似的东西。你需要手动管理依赖项。我在这里看到两个选项。一个是更干净但更困难的,是通过源代码安装其他软件包。第二个选项是尝试下载软件包.deb并使用低级dpkg -i命令安装它,也许会强制安装而不需要依赖项。这里有一个非常类似的问题: 如何在不安装某些依赖项的情况下安装包?

相关内容