Upgrading letsencrypt version 0.4.1 to certbot, but not upgrading

My domain is:

My web server is (include version): nginx version: nginx/1.10.3 (Ubuntu)

The operating system my web server runs on is (include version): Ubuntu 16.04.1 LTS, xenial

My hosting provider, if applicable, is: AWS

I can login to a root shell on my machine (yes or no, or I don’t know): Yes

According to https://certbot.eff.org/lets-encrypt/ubuntuxenial-nginx, i ran below command

  1. i ran sudo apt-get update
    output :

    Reading package lists… Done
    W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 Release: The following signatures were invalid: KEYEXPIRED 1507497109
    W: Failed to fetch http://repo.mongodb.org/apt/ubuntu/dists/xenial/mongodb-org/3.2/Release.gpg The following signatures were invalid: KEYEXPIRED 1507497109
    W: Some index files failed to download. They have been ignored, or old ones used instead.

  2. then i ran : sudo apt-get install software-properties-common
    output :
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    You might want to run ‘apt-get -f install’ to correct these:
    The following packages have unmet dependencies:
    linux-headers-generic : Depends: linux-headers-4.4.0-142-generic but it is not going to be installed
    software-properties-common : Depends: python3-software-properties (= 0.96.20.8) but 0.96.20.5 is to be installed
    E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).

  3. then i ran : sudo add-apt-repository universe
    output : ‘universe’ distribution component is already enabled for all sources.

  4. then i ran : sudo add-apt-repository ppa:certbot/certbot
    output :
    This is the PPA for packages prepared by Debian Let’s Encrypt Team and backported for Ubuntu(s).
    More info: https://launchpad.net/~certbot/+archive/ubuntu/certbot
    Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring /tmp/tmpsm7836_f/secring.gpg' created gpg: keyring/tmp/tmpsm7836_f/pubring.gpg’ created
gpg: requesting key 75BCA694 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpsm7836_f/trustdb.gpg: trustdb created
gpg: key 75BCA694: public key “Launchpad PPA for certbot” imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK

  1. then i ran : sudo apt-get update
    output :
    Ign:1 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 InRelease
    Get:2 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 Release [3,462 B]
    Hit:3 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu xenial InRelease
    Get:4 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
    Get:5 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
    Get:6 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 Release.gpg [801 B]
    Err:6 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 Release.gpg
    The following signatures were invalid: KEYEXPIRED 1507497109
    Get:7 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
    Hit:8 http://ppa.launchpad.net/certbot/certbot/ubuntu xenial InRelease
    Fetched 329 kB in 1s (175 kB/s)
    Reading package lists… Done
    W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 Release: The following signatures were invalid: KEYEXPIRED 1507497109
    W: Failed to fetch http://repo.mongodb.org/apt/ubuntu/dists/xenial/mongodb-org/3.2/Release.gpg The following signatures were invalid: KEYEXPIRED 1507497109
    W: Some index files failed to download. They have been ignored, or old ones used instead.

  2. then i ran : sudo apt-get install certbot python-certbot-nginx
    output :
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    You might want to run ‘apt-get -f install’ to correct these:
    The following packages have unmet dependencies:
    certbot : Depends: python3-certbot (= 0.28.0-1+ubuntu16.04.1+certbot+4) but it is not going to be installed
    Breaks: letsencrypt (<= 0.6.0)
    linux-headers-generic : Depends: linux-headers-4.4.0-142-generic but it is not going to be installed
    python-certbot-nginx : Depends: python3-certbot-nginx but it is not going to be installed
    E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).

letsencrypt is not upgrading to certbot, please help me

It suggests to run apt-get -f install four times. Did you try that?

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.