Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: apt-get update GPG error, key expired

  1. #1
    Junior Member
    Join Date
    Feb 2018
    Posts
    1

    Question apt-get update GPG error, key expired

    Hello,
    I am trying to update Kali using the command apt-get update and I am receiving the following error:

    Here is the output of apt-get update
    Code:
    Get:1 http://archive-7.kali.org/kali kali-rolling InRelease [30.5 kB]
    Err:1 http://archive-7.kali.org/kali kali-rolling InRelease
      The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>
    Reading package lists... Done
    W: GPG error: http://archive-7.kali.org/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>
    E: The repository 'http://http.kali.org/kali kali-rolling InRelease' is not signed.
    N: Updating from such a repository can't be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.
    Looks like the gpg key has expired today.
    I tried debugging using the following thread but cannot find the fingerprint of the new key
    https://forums.kali.org/showthread.p...apt-get-update

    Any help is appreciated.
    Thank you.

    Here is the output of my sources.list file
    Code:
    deb http://http.kali.org/kali kali-rolling main non-free contrib
    And output of apt-key list
    Code:
    /etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg
    ----------------------------------------------------------
    pub   rsa4096 2014-11-21 [SC] [expires: 2022-11-19]
          126C 0D24 BD8A 2942 CC7D  F8AC 7638 D044 2B90 D010
    uid           [ unknown] Debian Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>
    
    /etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg
    -------------------------------------------------------------------
    pub   rsa4096 2014-11-21 [SC] [expires: 2022-11-19]
          D211 6914 1CEC D440 F2EB  8DDA 9D6D 8F6B C857 C906
    uid           [ unknown] Debian Security Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>
    
    /etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg
    -------------------------------------------------------
    pub   rsa4096 2013-08-17 [SC] [expires: 2021-08-15]
          75DD C3C4 A499 F1A1 8CB5  F3C8 CBF8 D6FD 518E 17E1
    uid           [ unknown] Jessie Stable Release Key <debian-release@lists.debian.org>
    
    /etc/apt/trusted.gpg.d/debian-archive-stretch-automatic.gpg
    -----------------------------------------------------------
    pub   rsa4096 2017-05-22 [SC] [expires: 2025-05-20]
          E1CF 20DD FFE4 B89E 8026  58F1 E0B1 1894 F66A EC98
    uid           [ unknown] Debian Archive Automatic Signing Key (9/stretch) <ftpmaster@debian.org>
    sub   rsa4096 2017-05-22 [S] [expires: 2025-05-20]
    
    /etc/apt/trusted.gpg.d/debian-archive-stretch-security-automatic.gpg
    --------------------------------------------------------------------
    pub   rsa4096 2017-05-22 [SC] [expires: 2025-05-20]
          6ED6 F5CB 5FA6 FB2F 460A  E88E EDA0 D238 8AE2 2BA9
    uid           [ unknown] Debian Security Archive Automatic Signing Key (9/stretch) <ftpmaster@debian.org>
    sub   rsa4096 2017-05-22 [S] [expires: 2025-05-20]
    
    /etc/apt/trusted.gpg.d/debian-archive-stretch-stable.gpg
    --------------------------------------------------------
    pub   rsa4096 2017-05-20 [SC] [expires: 2025-05-18]
          067E 3C45 6BAE 240A CEE8  8F6F EF0F 382A 1A7B 6500
    uid           [ unknown] Debian Stable Release Key (9/stretch) <debian-release@lists.debian.org>
    
    /etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg
    ----------------------------------------------------------
    pub   rsa4096 2012-04-27 [SC] [expires: 2020-04-25]
          A1BD 8E9D 78F7 FE5C 3E65  D8AF 8B48 AD62 4692 5553
    uid           [ unknown] Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org>
    
    /etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg
    -------------------------------------------------------
    pub   rsa4096 2012-05-08 [SC] [expires: 2019-05-07]
          ED6D 6527 1AAC F0FF 15D1  2303 6FB2 A1C2 65FF B764
    uid           [ unknown] Wheezy Stable Release Key <debian-release@lists.debian.org>
    
    /etc/apt/trusted.gpg.d/kali-archive-keyring.gpg
    -----------------------------------------------
    pub   rsa4096 2012-03-05 [SC] [expired: 2018-02-02]
          44C6 513A 8E4F B3D3 0875  F758 ED44 4FF0 7D8D 0BF6
    uid           [ expired] Kali Linux Repository <devel@kali.org>

  2. #2
    Junior Member
    Join Date
    Feb 2018
    Posts
    2
    Having the same issue.. been busy with it for hours, no luck so far.

  3. #3
    Junior Member
    Join Date
    Feb 2018
    Posts
    2
    Right after I posted this message, I found the solution:

    apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6

    This will request new keys and fixed my issue. Good luck!

  4. #4
    Junior Member
    Join Date
    Feb 2018
    Posts
    1
    Hello,
    I am also having same problem . i am a complete noob to this. i just installed a fresh 64 bit kali linux 2017.3 which downloaded from official site and installed it on vm virtualbox. Everything went smoothly untill i wanted to install guest addition. So everytime i tried apt-get update i would get the error telling key expired .i did try the https://forums.kali.org/showthread.p...apt-get-update option it just gave me it was a old version so i wasnt sure what next to do . Please do tell me if you know a fix .

  5. #5
    Junior Member
    Join Date
    Feb 2018
    Posts
    1
    im having the same issue. Looking for a fix.

  6. #6
    Junior Member
    Join Date
    Jan 2018
    Posts
    8
    Try this:

    Delete old keys:
    Code:
    rm -rf /var/lib/apt/lists
    # apt-get update 
    # apt-get install kali-archive-keyring
    If didn't help:

    One of these should work, don't know where gpg key nowadays:
    Code:
    # gpg --keyserver pgpkeys.mit.edu --recv-key  ED444FF07D8D0BF6
    # apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6
    # gpg --keyserver hkp://keys.gnupg.net --recv-key 7D8D0BF6
    # gpg -a --export ED444FF07D8D0BF6 | sudo apt-key add -
    
    # apt-get update

  7. #7
    Senior Member
    Join Date
    Nov 2015
    Location
    Australia
    Posts
    166

    Lightbulb

    Hi saiko,

    Same here. This fixes it:

    Code:
    wget https://http.kali.org/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2018.1_all.deb
    apt install ./kali-archive-keyring_2018.1_all.deb
    Hope that helps.
    ----------------------------------------
    Check out "Sticky Fingers Kali-Pi":
    https://whitedome.com.au/kali-pi

    Now with mana-toolkit and more goodies!

  8. #8
    Junior Member
    Join Date
    Feb 2018
    Posts
    1

    Quote Originally Posted by re4son View Post
    Hi saiko,

    Same here. This fixes it:

    Code:
    wget https://http.kali.org/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2018.1_all.deb
    apt install ./kali-archive-keyring_2018.1_all.deb
    Hope that helps.

    thank your help

  9. #9
    Junior Member
    Join Date
    Feb 2018
    Posts
    1
    Thanks it fixed my issue too

  10. #10

    Fix

    Quote Originally Posted by n3tr4k View Post
    Try this:

    Delete old keys:
    Code:
    rm -rf /var/lib/apt/lists
    # apt-get update 
    # apt-get install kali-archive-keyring
    If didn't help:

    One of these should work, don't know where gpg key nowadays:
    Code:
    # gpg --keyserver pgpkeys.mit.edu --recv-key  ED444FF07D8D0BF6
    # apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6
    # gpg --keyserver hkp://keys.gnupg.net --recv-key 7D8D0BF6
    # gpg -a --export ED444FF07D8D0BF6 | sudo apt-key add -
    
    # apt-get update
    Was starting to think I was beyond saving, much obliged

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •