0

A partial update (sent by Ubuntu) of Ubuntu 20.04 broke my existing installation of texlive. After unsuccessfull attempts to install various parts of it I used apt to purge and remove it. Now I still can't install texlive or any parts of it. This is the result: (Trying other parts give "similar" results.)

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: texlive : Depends: texlive-latex-base (>= 2019.20200218) but it is not installable texlive-base : Depends: texlive-binaries (>= 2019.20190605) texlive-latex-recommended : Depends: texlive-binaries (>= 2019.20190605) Depends: texlive-latex-base (>= 2019.20200218) but it is not installable E: Unable to correct problems, you have held broken packages.

What are my options? (One might be to go back to Slackware.)

dburke
  • 1

2 Answers2

0

update your question to show output of running

dpkg --get-selections | grep hold

in addition run below

sudo apt-get update

sudo apt-get --fix-broken install -y

sudo apt-get -f install -y

sudo apt-get dist-upgrade

sudo apt-get autoremove

sudo apt-get autoclean -y

and update your question with any interesting output from above

below is how to install the necessaries to be able to edit latex files

sudo apt install  -y texlive-latex-extra  texlive-fonts-extra  texstudio

once that finishes tap your WIN key to bring up the Dash search ... or click on the Show Applications menu then enter ... texstudio

texstudio is the application to edit and convert into pdf any latex file

there is no need to explicitly install texlive-latex-recommended since above install command will auto add that package

If above fails to work run this

sudo apt-get -f install  texlive-latex-extra  texlive-fonts-extra  texlive-binaries texlive-latex-base texlive-base texlive-latex-recommended  

and update your question with its output if it fails

UPDATE ______________________

when you see

The following packages have unmet dependencies: texlive-binaries : Depends: libptexenc1 (< 2019.20190605.51237-3build2.1~) but 2020.20200327.54578-6 is to be installed Depends: libkpathsea6 (< 2019.20190605.51237-3build2.1~) but 2020.20200327.54578-6 is to be installed Depends: libsynctex2 (< 2019.20190605.51237-3build2.1~) but 2020.20200327.54578-6 is to be installed Depends: libtexlua53 (< 2019.20190605.51237-3build2.1~) but 2020.20200327.54578-6 is to be installed Depends: libtexluajit2 (< 2019.20190605.51237-3build2.1~) but 2020.20200327.54578-6 is to be installed Recommends: dvisvgm but it is not going to be installed E: Unable to correct problems, you have held broken packages.

this means you have installed a newer version of some package than the recommended version so solution typically involves removing that package ... so question is how to find that offending package

update your question ( do NOT put into a comment ) the output of running

dpkg -l | grep 2020.20200327.54578-6

so my guess is remove the package which shows in output of above command

hint: to properly format text you paste into a question put four spaces at front of each line of text

0

Scott -- Thank you for your help. Apparently Ubuntu wants to install texlive (2019 version) but has already installed the incompatible 2020 versions of the 5 libraries (libptexenc1, libkpathsea6, libsynctex2, libtexlua53, libtexluajit2). A couple of days ago I reinstalled all of these but by default it installed the 2020 versions again. Checking the man page for apt-get I found out how to specify the version 2019.20190605.51237-3build2 for each of these libraries. I should know -- the "man page" can be your friend. Now, texlive has just finished installation and I believe I will be able to add whatever is needed. Thanks again.

dburke
  • 1