"tlmgr" on "Ubuntu 22.04"

Max Chernoff mseven at telus.net
Fri Jul 29 00:58:09 CEST 2022


> You probably missed the part of my report that had it in already:

Yep, I completely missed that. Whoops.

> As you see, i the /2022/ version was installed, /PATH/ was renewed and
> still, it complains that the version is /2021/.
> 
> Your suggested command does the same thing.

I'm not too sure what's going on here, but I have a couple of potential
ideas:

1. Have you tried rebooting since you installed TL? Sometimes the
profile file is only source'd on login, so this may solve the problem.

2. What do you get when you run:

   type -ap tlmgr
   type -ap tex
   
On my system, I get:

   $ type -ap tlmgr
   /usr/local/texlive/2022/bin/x86_64-linux/tlmgr
   
   $ type -ap tex
   /usr/local/texlive/2022/bin/x86_64-linux/tex
   
If you aren't getting TL 2022 as the first result for both commands
(which I strongly suspect is the case), that means that you're going to
have problems (which you are).

3. There's a chance that there's a weird permission thing going on here.
What do you get when you run:

   ls -l /usr/local/texlive/2022/bin/x86_64-linux | grep 'tlmgr'
   
I get:

   lrwxrwxrwx. 1 root root       41 Oct  3  2018 tlmgr -> ../../texmf-dist/scripts/texlive/tlmgr.pl
   
4. I've sometimes had better luck using systemd-environmentd to set
environment variables. You can try running

   mkdir -p ~/.config/environment.d/
   echo 'PATH=/usr/local/texlive/2022/bin/x86_64-linux/:${PATH}' > ~/.config/environment.d/texlive-path.conf
   
then reboot. Does this fix anything?

5. Are you using bash as your shell? If you're using Zsh, ksh, or csh,
then there may be some special way of adding things to your path that
I'm not aware of. I'm using fish, so I would need to run
"fish_add_path".

6. You said that using sudo works. What do you get when you run:

   env | grep -i tex
   sudo env | grep -i tex
   
I get:

   $ env | grep -i tex
   PATH=/opt/context/tex/texmf-linux-64/bin:/usr/local/texlive/2022/bin/x86_64-linux:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin
   
   sudo env | grep -i tex
   (no output)
   
7. You can try clearing the bash PATH cache by running:

   hash -r

> Should i run /TeXstudio/ as /sudo/ further on? Is that normal?

Probably not a great idea. 

Anyways, this is all the ideas that I have. Hopefully someone else can
be more helpful, since I'm doubtful that any of these solutions will
work.

-- Max



More information about the tex-live mailing list.