0

I upgraded to texlive 2017 but had some issues with it and therefore wanted to go back to the 2015 version. I removed it with sudo apt-get purge --auto-remove texlive* but it did not seem to remove everything. When I try sudo apt-get install texliveI get the following error:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

    The following packages have unmet dependencies.
     libosgi-compendium-java : Depends: libgeronimo-jpa-2.0-spec-java but it is not going to be installed
     texlive : Depends: texlive-latex-recommended (>= 2015) but it is not going to be installed
               Depends: texlive-latex-base (>= 2015) but it is not going to be installed
               Depends: texlive-fonts-recommended (>= 2015) but it is not going to be installed
    E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

I then tried to follow the steps explained in this post but it did not help in this situation. Any ideas?

Thanks in advance!

jan1892
  • 55
  • 3
  • 8

1 Answers1

1

Try removing the full package (texlive-full). There might be some residuals from dependencies. Good luck.

  sudo apt-get purge --autoremove texlive-full

This might help fix the broken packages:

sudo apt-get install -f
sudo apt-get update
sudo apt-get upgrade
sudo dpkg --configure -a 

Something to consider if the above didn't work:

sudo apt-get purge texlive*
sudo rm -rf /usr/local/texlive/* and rm -rf ~/.texlive*
sudo rm -rf /usr/local/share/texmf
sudo rm -rf /var/lib/texmf
sudo rm -rf /etc/texmf
sudo apt-get remove tex-common --purge
rm -rf ~/.texlive

find -L /usr/local/bin/ -lname /usr/local/texlive/*/bin/* | xargs rm