0
4

[–] ReverendJ1 [S] 0 points 4 points (+4|-0) ago 

The asterisks just point out which version is installed. The numbers before the repo (500, 700) are the priority. It looks like Mint uses a higher priority (700, 500 is default) for it's repo. This means that it will use it's own repo, instead of the default behavour, which is whatever repo has the newest version. I don't use Mint, I use Ubuntu, but my guess is they do that just so they can be more specific about packages they use for Mint, versus the default Ubuntu repos. To work around this, you just need to set a higher priority for the LibreOffice PPA. Create a file called /etc/apt/preferences.d/libreoffice (i.e. sudo nano /etc/apt/preferences.d/libreoffice) with the following:

Package: *
Pin: release o=LP-PPA-libreoffice
Pin-Priority: 800

Now, that will tell apt to prefer the libreoffice PPA over the Mint one. Run "sudo apt-get update" to update apt, so it will see your changes.

Run "apt-cache policy libreoffice. It should now show that version 5.0 is the install candidate.

Run "sudo apt-get install libreoffice" to enjoy your fresh LibreOffice suite.

Here's some more information on apt pinning.

0
1

[–] ninjai 0 points 1 point (+1|-0) ago 

This was the correct solution, thank you!

So does this mean I'll have 2 versions installed now, or will the old ones simply be upgraded?

0
1

[–] ReverendJ1 [S] 0 points 1 point (+1|-0) ago 

Sweet. Glad it worked.

No, it will update the version you have, not install a second one, since they are the same package. If they had named the package something else, like say libreoffice5, then you could potentially have two versions installed, depending on how they set up the packages.

0
1

[–] beetusvoater 0 points 1 point (+1|-0) ago  (edited ago)

I had the same problem.

In case you are still struggling: open synaptic->settings->repositories->PPAs->Add a new PPA-> ppa:libreoffice/ppa

Once you update now and execute apt-cache madison libreoffice you will see the new packages.

Cliff: I added multiple ppas until now per cli, but this one didn't want to be added that way.

EDIT: This only solved the problem of not being able to add the repo to the list... For the solution look at OPs and my other replies, i.e.

https://voat.co/v/Linux/comments/378822/1583931

https://voat.co/v/Linux/comments/378822/1584111

0
1

[–] ReverendJ1 [S] 0 points 1 point (+1|-0) ago 

I wonder if Synaptic automagically fixes the pinning, and that's what's going on here.

0
0

[–] beetusvoater ago  (edited ago)

No, I was mistaken. I only had the problem of not being able to add a new repo, which is really strange behaviour.

Anyway, you were right with your pinning hypothesis:

cat /etc/apt/preferences.d/*
Package: *
Pin: origin build.linuxmint.com
Pin-Priority: 700

Package: *
Pin: release o=LP-PPA-gwendal-lebihan-dev-cinnamon-nightly
Pin-Priority: 700

Package: *
Pin: origin download.virtualbox.org
Pin-Priority: 700
Package: *
Pin: release o=linuxmint
Pin-Priority: 700

Package: *
Pin: origin packages.linuxmint.com
Pin-Priority: 700

Package: *
Pin: release o=Ubuntu
Pin-Priority: 500

0
1

[–] ninjai 0 points 1 point (+1|-0) ago 

I see the new packages but I don't know how to install them. I see 4.4 and 5.0 packages.

0
2

[–] beetusvoater 0 points 2 points (+2|-0) ago  (edited ago)

If all else fails, you can just specify the version you want (didn't try it, but you do it by appending a "=" and the Version you want to have.).

sudo apt-get install libreoffice=1:5.0.0~rc5-0ubuntu1~trusty1

Your problem seems to be related to pinning... I didn't look deeper into it, but you might want to if you wan to have a more permanent solution.

EDIT: checked the command and corrected it.