I run Ubuntu 16.04. I want to run update-tlmgr-latest.sh on my machine (cf. The underlying problem farther down for details about that), but before I do this, https://www.tug.org/texlive/tlmgr.html says under "Disaster recovery" that I should
be sure your PATH is set to use the current TeX Live bin directory; the recovery archives use
kpsewhichfrom PATH to figure out where to unpack themselves.
The problem, in short: I am definitely not "sure" about anything related to any of this, since my ubuntu capabilities are strictly limited to a minimum.
I tried the following:
sudo apt-get purge texlive
produces
Package 'texlive' is not installed, so not removed
apt-get does not recognize my texlive installation, although it's installed, since I use it to compile my LaTeX documents.
which install-tl
has no output
which tlmgr
and
sudo su
which tlmgr
both produce
/usr/bin/tlmgr
so root and the user account recognize the same directory for tlmgr (I think this might be important, but I don't really know why)
The underlying problem
I am trying to
tlmgr update --self
but all of
tlmgr update --all
tlmgr update --list
tlmgr update --self
gives me (this is taken from a similar question, but only the checksum and the last line number are different, the rest is the same):
(running on Debian, switching to user mode!) Unknown directive
...containerchecksum
c59200574a316416a23695c258edf3a32531fbda43ccdc09360ee105c3f07f9fb77df17c4ba4c2ea4f3a5ea6667e064b51e3d8c2fe6c984ba3e71b4e32716955... ,
please fix it! at
/usr/share/texlive/tlpkg/TeXLive/TLPOBJ.pm line 210, line 5579.
and
sudo su
tlmgr update --self
outputs
(running on Debian, switching to user mode!)
cannot setup TLPDB in /root/texmf at /usr/bin/tlmgr line 5604.
I guess I am running Debian TL, since it's switching to user mode.
sudo apt-get install texlive
results in a double installation, cluttering the system.
The steps described in this post are a bit overwhelming, but if you think this would be the absolute best thing to do, I will.
echo $PATH. If the path to your TeXLive binaries is included, that's done. I guess you haven't installed TeXLIve through the Ubuntu repositories but used the installer. That's why apt-get says that TeXLive isn't installed. – Skillmon Jul 09 '17 at 12:39tex-commontexinfotexliveandtexmfare all in the directory/usr/share/if that's on any importance. – thymaro Jul 09 '17 at 12:40echo $PATHgives/home/thymaro/anaconda3/bin:/home/thymaro/bin:/home/thymaro/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin– thymaro Jul 09 '17 at 12:45/usr/share/? You might set thePATHto include the folders of your binaries withPATH=$PATH:/path/to/texlive/binaries(obviously with/path/to/texlive/binariesreplaced by the correct path to the containing folder). This way for the current terminal ONLY thePATHis set to include the desired folder. – Skillmon Jul 09 '17 at 12:48whereis pdftexor similar. – Skillmon Jul 09 '17 at 12:49apt-get installroutine and delete your own installation. That way, you can just let the system package manager handle all updates. That is, after all, the beauty of Debian and its derivatives - 99.9% of the time, packages just work. – Michael Palmer Jul 09 '17 at 16:08tlmgrfrom/usr/bin. Actually it could very well be that/usr/bin/tlmgris just a symlink that points to some file in your texlive folder. I would try the folllowing: as root,cd /usr/binandls -l | grep texliveto list all executables that are symlinks to texlive. If you find any, delete them all. – Michael Palmer Jul 09 '17 at 18:20grep, nothing shows up when Iwhereis pdftexetc.. I guess it's gone. I'm off to install TL 2017. – thymaro Jul 09 '17 at 18:41