无法在 Ubuntu 18.04 中安装 TeX 包

无法在 Ubuntu 18.04 中安装 TeX 包

我正在使用 Pop!_os 18.04 LTS(基于 Ubuntu 18.04),并尝试运行大量使用 LaTeX 的程序。我正在使用 MiKTeX 包管理器安装该程序所需的 TeX 包。我在尝试安装此包时遇到困难dsfont。根据答案是,安装 texlive-fonts-extra 应该可以解决这个问题。我尝试使用sudo apt-get install texlive-fonts-extra,安装正确,但错误仍然存​​在。

同一线程还解释了dstrokeMiKTeX 中 的分发包名称dsfont。但是,我在 MiKTeX 中找不到名为 的包dstroke。搜索返回一个空列表。 建议doublestroke在 TeX live 中使用名为 的包来获取dstroke。所以我尝试在 MiKTeX 中搜索它以防万一,我能够找到它并安装它。但这也没有修复错误。我找不到任何其他安装它的指针。请帮忙。

OS: Pop!_OS 18.04 (Similar to Ubuntu 18.04)
Python: 3.7.1
MiKTeX: MiKTeX Package Manager 2.9.7043 (MiKTeX 2.9.7050)

TeX 错误日志 -

This is pdfTeX, Version 3.14159265-2.6-1.40.20 (MiKTeX 2.9.7050) (preloaded format=latex 2019.7.21)  21 JUL 2019 22:41
entering extended mode
**./media/Tex/f4fdd6aabf2e43a0.tex
(media/Tex/f4fdd6aabf2e43a0.tex
LaTeX2e <2018-12-01>
(/home/ananda/.miktex/texmfs/install/tex/latex/standalone/standalone.cls
Document Class: standalone 2018/03/26 v1.3a Class to compile TeX sub-files stan
dalone
(/home/ananda/.miktex/texmfs/install/tex/latex/xkeyval/xkeyval.sty
Package: xkeyval 2014/12/03 v2.7a package option processing (HA)
(/home/ananda/.miktex/texmfs/install/tex/generic/xkeyval/xkeyval.tex (/home/ana
nda/.miktex/texmfs/install/tex/generic/xkeyval/xkvutils.tex
\XKV@toks=\toks14
\XKV@tempa@toks=\toks15
(/home/ananda/.miktex/texmfs/install/tex/generic/xkeyval/keyval.tex))
\XKV@depth=\count80
File: xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
))
\sa@internal=\count81
\c@sapage=\count82
(/home/ananda/.miktex/texmfs/install/tex/latex/standalone/standalone.cfg
File: standalone.cfg 2018/03/26 v1.3a Default configuration file for 'standalon
e' class
) (/home/ananda/.miktex/texmfs/install/tex/latex/base/article.cls
Document Class: article 2018/09/03 v1.4i Standard LaTeX document class
(/home/ananda/.miktex/texmfs/install/tex/latex/base/size10.clo
File: size10.clo 2018/09/03 v1.4i Standard LaTeX file (size option)
)
\c@part=\count83
\c@section=\count84
\c@subsection=\count85
\c@subsubsection=\count86
\c@paragraph=\count87
\c@subparagraph=\count88
\c@figure=\count89
\c@table=\count90
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (/home/ananda/.miktex/texmfs/install/tex/latex/preview/preview.sty
Package: preview 2017/04/24 11.91 (AUCTeX/preview-latex)
(/home/ananda/.miktex/texmfs/install/tex/latex/preview/prtightpage.def
\PreviewBorder=\dimen103
)
\pr@snippet=\count91
\pr@box=\box27
\pr@output=\toks16
)) (/home/ananda/.miktex/texmfs/install/tex/generic/babel/babel.sty
Package: babel 2019/07/19 3.33 The Babel package
(/home/ananda/.miktex/texmfs/install/tex/generic/babel/switch.def
File: switch.def 2019/07/19 3.33 Babel switching mechanism
) (/home/ananda/.miktex/texmfs/install/tex/latex/babel-english/english.ldf
Language: english 2017/06/06 v3.3r English support from the babel system
(/home/ananda/.miktex/texmfs/install/tex/generic/babel/babel.def
File: babel.def 2019/07/19 3.33 Babel common definitions
\babel@savecnt=\count92
\U@D=\dimen104
(/home/ananda/.miktex/texmfs/install/tex/generic/babel/txtbabel.def)
\bbl@dirlevel=\count93
)
\l@british = a dialect from \language\l@english 
\l@UKenglish = a dialect from \language\l@english 
\l@american = a dialect from \language\l@english 
\l@canadian = a dialect from \language\l@american 
\l@australian = a dialect from \language\l@british 
\l@newzealand = a dialect from \language\l@british 
)) (/home/ananda/.miktex/texmfs/install/tex/latex/amsmath/amsmath.sty
Package: amsmath 2018/12/01 v2.17b AMS math features
\@mathmargin=\skip43
For additional information on amsmath, use the `?' option.
(/home/ananda/.miktex/texmfs/install/tex/latex/amsmath/amstext.sty
Package: amstext 2000/06/29 v2.01 AMS text
(/home/ananda/.miktex/texmfs/install/tex/latex/amsmath/amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks17
\ex@=\dimen105
)) (/home/ananda/.miktex/texmfs/install/tex/latex/amsmath/amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
\pmbraise@=\dimen106
) (/home/ananda/.miktex/texmfs/install/tex/latex/amsmath/amsopn.sty
Package: amsopn 2016/03/08 v2.02 operator names
)
\inf@bad=\count94
LaTeX Info: Redefining \frac on input line 223.
\uproot@=\count95
\leftroot@=\count96
LaTeX Info: Redefining \overline on input line 385.
\classnum@=\count97
\DOTSCASE@=\count98
LaTeX Info: Redefining \ldots on input line 482.
LaTeX Info: Redefining \dots on input line 485.
LaTeX Info: Redefining \cdots on input line 606.
\Mathstrutbox@=\box28
\strutbox@=\box29
\big@size=\dimen107
LaTeX Font Info:    Redeclaring font encoding OML on input line 729.
LaTeX Font Info:    Redeclaring font encoding OMS on input line 730.
\macc@depth=\count99
\c@MaxMatrixCols=\count100
\dotsspace@=\muskip10
\c@parentequation=\count101
\dspbrk@lvl=\count102
\tag@help=\toks18
\row@=\count103
\column@=\count104
\maxfields@=\count105
\andhelp@=\toks19
\eqnshift@=\dimen108
\alignsep@=\dimen109
\tagshift@=\dimen110
\tagwidth@=\dimen111
\totwidth@=\dimen112
\lineht@=\dimen113
\@envbody=\toks20
\multlinegap=\skip44
\multlinetaggap=\skip45
\mathdisplay@stack=\toks21
LaTeX Info: Redefining \[ on input line 2844.
LaTeX Info: Redefining \] on input line 2845.
) (/home/ananda/.miktex/texmfs/install/tex/latex/amsfonts/amssymb.sty
Package: amssymb 2013/01/14 v3.01 AMS font symbols
(/home/ananda/.miktex/texmfs/install/tex/latex/amsfonts/amsfonts.sty
Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info:    Overwriting math alphabet `\mathfrak' in version `bold'
(Font)                  U/euf/m/n --> U/euf/b/n on input line 106.
))

! LaTeX Error: File `dsfont.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Emergency stop.
<read *> 

l.7 \usepackage
               {setspace}

Here is how much of TeX's memory you used:
 2175 strings out of 494858
 28788 string characters out of 3178198
 96215 words of memory out of 3000000
 5854 multiletter control sequences out of 15000+200000
 3640 words of font info for 14 fonts, out of 3000000 for 9000
 0 hyphenation exceptions out of 8191
 34i,0n,56p,244b,36s stack positions out of 5000i,500n,10000p,200000b,50000s

No pages of output.

答案1

作为 MiKTeX 包,它被称为双程。此外,您可能需要启动updmap来刷新 type 1 字体数据库:

在此处输入图片描述

答案2

建议不要从 Ubuntu 存储库安装 TeXLive。从以下位置获取最新的 TexLive 2019CTAN 存储库并安装它。首先删除以前安装的软件包和 MikTex。

‫sudo apt-get remove texlive-*

转到您下载的文件夹,然后运行以下命令:

sudo perl install-tl --gui=perltk

相关内容