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
  • There are three different answers at that link. Which did you do, and which step went wrong? Did you remove the TexLive 2017 source? – user535733 Oct 16 '17 at 14:29
  • I went with the accepted answer (I edited the question so it links there now). Nothing went wrong really, just that the problem remains. I used sudo ppa-purge ppa:jonathonf/texlive-2017 to remove the ppa if this what you mean. – jan1892 Oct 16 '17 at 14:35
  • 1
    If you got "held packages" problems for dependencies, you may try aptitude. This tool makes one or more suggestions of which packages upgrade or downgrade to solve the conflicts, and if you accept one of them, it performs the changes. There are many questions showing other solutions for held packages. – Jaime Oct 16 '17 at 14:39
  • one of the suggestion given by aptitude install texlive fixed the problem. Thanks! – jan1892 Oct 16 '17 at 15:05

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
Reza Rahemi
  • 263
  • 1
  • 15