0

I'm going mad with the following issue. I've added a PPA (ppa:savoury1/encryption) on two machines running Ubuntu 20.10.

On the first one, I see:

apt-cache policy openssl
openssl:
  Installato: 1.1.1j-1ubuntu0~20.10.sav0
  Candidato:  1.1.1f-1ubuntu4.3
  Tabella versione:
 *** 1.1.1j-1ubuntu0~20.10.sav0 500
        500 http://ppa.launchpad.net/savoury1/encryption/ubuntu groovy/main amd64 Packages
        100 /var/lib/dpkg/status
     1.1.1f-1ubuntu4.3 1000
        500 http://archive.ubuntu.com/ubuntu groovy-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu groovy-security/main amd64 Packages
     1.1.1f-1ubuntu4 1000
        500 http://archive.ubuntu.com/ubuntu groovy/main amd64 Packages

On the second:

apt-cache policy openssl
openssl:
  Installato: 1.1.1j-1ubuntu0~20.10.sav0
  Candidato:  1.1.1j-1ubuntu0~20.10.sav0
  Tabella versione:
 *** 1.1.1j-1ubuntu0~20.10.sav0 500
        500 http://ppa.launchpad.net/savoury1/encryption/ubuntu groovy/main amd64 Packages
        100 /var/lib/dpkg/status
     1.1.1f-1ubuntu4.3 500
        500 http://archive.ubuntu.com/ubuntu groovy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu groovy-security/main amd64 Packages
     1.1.1f-1ubuntu4 500
        500 http://archive.ubuntu.com/ubuntu groovy/main amd64 Packages

Why is the candidate different?

2
  • Did you run sudo apt update on both servers before apt-cache policy ? – Soren A Apr 8 at 9:11
  • @SorenA Sure I did... – jasmines Apr 8 at 9:16
1

Why is the candidate different?

Because the priorities of the repositories are different in each system, which result in different candidate packages from different repositories. In the first system the Ubuntu repository has 1000 priority, and the PPA has 500 priority. In the second system both repositories have 500 priority.

If you want to achieve consistency between both systems you will need to change the repository priorities in one of the systems. This is done by what is called "Repository Pinning".

5
  • How to view/change them? – jasmines Apr 8 at 9:39
  • I never had to do this, but you can start here: wiki.debian.org/AptConfiguration Another option: help.ubuntu.com/community/PinningHowto Whenever you have to edit a configuration file, if that file does not exist, you should just be able to create it. – Alejandro Apr 8 at 9:50
  • I'd like to understand where I can confirm the two machines give different priorities... – jasmines Apr 8 at 9:55
  • From the output of apt-cache policy openssl, in the lines 1.1.1j-1ubuntu0~20.10.sav0 500 or 1.1.1f-1ubuntu4.3 1000, the number at the end of the line denotes the priority for that version of the package. – Alejandro Apr 8 at 12:22
  • 1
    found in /etc/apt/preferences.d/ folder – jasmines Apr 8 at 13:24

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.