• help. can't update. keys


    I was having an issue with invalid keys with two different packages. I thought it might be an issue with my keys not being up-to-date.

    I followed the steps in this post as Arch recommends its users do, maybe it doesn’t apply to antergos users. and was in https://bbs.archlinux.org/viewtopic.php?id=191279

    basically running:

    rm -fr /etc/pacman.d/gnupg
    sudo pacman-key --init
    sudo pacman-key --populate archlinux
    sudo pacman -Sy archlinux-keyring
    sudo pacman -Su
    dirmngr </dev/null

    now receive the errors as follows:

    :: Retrieving packages …
    libdrm-2.4.63-1-x86_64 177.8 KiB 490K/s 00:00 [####################################################] 100%
    firefox-40.0.2-1-x86_64 40.8 MiB 3.22M/s 00:13 [####################################################] 100%
    lib32-libdrm-2.4.63-1-x86_64 119.7 KiB 1119K/s 00:00 [####################################################] 100%
    (7/7) checking keys in keyring [####################################################] 100%
    downloading required keys…
    error: key “CDBD406AA1AA7A1D” could not be looked up remotely
    error: required key missing from keyring
    error: failed to commit transaction (unexpected error)
    Errors occurred, no packages were upgraded.
    [[email protected] ~]$ pacman-key --refresh-keys
    ==> ERROR: pacman-key needs to be run as root for this operation.
    [[email protected] ~]$ sudo pacman-key --refresh-keys
    gpg: refreshing 82 keys from hkp://pool.sks-keyservers.net
    gpg: connecting dirmngr at ‘/root/.gnupg/S.dirmngr’ failed: IPC connect call failed
    gpg: keyserver refresh failed: No dirmngr
    ==> ERROR: A specified local key could not be updated from a keyserver.

    how do I fix this?

  • @λlτεrηιτγ said:

    …how do I fix this?

    Your commands are good, but not complete. Try to apply these ones.

    They are completely harmless, for any working system. May be executed at any time. Help to keep Antergos keys in good health.

  • thank you my friend!! All fresh now and that was easy. Would you mind explaining what these commands do? You can keep it simple. I may like to save the list of commands some where n perhaps share them where they might be found useful. I have set up a few Antergos systems for people, and will have to check if I may need to run them, or if my incompletion of the commands messed up mine alone.

    ah I think someone explained them:

    “clean your cache, populate your keyring and download the new one.”

    @just said:

    They are completely harmless, for any working system. May be executed at any time. Help to keep Antergos keys in good health.

    Excellent thank you!!

    @just said:

    sudo pacman -Scc  <-- reply with explicit y to the first question
    sudo pacman -Syy
    sudo pacman -S haveged
    sudo haveged -w 1024
    sudo pacman-key --init
    sudo pacman-key --populate archlinux antergos
    sudo pkill haveged
    sudo pacman -S antergos-keyring
    sudo pacman -Syu
    

    Or, if there are packages from AUR in use, instead of the last command use

    yaourt -Syua
  • @λlτεrηιτγ Thank you for marking the topic as [Solved].

  • FYI not sure if it is important but the step "sudo pacman -S antergos-keyring"
    does not work.

    the proper command is sudo pacman -s (lowercase) and putting “antergos-keyring” after, returns “invalid session id”

    idk what the proper session id input would be

  • @λlτεrηιτγ Thanks for the information.

    Can’t reproduce the problem here. Reinstalling antergos-keyring works without a problem:

    $ sudo pacman -S antergos-keyring
    [sudo] password for just: *********
    warning: antergos-keyring-20150806-1 is up to date -- reinstalling
    resolving dependencies...
    looking for conflicting packages...
    
    Packages (1) antergos-keyring-20150806-1
    
    Total Installed Size:  0.04 MiB
    Net Upgrade Size:      0.00 MiB
    
    :: Proceed with installation? [Y/n] Y
    (1/1) checking keys in keyring                    [###########] 100%
    (1/1) checking package integrity                  [###########] 100%
    (1/1) loading package files                       [###########] 100%
    (1/1) checking for file conflicts                 [###########] 100%
    (1/1) checking available disk space               [###########] 100%
    (1/1) reinstalling antergos-keyring               [###########] 100%
    ==> Appending keys from antergos.gpg...
    ==> Locally signing trusted keys in keyring...
      -> Locally signing key 24B445614FAC071891EDCE49CDBD406AA1AA7A1D...
      -> Locally signing key D95436A2E18DA94A72B1A5E2AEA529BF122902E5...
      -> Locally signing key EC3B5CE8FE98DFDF51B705536D6DDA3D2A45C7B4...
    ==> Importing owner trust values...
    ==> Updating trust database...
    gpg: next trustdb check due at 2016-01-22
    $ 
    
  • @λlτεrηιτγ :

    Try redownloading your databases and updating your system:
    sudo pacman -Syyuu

    And then, install antergos-keyring:
    sudo pacman -S antergos-keyring

    It should work, if it doesn’t maybe there’s something wrong with the mirror you’re using…

    Cheers!

  • ah that worked. thanks!

Posts 8Views 4089
Log in to reply