Anki Forums

Textgreek package does not load correctly with texlive over ubuntu

Good morning,

I’ve been using ankidesktop almost for a year now on Windows 10. Right now, I’m trying to move my decks to Ubuntu 20.04.
I’ve ran the following steps:

tar xjf Downloads/anki-2.1.40-linux.tar.bz2 cd anki-2.1.40-linux
sudo ./install.sh sudo apt-get install libxcb-xinerama0
sudo apt-get install texlive dvipng sudo apt-get install texlive-pictures
sudo apt-get install texlive-latex-extra sudo apt-get install texlive-lang-greek

I download my cards using my ankiweb account. They all load correctly. The current header for all of them is

\documentclass[12pt]{article}
\special{papersize=3in,5in}
\usepackage[all]{xy}
\usepackage[utf8x]{inputenc}
\usepackage{amssymb,amsmath, amsfonts,mathtools}
\usepackage{textgreek}
\usepackage{booktabs}
\usepackage{color}
\usepackage{musicography}
\pagestyle{empty}
\setlength{\parindent}{0in}
\definecolor{blue}{RGB}{0,130,255}
\definecolor{green}{RGB}{34, 139, 34}
\begin{document}
\pagecolor{black}
\color{white}

However, when in one of my cards, I modify from:

[latex]
This result is called the \textcolor{magenta}{Fundamental Theorem of Calculus}.
[/latex]

to

[latex]
This result is called the \textcolor{magenta}{Fundamental Theorem of Calculus}
[/latex]

and click the preview button, I get the following error:

This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian) (preloaded format=latex)
restricted \write18 enabled.
entering extended mode
(./tmp.tex
LaTeX2e <2020-02-02> patch level 2
L3 programming layer <2020-02-14>
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size12.clo))
(/usr/share/texlive/texmf-dist/tex/generic/xypic/xy.sty
(/usr/share/texlive/texmf-dist/tex/generic/xypic/xy.tex Bootstrap’ing:
catcodes, docmode, (/usr/share/texlive/texmf-dist/tex/generic/xypic/xyrecat.tex
) (/usr/share/texlive/texmf-dist/tex/generic/xypic/xyidioms.tex)

Xy-pic version 3.8.9 <2013/10/06>
Copyright © 1991-2013 by Kristoffer H. Rose krisrose@tug.org and others
Xy-pic is free software: see the User’s Guide for details.

Loading kernel: messages; fonts; allocations: state, direction,
utility macros; pictures: \xy, positions, objects, decorations;
kernel objects: directionals, circles, text; options; algorithms: directions,
edges, connections; Xy-pic loaded)
(/usr/share/texlive/texmf-dist/tex/generic/iftex/ifpdf.sty
(/usr/share/texlive/texmf-dist/tex/generic/iftex/iftex.sty))
(/usr/share/texlive/texmf-dist/tex/generic/xypic/xyall.tex
Xy-pic option: All features v.3.8
(/usr/share/texlive/texmf-dist/tex/generic/xypic/xycurve.tex
Xy-pic option: Curve and Spline extension v.3.12 curve, circles, loaded)
(/usr/share/texlive/texmf-dist/tex/generic/xypic/xyframe.tex
Xy-pic option: Frame and Bracket extension v.3.14 loaded)
(/usr/share/texlive/texmf-dist/tex/generic/xypic/xycmtip.tex
Xy-pic option: Computer Modern tip extension v.3.7
(/usr/share/texlive/texmf-dist/tex/generic/xypic/xytips.tex
Xy-pic option: More Tips extension v.3.11 loaded) loaded)
(/usr/share/texlive/texmf-dist/tex/generic/xypic/xyline.tex
Xy-pic option: Line styles extension v.3.10 loaded)
(/usr/share/texlive/texmf-dist/tex/generic/xypic/xyrotate.tex
Xy-pic option: Rotate and Scale extension v.3.8 loaded)
(/usr/share/texlive/texmf-dist/tex/generic/xypic/xycolor.tex
Xy-pic option: Colour extension v.3.11 loaded)
(/usr/share/texlive/texmf-dist/tex/generic/xypic/xymatrix.tex
Xy-pic option: Matrix feature v.3.14 loaded)
(/usr/share/texlive/texmf-dist/tex/generic/xypic/xyarrow.tex
Xy-pic option: Arrow and Path feature v.3.9 path, \ar, loaded)
(/usr/share/texlive/texmf-dist/tex/generic/xypic/xygraph.tex
Xy-pic option: Graph feature v.3.11 loaded) loaded))
(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/ucs/utf8x.def))
(/usr/share/texlive/texmf-dist/tex/latex/ucs/ucs.sty
(/usr/share/texlive/texmf-dist/tex/latex/ucs/data/uni-global.def))
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?’ option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/share/texlive/texmf-dist/tex/latex/mathtools/mathtools.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/latex/tools/calc.sty)
(/usr/share/texlive/texmf-dist/tex/latex/mathtools/mhsetup.sty))

! LaTeX Error: File `textgreek.sty’ not found.

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

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

l.7 \usepackage
{booktabs}^^M
No pages of output.
Transcript written on tmp.log.

From what I researched, textgreek.sty should be installed with the texlive-lang-greek package. I’m also aware that there was an issue with this Debian package a couple of years ago, but to my knowledge, that issue was solved years ago.
Any ideas on what I might be missing?

Thanks!

The commands got all messed up, the way they should be:
tar xjf Downloads/anki-2.1.40-linux.tar.bz2
cd anki-2.1.40-linux
sudo ./install.sh
sudo apt-get install libxcb-xinerama0
sudo apt-get install texlive dvipng
sudo apt-get install texlive-pictures
sudo apt-get install texlive-latex-extra
sudo apt-get install texlive-lang-greek