3

While installing texlive in Xubuntu 16.04.1, it does not install properly. When I upgrade the system it shows me the following error.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 texlive-full : Depends: texlive-lang-english (>= 2015) but it is not installed
                Depends: texlive-latex-recommended-doc (>= 2015) but it is not installed
                Depends: texlive-latex-base-doc (>= 2015) but it is not installed
E: Unmet dependencies. Try using -f.

I also tried:

sudo apt-get -f install

That did not work. I also tried Synaptic but it gives me the following error

E: /var/cache/apt/archives/texlive-lang-english_2015.20160223-1_all.deb: cannot copy extracted data for './usr/share/doc/texlive-doc/latex/lshort-english/lshort.pdf' to '/usr/share/doc/texlive-doc/latex/lshort-english/lshort.pdf.dpkg-new': unexpected end of file or stream
E: /var/cache/apt/archives/texlive-latex-recommended-doc_2015.20160320-1_all.deb: cannot copy extracted data for './usr/share/doc/texlive-doc/latex/eso-pic/eso-ex4.tex' to '/usr/share/doc/texlive-doc/latex/eso-pic/eso-ex4.tex.dpkg-new': unexpected end of file or stream

please help me

  • give the output of dkpg --configure -a – rancho Aug 04 '16 at 19:43
  • dpkg: dependency problems prevent configuration of texlive-full: texlive-full depends on texlive-lang-english (>= 2015); however: Package texlive-lang-english is not installed. texlive-full depends on texlive-latex-recommended-doc (>= 2015); however: Package texlive-latex-recommended-doc is not installed. texlive-full depends on texlive-latex-base-doc (>= 2015); however: Package texlive-latex-base-doc is not installed.

    dpkg: error processing package texlive-full (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: texlive-full

    – Mayank Chouksey Aug 04 '16 at 20:37
  • try purging textlive and reinstalling from synaptic. sudo apt purge textlive* – rancho Aug 04 '16 at 20:47
  • I could be a problem of outdated sources. I suggest to purge (as comment above), and install following these instructions. There are very clear and will give you the latest stable texlive distro, unlike the one installed using Synaptic or apt-get, which can be relatively outdated. –  Aug 06 '16 at 18:08
  • Could you please [edit] your post, when you want to add information? Especially file or program output listings (with the help of the {} button in the editor toolbar) are much more readable there; alternatively you can use a pastie service for longer listings and include the link of your pastie in your question. Overall it’s best to have everything relevant in one place. Additionally, comments may be deleted for various reasons. – David Foerster Aug 07 '16 at 18:53

1 Answers1

5

I had a similar problem when upgrading from Ubuntu LTS 14.04 to LTS 16.04.1. I could not remove textlive* using the suggestion by rancho. Then I found a solution by vehka on how to remove texlive-latex-base-doc: apt-get broken after version update (unmet dependencies)

$ sudo dpkg --force-all --purge texlive-latex-base-doc

It is also important to remove all packages carefully otherwise reinstallation will not work. I followed the steps that I took from a comment given by mubeena in a comment to a solution given by Nate Eldredge for mubeena's own thread: many many dpkg errors while upgrading:

$ sudo apt-get remove --purge tex-common texlive-*
$ sudo rm /etc/texmf/

Based on the other error that you are getting, you might need to remove also texlive-lang-english by using

$ sudo dpkg --force-all --purge texlive-lang-english

Then you could do

$ sudo apt-get -f install

and finally

$ sudo apt-get install texlive-full

This last command will install all you need and more. You might want to explore other detailed or lighter versions of texlive installation, but probably installing everythin will simplify things for you. I share the explanation by ufos in the following thread: Installation of texlive-full on Ubuntu 12.04, but there is a nice breakdown by masroor if you want to install just what you need.