1
  1. How do I get a specific repository to override all other repositories, for ALL software in that one repository? (At all times, no matter what any other repository does.)
  2. After solving question 1, what is needed to get the system back to the original state (regarding LibreOffice, see Background).

Desires:

  • All solutions are from the command line.
  • You actually use, or have used, the solution you’re giving. (see Reference Notes)

Background:

Official 14.04 recently updated LibreOffice, causing the official repositories to install over and override the LibreOffice PPA, error message is:

# apt-get update
# apt-get upgrade

... snip ...

You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 libreoffice-calc : Depends: libreoffice-base-core (= 1:5.4.1~rc2-0ubuntu0.14.04.1~lo0) but 1:5.4.2~rc2-0ubuntu0.14.04.1~lo1 is installed
                    Depends: libreoffice-core (= 1:5.4.1~rc2-0ubuntu0.14.04.1~lo0) but 1:5.4.2~rc2-0ubuntu0.14.04.1~lo1 is installed
 libreoffice-core : Breaks: libreoffice-calc (< 1:5.4.2~rc2-0ubuntu0.14.04.1~lo1) but 1:5.4.1~rc2-0ubuntu0.14.04.1~lo0 is installed
                    Breaks: libreoffice-draw (< 1:5.4.2~rc2-0ubuntu0.14.04.1~lo1) but 1:5.4.1~rc2-0ubuntu0.14.04.1~lo0 is installed
                    Breaks: libreoffice-impress (< 1:5.4.2~rc2-0ubuntu0.14.04.1~lo1) but 1:5.4.1~rc2-0ubuntu0.14.04.1~lo0 is installed
 libreoffice-draw : Depends: libreoffice-core (= 1:5.4.1~rc2-0ubuntu0.14.04.1~lo0) but 1:5.4.2~rc2-0ubuntu0.14.04.1~lo1 is installed
 libreoffice-impress : Depends: libreoffice-core (= 1:5.4.1~rc2-0ubuntu0.14.04.1~lo0) but 1:5.4.2~rc2-0ubuntu0.14.04.1~lo1 is installed
E: Unmet dependencies. Try using -f.

System will now not update anything until this is resolved.

Reference Notes:

Based upon How to only install updates from a specific repository?, pinning is not the answer. APT preference may be, but I’m highly hesitant to use examples found as they contradict each other and even the Debian wiki for it:

This page has been written by ZugSchlus, who not even remotely grasps the concept of pinning. So, please take the words "probably", "needs to be verified" and similiar wordings literally, and document your findings (may they be "this page is right" or "this page is wrong", optionally "this page is wrong because") here.

Further information at: https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1722932

  • Apt always assumes that the higher version is preferred. You want something different - you want apt to prioritize by source. Apt-preferences won't help you - that's not what preferences do. You are trying to use apt for a purpose it was not designed for, so you may not be satisfied with many realistic answers: Apt-pinning, Snaps, Source management, etc. – user535733 Oct 19 '17 at 0:49
  • @user535733, I’m not sure why you say this isn’t something Apt, or variant, should do, other dist’s do this, see: wiki.centos.org/PackageManagement/Yum/Priorities . So it’s not like this is a new concept, but just how is it accomplished in the Debian world? – Michael Oct 19 '17 at 1:35
  • Nobody said apt shouldn't do it. We said apt doesn't do it. It's accomplished in the Debian world by choosing your version and source wisely, and managing them. PPAs are not intended to be a reliable long-term source - some are, but that's a misuse. – user535733 Oct 19 '17 at 1:38
  • @user535733 It seems like you've basically answered the question. Would you consider posting an answer along the lines of your comments? (Other users will still be able to answer, of course, and maybe a later answer will meet Michael's needs better, but I think your answer would still be valuable.) – Eliah Kagan Oct 19 '17 at 3:11
  • 1
    Regarding your actual problem, packages.ubuntu.com/search?keywords=libreoffice-core says the official 14.04 repositories are all still 1:4.x.y. The problem is with the PPA (who seem to have made a half-update, or something else) and not with Ubuntu's repos. Prioritizing the PPA won't help since none of the package versions mentioned are from Ubuntu's repos. – muru Oct 19 '17 at 3:26
0

So, after some more experimentation and learning, I think that I have an answer; don't revert system to original state; update the broken bits instead. Both Ubuntu and LibreOffice bugs were being 'Resolved' as 'It's their fault'!

Necessity is the mother of invention...

Solution in fellow Noobspeak:

  1. Run Synaptic Package Manager If not sure how, press the Windows/Super key then type Synaptic and click the appropriate icon
  2. Enter your password when prompted
  3. Click On The 'Status' button. Above that, select 'Broken Dependencies'
  4. To the right, Select all four affected LibreOffice Packages
  5. Right click them and choose 'Mark For Upgrade' option
  6. Click the big Apply button, above.

Unless the tiger is hiding, waiting to bite my hubristic backside, I think that this solves it. Tell me if I'm giving stupid advice! Thanks.

If it hasn't worked for you, perhaps you'd deseleted the LibreOffice PPA in the Depositary List. Reenable it and start again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.