[–] beetusvoater 0 points 1 point 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.
[–] ReverendJ1 [S] 0 points 1 point 1 point (+1|-0) ago
I wonder if Synaptic automagically fixes the pinning, and that's what's going on here.
[–] 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
[–] beetusvoater 0 points 2 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.
[–] ReverendJ1 [S] 0 points 4 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:
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.
[–] ninjai 0 points 1 point 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?
[–] ReverendJ1 [S] 0 points 1 point 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.