Page 3 of 3 FirstFirst 123
Results 21 to 28 of 28

Thread: apt-get update GPG error, key expired

  1. #21
    Junior Member
    Join Date
    Feb 2018
    Location
    In a cave in West Virginia
    Posts
    6
    Quote Originally Posted by cloud9j View Post
    Here's what i tried so far and it is still not working for me:

    root@GhostTown:~# apt-get clean && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
    Err:1 http://repo.kali.org/kali kali-rolling InRelease
    403 Forbidden
    Reading package lists... Done
    E: Failed to fetch http://repo.kali.org/kali/dists/kali-rolling/InRelease 403 Forbidden
    E: Some index files failed to download. They have been ignored, or old ones used instead.
    root@GhostTown:~# wget https://http.kali.org/kali/pool/main...2018.1_all.deb
    --2018-02-08 18:17:29-- https://http.kali.org/kali/pool/main...2018.1_all.deb
    Resolving http.kali.org (http.kali.org)... 192.99.200.113
    Connecting to http.kali.org (http.kali.org)|192.99.200.113|:443... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: https://archive-10.kali.org/kali/poo...2018.1_all.deb [following]
    --2018-02-08 18:17:29-- https://archive-10.kali.org/kali/poo...2018.1_all.deb
    Resolving archive-10.kali.org (archive-10.kali.org)... 167.114.101.149
    Connecting to archive-10.kali.org (archive-10.kali.org)|167.114.101.149|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 6888 (6.7K) [application/octet-stream]
    Saving to: ‘kali-archive-keyring_2018.1_all.deb.1’

    kali-archive-keyrin 100%[===================>] 6.73K --.-KB/s in 0s

    2018-02-08 18:17:29 (84.1 MB/s) - ‘kali-archive-keyring_2018.1_all.deb.1’ saved [6888/6888]

    root@GhostTown:~# apt install ./kali-archive-keyring_2018.1_all.deb
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Note, selecting 'kali-archive-keyring' instead of './kali-archive-keyring_2018.1_all.deb'
    kali-archive-keyring is already the newest version (2018.1).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    root@GhostTown:~# apt-get update
    Err:1 http://repo.kali.org/kali kali-rolling InRelease
    403 Forbidden
    Reading package lists... Done
    E: Failed to fetch http://repo.kali.org/kali/dists/kali-rolling/InRelease 403 Forbidden
    E: Some index files failed to download. They have been ignored, or old ones used instead.
    root@GhostTown:~# gpg --keyserver pgpkeys.mit.edu --recv-key ED444FF07D8D0BF6
    key ED444FF07D8D0BF6:
    132 signatures not checked due to missing keys
    gpg: key ED444FF07D8D0BF6: "Kali Linux Repository <devel@kali.org>" not changed
    gpg: Total number processed: 1
    gpg: unchanged: 1
    root@GhostTown:~#
    root@GhostTown:~# apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6
    Executing: /tmp/apt-key-gpghome.um2GTZu6eL/gpg.1.sh --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6
    key ED444FF07D8D0BF6:
    132 signatures not checked due to missing keys
    gpg: key ED444FF07D8D0BF6: "Kali Linux Repository <devel@kali.org>" not changed
    gpg: Total number processed: 1
    gpg: unchanged: 1
    root@GhostTown:~# apt-get update
    Err:1 http://repo.kali.org/kali kali-rolling InRelease
    403 Forbidden
    Reading package lists... Done
    E: Failed to fetch http://repo.kali.org/kali/dists/kali-rolling/InRelease 403 Forbidden
    E: Some index files failed to download. They have been ignored, or old ones used instead.
    root@GhostTown:~# rm -rf /var/lib/apt/lists
    root@GhostTown:~# apt-get update
    Err:1 http://repo.kali.org/kali kali-rolling InRelease
    403 Forbidden
    Reading package lists... Done
    E: Failed to fetch http://repo.kali.org/kali/dists/kali-rolling/InRelease 403 Forbidden
    E: Some index files failed to download. They have been ignored, or old ones used instead.
    root@GhostTown:~# apt-get install kali-archive-keyring
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    kali-archive-keyring is already the newest version (2018.1).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    root@GhostTown:~# gpg --keyserver pgpkeys.mit.edu --recv-key ED444FF07D8D0BF6
    key ED444FF07D8D0BF6:
    132 signatures not checked due to missing keys
    gpg: key ED444FF07D8D0BF6: "Kali Linux Repository <devel@kali.org>" not changed
    gpg: Total number processed: 1
    gpg: unchanged: 1
    root@GhostTown:~# gpg -a --export ED444FF07D8D0BF6 | sudo apt-key add -
    key ED444FF07D8D0BF6:
    132 signatures not checked due to missing keys
    OK
    root@GhostTown:~# apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6
    Executing: /tmp/apt-key-gpghome.y4cN1euMcS/gpg.1.sh --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6
    key ED444FF07D8D0BF6:
    132 signatures not checked due to missing keys
    gpg: key ED444FF07D8D0BF6: "Kali Linux Repository <devel@kali.org>" not changed
    gpg: Total number processed: 1
    gpg: unchanged: 1
    root@GhostTown:~# gpg --keyserver hkp://keys.gnupg.net --recv-key 7D8D0BF6
    key ED444FF07D8D0BF6:
    132 signatures not checked due to missing keys
    gpg: key ED444FF07D8D0BF6: "Kali Linux Repository <devel@kali.org>" not changed
    gpg: Total number processed: 1
    gpg: unchanged: 1
    root@GhostTown:~# gpg -a --export ED444FF07D8D0BF6 | sudo apt-key add -
    key ED444FF07D8D0BF6:
    132 signatures not checked due to missing keys
    OK
    root@GhostTown:~# apt-get update
    Err:1 http://repo.kali.org/kali kali-rolling InRelease
    403 Forbidden
    Reading package lists... Done
    E: Failed to fetch http://repo.kali.org/kali/dists/kali-rolling/InRelease 403 Forbidden
    E: Some index files failed to download. They have been ignored, or old ones used instead.
    root@GhostTown:~# wget https://http.kali.org/kali/pool/main...2018.1_all.deb
    --2018-02-08 18:24:31-- https://http.kali.org/kali/pool/main...2018.1_all.deb
    Resolving http.kali.org (http.kali.org)... 192.99.200.113
    Connecting to http.kali.org (http.kali.org)|192.99.200.113|:443... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: https://archive-12.kali.org/kali/poo...2018.1_all.deb [following]
    --2018-02-08 18:24:31-- https://archive-12.kali.org/kali/poo...2018.1_all.deb
    Resolving archive-12.kali.org (archive-12.kali.org)... 167.114.101.174
    Connecting to archive-12.kali.org (archive-12.kali.org)|167.114.101.174|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 6888 (6.7K) [application/octet-stream]
    Saving to: ‘kali-archive-keyring_2018.1_all.deb.2’

    kali-archive-keyrin 100%[===================>] 6.73K --.-KB/s in 0s

    2018-02-08 18:24:31 (167 MB/s) - ‘kali-archive-keyring_2018.1_all.deb.2’ saved [6888/6888]

    root@GhostTown:~# apt install ./kali-archive-keyring_2018.1_all.deb
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Note, selecting 'kali-archive-keyring' instead of './kali-archive-keyring_2018.1_all.deb'
    kali-archive-keyring is already the newest version (2018.1).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    root@GhostTown:~# apt-get update
    Err:1 http://repo.kali.org/kali kali-rolling InRelease
    403 Forbidden
    Reading package lists... Done
    E: Failed to fetch http://repo.kali.org/kali/dists/kali-rolling/InRelease 403 Forbidden
    E: Some index files failed to download. They have been ignored, or old ones used instead.
    root@GhostTown:~#

    My repositories sources.list is as follows:

    deb http://http.kali.org/kali kali-rolling main contrib non-free
    # For source package access, uncomment the following line
    # deb-src http://http.kali.org/kali kali-rolling main contrib non-free

    Any help would be greatly appreciated. I am new to this version and have "some" experience with linux so bare with me plz
    [b]Try this command[b]

    Code:
    apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6
    that took care of my invalid key information.

    I forgot to include after you use the command of

    Code:
    apt-get update --fix-missing
    Enter

    now

    Code:
    apt-get update && apt-get upgrade
    and all should work well.[/code]
    Last edited by KnuckleHead; 2018-02-14 at 06:56 AM. Reason: forgot to add command for --fix-missing

  2. #22
    Junior Member
    Join Date
    Feb 2018
    Posts
    1
    Hello,
    try with

    # wget 'https://archive.kali.org/archive-key.asc'
    # apt-key add archive-key.asc

    and finally run

    # apt-get update

    it works fine

  3. #23
    Junior Member
    Join Date
    Nov 2014
    Posts
    2
    I have the same issue as cloud9j:

    root@kali:~# apt-get update --fix-missing
    Err:1 http://repo.kali.org/kali kali-rolling InRelease
    403 Forbidden
    Reading package lists... Done
    E: Failed to fetch http://repo.kali.org/kali/dists/kali-rolling/InRelease 403 Forbidden
    E: Some index files failed to download. They have been ignored, or old ones used instead.
    root@kali:~#

    Nothing in this threat has helped. issue remains.
    Any help appreciated.

  4. #24
    Junior Member
    Join Date
    Feb 2018
    Posts
    1
    Great! Thank you

  5. #25
    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
    Thanks alot, actually this works for me,

    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
    Thanks alot, actually this worked for me after spending hours on the internet.

  6. #26
    Junior Member
    Join Date
    Jun 2017
    Location
    Cowtown
    Posts
    3
    I am experiancing the same issue as stated above and have tried each of the solutions provided here with no luck. On each instance when running any form of update/upgrade I still receive the error line stating
    "E: The repository 'file:/var/cache/apt-build/repository apt-build Release' 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.


    Is there anything else that I can do to resolve this issue?


    # apt-get update
    Get:1 file:/var/cache/apt-build/repository apt-build InRelease
    Ign:1 file:/var/cache/apt-build/repository apt-build InRelease
    Get:2 file:/var/cache/apt-build/repository apt-build Release [1,530 B]
    Get:2 file:/var/cache/apt-build/repository apt-build Release [1,530 B]
    Get:3 file:/var/cache/apt-build/repository apt-build Release.gpg
    Ign:3 file:/var/cache/apt-build/repository apt-build Release.gpg
    Hit:4 http://archive-7.kali.org/kali kali-rolling InRelease
    Hit:5 http://deb.i2p2.no unstable InRelease
    Reading package lists... Done
    E: The repository 'file:/var/cache/apt-build/repository apt-build Release' 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.


    apt-key list
    /etc/apt/trusted.gpg
    --------------------
    pub rsa4096 2013-10-10 [SC] [expires: 2018-10-13]
    7840 E761 0F28 B904 7535 49D7 67EC E560 5BCF 1346
    uid [ unknown] I2P Debian Package Repository <killyourtv@i2pmail.org>
    sub rsa4096 2014-03-21 [S] [expires: 2018-10-13]

    pub rsa4096 2013-04-06 [SC] [expired: 2016-04-10]
    3E23 3DAE 0674 7F9E 0C64 D175 8CF6 E896 B3C0 1B09
    uid [ expired] KillYourTV Debian repository signing key <killyourtv@mail.i2p>

    /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] [expires: 2021-02-03]
    44C6 513A 8E4F B3D3 0875 F758 ED44 4FF0 7D8D 0BF6
    uid [ unknown] Kali Linux Repository <devel@kali.org>
    sub rsa4096 2012-03-05 [E] [expires: 2021-02-03]




    [B]/etc/apt/sources.list.d/apt.build.list[/B
    deb [arch=amd64] file:/var/cache/apt-build/repository apt-build main
    ]

  7. #27
    Junior Member
    Join Date
    Nov 2014
    Posts
    2

    403 forbidden solution

    Quote Originally Posted by garthoid View Post
    I have the same issue as cloud9j:

    root@kali:~# apt-get update --fix-missing
    Err:1 http://repo.kali.org/kali kali-rolling InRelease
    403 Forbidden
    Reading package lists... Done
    E: Failed to fetch http://repo.kali.org/kali/dists/kali-rolling/InRelease 403 Forbidden
    E: Some index files failed to download. They have been ignored, or old ones used instead.
    root@kali:~#

    Nothing in this threat has helped. issue remains.
    Any help appreciated.
    The solution to 403 forbidden (from http://www.kali-linux.fr/forum/index.php?topic=4311.0)

    -edit /etc/apt/sources.list
    -ensure the repo is:
    -deb http://http.kali.org/kali kali-rolling main contrib non-free
    -save
    -run apt-get update again.

  8. #28
    Senior Member
    Join Date
    Oct 2016
    Location
    /dev/sda
    Posts
    867
    sudo wget -q -O - https://www.kali.org/archive-key.asc | apt-key add
    sudo apt update

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
  •