To do the LTS upgrade if you know about this before, this is enough:
sudo apt-get purge tex-common sudo -E do-release-upgrade -d sudo -E apt-get -y install tex-common texlive-base texlive-latex-recommended
(last packages added back as you need)
To do the LTS upgrade if you know about this before, this is enough:
sudo apt-get purge tex-common latex-recommend ed
sudo -E do-release-upgrade -d
sudo -E apt-get -y install tex-common texlive-base texlive-
(last packages added back as you need)