My key expires

Discussion in 'Installation/Configuration' started by pecka33, Mar 18, 2021.

  1. pecka33

    pecka33 Member

    Hello,
    i have a problem. I tried to run apt update, but I get error because your key expires. Here
    Code:
    pub   rsa3072 2019-03-18 [SC] [expired: 2021-03-17]
          1505 8500 A023 5D97 F5D1  0063 B188 E2B6 95BD 4743
    uid           [ expired] DEB.SURY.ORG Automatic Signing Key <[email protected]>

    run apt update get

    Code:
    The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <[email protected]>
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    All packages are up to date.
    W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.sury.org/php buster InRelease: The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <[email protected]>
    W: Failed to fetch https://packages.sury.org/php/dists/buster/InRelease  The following signatures were invalid: EXPKEYSIG B188E2B695BD4743 DEB.SURY.ORG Automatic Signing Key <[email protected]>
    W: Some index files failed to download. They have been ignored, or old ones used instead.
    I try to add new, in key list i can see now another key, but still same problem, in key list i can see new
    /etc/apt/trusted.gpg.d/php.gpg
    ------------------------------
    Code:
    pub   rsa3072 2019-03-18 [SC] [expires: 2024-02-16]
          1505 8500 A023 5D97 F5D1  0063 B188 E2B6 95BD 4743
    uid           [ unknown] DEB.SURY.ORG Automatic Signing Key <[email protected]>
    sub   rsa3072 2019-03-18 [E] [expires: 2024-02-16]
    I run command to update key

    Code:
    sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
     apt-get install apt-transport-https lsb-release ca-certificates

    At least when i tried
    Code:
    wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
    
    get just

    Code:
    Resolving packages.sury.org (packages.sury.org)... 2606:4700:3030::ac43:b696, 2606:4700:3037::6815:1294, 104.21.18.148, ...
    Connecting to packages.sury.org (packages.sury.org)|2606:4700:3030::ac43:b696|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 1769 (1.7K) [application/octet-stream]
    Saving to: ‘/etc/apt/trusted.gpg.d/php.gpg’
    
    /etc/apt/trusted.gpg.d/php.gpg                  100%[====================================================================================================>]   1.73K  --.-KB/s    in 0s
    Where should be problem? Nothing help me, thanks.
    Thanks.
     
    Last edited: Mar 18, 2021
  2. pecka33

    pecka33 Member

    My mistake, problem solved. I forgot to remove expired key first

    Code:
    apt-key del 95BD4743
    
    
    and than import new

    Code:
    wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
    
    
     
    Jesse Norell and till like this.

Share This Page