[Tex/LaTex] How to make standalone package available by the LaTeX installation


I want to use LaTeX notes in Xournal++ on Ubuntu to annotate on .pdf.
However when I click on insert a LaTeX formula, I got:

Could not find LaTeX package 'standalone'. Please install standalone (found in texlive-latex-extra) and make sure it's accessible by your LaTeX installation).

enter image description here

I went online to search for help and tried:

sudo apt-get install texlive-latex-extra

which gave:

texlive-latex-extra is already the newest version (2019.202000218-1).
0 upgraded, 0 newly installed, 0 to remove and 211 not upgraded.

I tried a tlmgr install with:

$ tlmgr install standalone
(running on Debian, switching to user

/usr/bin/tlmgr: unexpected return value from verify_checksum: -5

I finally went here because of the unexpected return value:

tlmgr –verify-repo=none install standalone (running on Debian,
switching to user mode!)

tlmgr: Local TeX Live (2019) is older than remote repository (2020).
Cross release updates are only supported with
update-tlmgr-latest(.sh/.exe) –update See
https://tug.org/texlive/upgrade.html for details.

Are there other steps I am missing or am I doing it completely wrongly?

Best Answer

Alright, it is not exactly a fixing way but at least it worked. I uninstalled Xournal++ with Ubuntu software.

I then reinstalled it with:

sudo add-apt-repository ppa:apandada1/xournalpp-stable
sudo apt update
sudo apt install xournalpp

As suggested in the GitHub Readme. And now the LaTeX Formulas work. The version of xournalpp in Ubuntu's software center is a sandboxed snap package, and it has incompatibility issues with external components like LaTeX. Installing the native Debian package (in the PPA) solves the problem.

I also now understand it's not that much a LaTeX related question.