1

I'm trying to install the package by following web upd8 article Install LibreOffice 5.0 In Ubuntu Or Linux Mint Via PPA, with the difference I use the Fresh PPA.

Environment

$ lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description:    Linux Mint 17.2 Rafaela
Release:        17.2
Codename:       rafaela

Pinnig rule

$ cat /etc/apt/preferences.d/libreoffice-ppa.pref
Package: *
Pin: release o=LP-PPA-libreoffice-ppa
Pin-Priority: 701

Installation

I then add the ppa and update/dist-upgrade

$ sudo add-apt-repository ppa:libreoffice/ppa
$ sudo apt-get update
$ sudo apt-get dist-upgrade

Cache Policy

Yet the cache policy still has an incorrect priority for the package.

$ apt-cache policy libreoffice
libreoffice:
  Installed: (none)
  Candidate: 1:4.4.3~rc2-0ubuntu1~trusty1
  Version table:
     1:5.0.2-0ubuntu1~trusty1 0
        500 http://ppa.launchpad.net/libreoffice/ppa/ubuntu/ trusty/main amd64 Packages
     1:4.4.3~rc2-0ubuntu1~trusty1 0
        700 http://packages.linuxmint.com/ rafaela/import amd64 Packages
     1:4.2.8-0ubuntu2 0
        500 http://mirrors.coreix.net/ubuntu/ trusty-updates/universe amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/universe amd64 Packages
     1:4.2.3~rc3-0ubuntu2 0
        500 http://mirrors.coreix.net/ubuntu/ trusty/universe amd64 Packages

Question

Why is my rule not taken into account?

1 Answer 1

3

Short answer

Wrong origin in the pinning rule of /etc/apt/preferences.d/libreoffice-ppa.pref:

Pin: release o=LP-PPA-libreoffice-ppa

should be (remove -ppa):

Pin: release o=LP-PPA-libreoffice

Long answer

You want to download the package from

http://ppa.launchpad.net/libreoffice/ppa/ubuntu/ trusty/main

So if you look at

http://ppa.launchpad.net/libreoffice/ppa/ubuntu/dists/trusty/Release

you will find

Origin: LP-PPA-libreoffice
Label: LibreOffice Fresh
Suite: trusty
Version: 14.04
Codename: trusty
Date: Sat, 10 Oct 2015  7:06:48 UTC
Architectures: amd64 arm64 armhf i386 powerpc ppc64el
Components: main
Description: Ubuntu Trusty 14.04
MD5Sum:
...

So you should change /etc/apt/preferences.d/libreoffice-ppa.pref accordingly.

3

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .