Page 1 of 4 123 ... LastLast
Results 1 to 10 of 32

Thread: Problem with apt-get update /

  1. #1
    Junior Member
    Join Date
    Mar 2015
    Posts
    3

    Problem with apt-get update /

    I'm running v1.0.9 64-bit with kernel 3.12-kali-amd64 and get errors when I try to apt-get update
    First tried command line interface and got errors. Below is the console output, gpg key, & sources list.

    I updated 2 desktops without problem in the past 2 days. The machine I'm having trouble with is a thinkpad X1 carbon.

    Using the software update gui gives a "failed to process request" error:

    Code:
    E: Error http://http.kali.org/kali/ kali/main linux-image-3.14-kali1-amd64 amd64 3.14.5-1kali2
      404  Not Found
    Code:
    XXX@kali:~$ sudo apt-get update
    Hit http://dl.google.com stable Release.gpg
    Hit http://dl.google.com stable Release                                                                                                                                        
    Hit http://dl.google.com stable/main amd64 Packages                                                                                                                            
    Get:1 http://repo.kali.org kali-bleeding-edge Release.gpg [836 B]                                                                                                          
    Hit http://ppa.launchpad.net lucid Release.gpg                                                                                                
    Get:2 http://repo.kali.org kali-bleeding-edge Release [11.0 kB]                                          
    Err http://repo.kali.org kali-bleeding-edge Release                                                                                                    
      
    Hit http://ppa.launchpad.net lucid Release                                                                                                     
    Ign http://dl.google.com stable/main Translation-en_US                                                                              
    Get:3 http://http.kali.org kali Release.gpg [836 B]                                                          
    Ign http://dl.google.com stable/main Translation-en                                                    
    Hit http://ppa.launchpad.net lucid/main amd64 Packages                
    Get:4 http://security.kali.org kali/updates Release.gpg [836 B]       
    Get:5 http://http.kali.org kali Release [21.1 kB]                                
    Err http://http.kali.org kali Release                                            
      
    Get:6 http://security.kali.org kali/updates Release [11.0 kB]            
    Err http://security.kali.org kali/updates Release          
      
    Ign http://ppa.launchpad.net lucid/main Translation-en_US
    Ign http://ppa.launchpad.net lucid/main Translation-en
    Fetched 2,511 B in 2s (922 B/s)
    Reading package lists... Done
    W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repo.kali.org kali-bleeding-edge Release: The following signatures were invalid: KEYEXPIRED 1425567400 KEYEXPIRED 1425567400 KEYEXPIRED 1425567400
    
    W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://http.kali.org kali Release: The following signatures were invalid: KEYEXPIRED 1425567400 KEYEXPIRED 1425567400 KEYEXPIRED 1425567400
    
    W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://security.kali.org kali/updates Release: The following signatures were invalid: KEYEXPIRED 1425567400 KEYEXPIRED 1425567400 KEYEXPIRED 1425567400
    
    W: Failed to fetch http://repo.kali.org/kali/dists/kali-bleeding-edge/Release  
    
    W: Failed to fetch http://http.kali.org/kali/dists/kali/Release  
    
    W: Failed to fetch http://security.kali.org/kali-security/dists/kali/updates/Release  
    
    W: Some index files failed to download. They have been ignored, or old ones used instead.
    
    XXX@kali:~$ gpg --list-keys 
    /home/XXX/.gnupg/pubring.gpg
    ---------------------------------
    
    [snip]
    
    pub   4096R/7D8D0BF6 2012-03-05 [expires: 2018-02-02]
    uid                  Kali Linux Repository <devel@kali.org>
    sub   4096R/FC0D0DCB 2012-03-05 [expires: 2018-02-02]
    
    XXX@kali:~$ cat /etc/apt/sources.list
    # 
    
    # deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot amd64 LIVE/INSTALL Binary 20130905-07:57]/ kali contrib main non-free
    
    deb http://http.kali.org/kali kali main non-free contrib
    deb-src http://http.kali.org/kali kali main non-free contrib
    
    ## Security updates
    deb http://security.kali.org/kali-security kali/updates main contrib non-free
    
    # Bleeding Edge 
    deb http://repo.kali.org/kali kali-bleeding-edge main
    
    # XXX added this block on 05April2014 ---> NOTE 3-5-2015 commenting the line below out does not help my apt-get upgrade issue!!!
    # Repository for tlp power management
    deb http://ppa.launchpad.net/linrunner/tlp/ubuntu lucid main
    Any help would be greatly appreciated. I would like to upgrade to 1.1.0 as soon as possible on this laptop. Cheers.

  2. #2
    you need to import your key into your apt-keyring. You can inspect the apt-keyring with »apt-key list«
    This should fix your issue:
    apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6

    Cheers, Ben

  3. #3
    If you have an old version of kali-archive-keyring then you will get these errors. Most Kali users who regularly update their system should have already installed the updated package and will not see this error. To update your kali-archive-keyring package type:

    Code:
    rm -rf /var/lib/apt/lists
    apt-get update 
    apt-get install kali-archive-keyring

  4. #4
    Junior Member
    Join Date
    Mar 2015
    Posts
    3

    Thank you, Ben -- that worked

    Quote Originally Posted by e3DGwUhHo87AbiCV View Post
    you need to import your key into your apt-keyring. You can inspect the apt-keyring with »apt-key list«
    This should fix your issue:
    apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6

    Cheers, Ben
    Thanks. I didn't realize that I needed to update the apt-keyring. Can I delete the Kali key from my GPG keyring? (not that it is taking up much space, just curious.) I'll read some more about apt package signatures.

    I'm updating now. Best regards, Jeff

  5. #5
    Junior Member
    Join Date
    Mar 2013
    Posts
    18
    Quote Originally Posted by muts View Post
    If you have an old version of kali-archive-keyring then you will get these errors. Most Kali users who regularly update their system should have already installed the updated package and will not see this error. To update your kali-archive-keyring package type:

    Code:
    rm -rf /var/lib/apt/lists
    apt-get update 
    apt-get install kali-archive-keyring

    Awesome. This totally worked for me! :-) Thank you!

  6. #6
    Junior Member
    Join Date
    Aug 2013
    Posts
    24
    This isn't working for me or I'm doing something wrong.

    These are my key related errors:

    Reading package lists... Done
    W: GPG error: http://http.kali.org kali Release: The following signatures were invalid: KEYEXPIRED 1425567400 KEYEXPIRED 1425567400 KEYEXPIRED 1425567400
    W: GPG error: http://security.kali.org kali/updates Release: The following signatures were invalid: KEYEXPIRED 1425567400 KEYEXPIRED 1425567400 KEYEXPIRED 1425567400




    # apt-key list
    /etc/apt/trusted.gpg.d//debian-archive-squeeze-automatic.gpg
    ------------------------------------------------------------
    pub 4096R/473041FA 2010-08-27 [expires: 2018-03-05]
    uid Debian Archive Automatic Signing Key (6.0/squeeze) <ftpmaster@debian.org>

    /etc/apt/trusted.gpg.d//debian-archive-squeeze-stable.gpg
    ---------------------------------------------------------
    pub 4096R/B98321F9 2010-08-07 [expires: 2017-08-05]
    uid Squeeze Stable Release Key <debian-release@lists.debian.org>

    /etc/apt/trusted.gpg.d//debian-archive-wheezy-automatic.gpg
    -----------------------------------------------------------
    pub 4096R/46925553 2012-04-27 [expires: 2020-04-25]
    uid Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org>

    /etc/apt/trusted.gpg.d//debian-archive-wheezy-stable.gpg
    --------------------------------------------------------
    pub 4096R/65FFB764 2012-05-08 [expires: 2019-05-07]
    uid Wheezy Stable Release Key <debian-release@lists.debian.org>

    /etc/apt/trusted.gpg.d//kali-archive-keyring.gpg
    ------------------------------------------------
    pub 4096R/7D8D0BF6 2012-03-05 [expired: 2015-03-05]
    uid Kali Linux Repository <devel@kali.org>





    I tried this:


    # apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 473041FA
    Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.0pPCV6QVXR --trustdb-name /etc/apt//trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d//debian-archive-squeeze-automatic.gpg --keyring /etc/apt/trusted.gpg.d//debian-archive-squeeze-stable.gpg --keyring /etc/apt/trusted.gpg.d//debian-archive-wheezy-automatic.gpg --keyring /etc/apt/trusted.gpg.d//debian-archive-wheezy-stable.gpg --keyring /etc/apt/trusted.gpg.d//kali-archive-keyring.gpg --keyserver hkp://keys.gnupg.net --recv-keys 473041FA
    gpg: requesting key 473041FA from hkp server keys.gnupg.net
    gpg: key 473041FA: "Debian Archive Automatic Signing Key (6.0/squeeze) <ftpmaster@debian.org>" not changed
    gpg: Total number processed: 1
    gpg: unchanged: 1



    and then tried apt-get update , then I tried all the other keys mentioned above (B98321F9, 46925553, etc)



    I also tried:

    rm -rf /var/lib/apt/lists
    apt-get update



    at the 'apt-get update' it's failing again still:


    (gdbus call:4673): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed
    **
    GLib-GIO:ERROR:/build/buildd-glib2.0_2.33.12+really2.32.4-5-i386-eISom6/glib2.0-2.33.12+really2.32.4/./gio/gdbusconnection.c:6764:get_uninitialized_connectio n: assertion failed: (ret != NULL)
    Aborted
    Reading package lists... Done
    W: GPG error: http://http.kali.org kali Release: The following signatures were invalid: KEYEXPIRED 1425567400 KEYEXPIRED 1425567400 KEYEXPIRED 1425567400
    W: GPG error: http://security.kali.org kali/updates Release: The following signatures were invalid: KEYEXPIRED 1425567400 KEYEXPIRED 1425567400 KEYEXPIRED 1425567400





    the apt-get install kali-archive-keyring part is failing with:


    # apt-get install kali-archive-keyring
    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:
    glib-networking : Depends: libglib2.0-0 (>= 2.41.3) but 2.33.12+really2.32.4-5 is to be installed
    glib-networking-services : Depends: libglib2.0-0 (>= 2.41.3) but 2.33.12+really2.32.4-5 is to be installed
    gnome-themes-standard : Depends: libglib2.0-0 (>= 2.37.3) but 2.33.12+really2.32.4-5 is to be installed
    ...etc




    Not sure where to go from here.


    Thanks

  7. #7
    Junior Member
    Join Date
    Mar 2015
    Posts
    1
    Not good at English.
    I also have the same problem,and I have try $apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6,
    but it still didn't work.

    gpg: requesting key 7D8D0BF6 from hkp server keys.gnupg.net
    gpg: key 7D8D0BF6: "Kali Linux Repository <devel@kali.org>" 29 new signatures
    gpg: no ultimately trusted keys found
    gpg: Total number processed: 1
    gpg: new signatures: 29

    When I try this $apt-get update,
    W: Duplicate sources.list entry http://http.kali.org/kali/ kali/main amd64 Packages (/var/lib/apt/lists/http.kali.org_kali_dists_kali_main_binary-amd64_Packages)
    W: Duplicate sources.list entry http://http.kali.org/kali/ kali/contrib amd64 Packages (/var/lib/apt/lists/http.kali.org_kali_dists_kali_contrib_binary-amd64_Packages)
    W: Duplicate sources.list entry http://http.kali.org/kali/ kali/non-free amd64 Packages (/var/lib/apt/lists/http.kali.org_kali_dists_kali_non-free_binary-amd64_Packages)

    So,how can i do next?

  8. #8
    Junior Member
    Join Date
    Aug 2013
    Posts
    24
    I couldn't find a solution, I ended up doing a new installation.

  9. #9
    Junior Member
    Join Date
    Apr 2015
    Posts
    1
    Following one step will resolve your problem!
    apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6
    The reason is that 7D8D0BF6 is the new public key of kali linux, yours is out of date. Please execute the above step and then run apt-get update, it will work.

    Quote Originally Posted by natv View Post
    This isn't working for me or I'm doing something wrong.

    These are my key related errors:

    Reading package lists... Done
    W: GPG error: http://http.kali.org kali Release: The following signatures were invalid: KEYEXPIRED 1425567400 KEYEXPIRED 1425567400 KEYEXPIRED 1425567400
    W: GPG error: http://security.kali.org kali/updates Release: The following signatures were invalid: KEYEXPIRED 1425567400 KEYEXPIRED 1425567400 KEYEXPIRED 1425567400




    # apt-key list
    /etc/apt/trusted.gpg.d//debian-archive-squeeze-automatic.gpg
    ------------------------------------------------------------
    pub 4096R/473041FA 2010-08-27 [expires: 2018-03-05]
    uid Debian Archive Automatic Signing Key (6.0/squeeze) <ftpmaster@debian.org>

    /etc/apt/trusted.gpg.d//debian-archive-squeeze-stable.gpg
    ---------------------------------------------------------
    pub 4096R/B98321F9 2010-08-07 [expires: 2017-08-05]
    uid Squeeze Stable Release Key <debian-release@lists.debian.org>

    /etc/apt/trusted.gpg.d//debian-archive-wheezy-automatic.gpg
    -----------------------------------------------------------
    pub 4096R/46925553 2012-04-27 [expires: 2020-04-25]
    uid Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org>

    /etc/apt/trusted.gpg.d//debian-archive-wheezy-stable.gpg
    --------------------------------------------------------
    pub 4096R/65FFB764 2012-05-08 [expires: 2019-05-07]
    uid Wheezy Stable Release Key <debian-release@lists.debian.org>

    /etc/apt/trusted.gpg.d//kali-archive-keyring.gpg
    ------------------------------------------------
    pub 4096R/7D8D0BF6 2012-03-05 [expired: 2015-03-05]
    uid Kali Linux Repository <devel@kali.org>





    I tried this:


    # apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 473041FA
    Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.0pPCV6QVXR --trustdb-name /etc/apt//trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d//debian-archive-squeeze-automatic.gpg --keyring /etc/apt/trusted.gpg.d//debian-archive-squeeze-stable.gpg --keyring /etc/apt/trusted.gpg.d//debian-archive-wheezy-automatic.gpg --keyring /etc/apt/trusted.gpg.d//debian-archive-wheezy-stable.gpg --keyring /etc/apt/trusted.gpg.d//kali-archive-keyring.gpg --keyserver hkp://keys.gnupg.net --recv-keys 473041FA
    gpg: requesting key 473041FA from hkp server keys.gnupg.net
    gpg: key 473041FA: "Debian Archive Automatic Signing Key (6.0/squeeze) <ftpmaster@debian.org>" not changed
    gpg: Total number processed: 1
    gpg: unchanged: 1



    and then tried apt-get update , then I tried all the other keys mentioned above (B98321F9, 46925553, etc)



    I also tried:

    rm -rf /var/lib/apt/lists
    apt-get update



    at the 'apt-get update' it's failing again still:


    (gdbus call:4673): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed
    **
    GLib-GIO:ERROR:/build/buildd-glib2.0_2.33.12+really2.32.4-5-i386-eISom6/glib2.0-2.33.12+really2.32.4/./gio/gdbusconnection.c:6764:get_uninitialized_connectio n: assertion failed: (ret != NULL)
    Aborted
    Reading package lists... Done
    W: GPG error: http://http.kali.org kali Release: The following signatures were invalid: KEYEXPIRED 1425567400 KEYEXPIRED 1425567400 KEYEXPIRED 1425567400
    W: GPG error: http://security.kali.org kali/updates Release: The following signatures were invalid: KEYEXPIRED 1425567400 KEYEXPIRED 1425567400 KEYEXPIRED 1425567400





    the apt-get install kali-archive-keyring part is failing with:


    # apt-get install kali-archive-keyring
    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:
    glib-networking : Depends: libglib2.0-0 (>= 2.41.3) but 2.33.12+really2.32.4-5 is to be installed
    glib-networking-services : Depends: libglib2.0-0 (>= 2.41.3) but 2.33.12+really2.32.4-5 is to be installed
    gnome-themes-standard : Depends: libglib2.0-0 (>= 2.37.3) but 2.33.12+really2.32.4-5 is to be installed
    ...etc




    Not sure where to go from here.


    Thanks

  10. #10
    Junior Member
    Join Date
    Apr 2015
    Location
    Paraguay
    Posts
    3
    Hi

    thanks It worked for me. The GPG signatures where out of date.
    Allthoug I mainly use Kali on a notebook. for testing purposes I have it also installed in a VM. Which I will need to update more frequently

Posting Permissions

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