[Solved] Pacman -Su stuck at downloading required keys

With updating my system (with pacman -Syu), pacman seems stuck with the last operation "Checking keys in the keyring". What I see is:
(167/167) checking keys in keyring                                 [####################################] 100%
downloading required keys...
After 20 minutes or so I killed the process and initialized the keyring from scratch, following the instructions on the wiki, hoping this would give some clues. Unfortunately, this problem still persists.
Any suggestions on what may be the problem, or how to fix it?
Last edited by Floris (2015-02-12 14:04:31)

Thanks for that hint. The debug showed that it was fetching a key remotely, and then nothing. With that, I was able to find this similar thread on this forum. I followed the suggested procedure:
mauritiusdadd wrote:# rm -R /etc/pacman.d/gnupg/
# rm -R /root/.gnupg/  # only if the directory exists
# gpg --refresh-keys
# pacman-key --init && pacman-key --populate
# pacman-key --refresh-keys
and it solved the stall. I think that the second instruction really helped, because I did rebuild the keychain multiple times today. Apparently something was cached in the .gnupg folder that might have interfered.
Thanks!
Last edited by Floris (2015-02-12 16:54:23)

Similar Messages

  • [SOLVED] Pacman is unable to look up keys?

    Hi there,
    I'm using Arch Linux for a while, and I'm using pacman 4.0 as well as key signing. It works without any problems, and I run system upgrades every 3 days or so.
    Today i just want to initiate the upgrade with "pacman -Syu" as usual, but pacman refuses it because it is unable to check the keys. Since it did work perfectly before, I - of course - did pacman key initialization and configured the pacman.conf properly.
    :: Synchronizing package databases...
    core is up to date
    extra is up to date
    community is up to date
    :: Starting full system upgrade...
    resolving dependencies...
    warning: dependency cycle detected:
    warning: udev will be installed before its util-linux dependency
    looking for inter-conflicts...
    Targets (25): binutils-2.22-5 coreutils-8.16-2 dhcpcd-5.5.6-1 expat-2.1.0-1
    filesystem-2012.2-4 gcc-4.7.0-3 gcc-libs-4.7.0-3 glibc-2.15-10
    gnutls-3.0.18-1 kmod-7-2 krb5-1.10.1-2 libarchive-3.0.4-1
    libltdl-2.4.2-5 libpng-1.5.10-1 libtool-2.4.2-5 linux-3.2.14-1
    linux-api-headers-3.3-1 mkinitcpio-0.8.6-2 pcmciautils-018-4
    perl-net-ssleay-1.46-1 syslinux-4.05-4 syslog-ng-3.3.4-5
    tzdata-2012c-1 udev-181-9 util-linux-2.21.1-2
    Total Installed Size: 245.35 MiB
    Net Upgrade Size: 5.96 MiB
    Proceed with installation? [Y/n] y
    (25/25) checking package integrity [######################] 100%
    error: libarchive: key "5C2E46A0F53A76ED" is unknown
    error: key "5C2E46A0F53A76ED" could not be looked up remotely
    error: failed to commit transaction (invalid or corrupted package)
    Errors occurred, no packages were upgraded.
    My pacman.conf looks like this (important parts)
    # PGP signature checking
    # NOTE: None of this will work without running `pacman-key --init` first.
    # The compiled in default is equivalent to the following line. This requires
    # you to locally sign and trust packager keys using `pacman-key` for them to be
    # considered valid.
    #SigLevel = Optional TrustedOnly
    # If you wish to check signatures but avoid local sign and trust issues, use
    # the following line. This will treat any key imported into pacman's keyring as
    # trusted.
    SigLevel = Optional TrustAll
    # For now, off by default unless you read the above.
    #SigLevel = Never
    [core]
    SigLevel = PackageRequired
    Include = /etc/pacman.d/mirrorlist
    [extra]
    SigLevel = PackageOptional
    Include = /etc/pacman.d/mirrorlist
    [community]
    SigLevel = PackageOptional
    Include = /etc/pacman.d/mirrorlist
    gpg.conf
    no-greeting
    no-permission-warning
    lock-never
    keyserver hkp://keys.gnupg.net
    keyserver-options timeout=10
    I also tried increasing the timeout and changing the keyserver to hkp://pgp.mit.edu:11371, as adviced in other threads, but no help.
    Cleaning the caches with pacman -Sc didn't help ether. I also restarted the system several times, but no success.
    Any help? Thanks!
    Last edited by silentsnake (2012-04-07 14:56:24)

    Cleaning the cache with pacman -Sc will leave the most recent downloaded version there, so delete the package manually from the cache and run pacman -Syu again.

  • [SOLVED] Pacman won't look up gpg keys

    Ever since I upgraded gnupg/gpgme today, pacman won't look up (or rather fail looking up) any missing GPG keys. Relevant part of pacman's output:
    debug: checking signature for /var/cache/pacman/pkg/privoxy-3.0.19-2-i686.pkg.tar.xz
    debug: 1 signatures returned
    debug: fingerprint: C06086337C50773E
    debug: summary: key missing
    debug: status: No public key
    debug: timestamp: 1328647189
    debug: exp_timestamp: 0
    debug: validity: unknown; reason: Success
    debug: key lookup failed, unknown key
    debug: signature is not valid
    debug: looking up key C06086337C50773E locally
    debug: key lookup failed, unknown key
    error: privoxy: key "C06086337C50773E" is unknown
    debug: looking up key C06086337C50773E remotely
    debug: key lookup failed, unknown key
    debug: looking up key 7C50773E remotely
    debug: key lookup failed, unknown key
    debug: gpg error: End of file
    error: key "C06086337C50773E" could not be looked up remotely
    error: failed to commit transaction (invalid or corrupted package (PGP signature))
    Errors occurred, no packages were upgraded.
    Failing to import the key directly through pacman, I tried
    pacman-key --recv-key C06086337C50773E
    which successfully added the key to my keyring.
    I could then install the package. I also tried switching to different keyserves, but without success.
    Everything pacman{, -key} related worked fine until the update, but I can't say for certain that it was the gnupg/gpgme update that broke something.
    Does anyone else have this issue or is there something wrong with my setup? I already thought of opening a bug report, but I want to make sure it's not my fault.
    btw: Hi, everyone :)
    Last edited by vehk (2012-03-28 07:54:28)

    This wasn't explicitly stated above, but to do the manual import with pacman-key, I had to prefix the fingerprint with 0x, as so:
    $ sudo pacman-key -r 0x5C2E46A0F53A76ED
    However, the default keyserver is giving me problems currently:
    $ sudo pacman-key -r 0x5C2E46A0F53A76ED
    Password:
    gpg: requesting key F53A76ED from hkp server keys.gnupg.net
    gpgkeys: HTTP fetch error 7: couldn't connect: End of file
    gpg: no valid OpenPGP data found.
    gpg: Total number processed: 0
    ==> ERROR: Remote key not fetched correctly from keyserver.
    So in the end, I used a different keyserver:
    sudo pacman-key -r 0x5C2E46A0F53A76ED --keyserver hkp://subkeys.pgp.net
    Hope that helps anyone else.

  • [solved] pacman no longer shows download progress of packages

    Just in the last few days, download progress is no longer shown.
    Is this by design? It's kind of annoying in any case. Searched and didn't see other comments about it.
    Last edited by yodermk (2015-02-08 23:07:30)

    https://bbs.archlinux.org/viewtopic.php?id=192604

  • [SOLVED] Fresh Install Error - Issue with PGP Key 4096R/753E0F1F

    Hello Guys,
    This is my first topic. I have done all the research in this forum and in Google for the issue, with no luck in finding a solution. I have done several Arch linux installs before on Virtual Machines and PC's all of them working properly, except for this one that I can not get to pass the install phase.
    Description of Hardware:
    HP Laptop Pavilion Entertainment PC dv2-1030us
    Athlon AMD Processor
    4 GB RAM
    300GB HD
    ATI Video Card
    Broadcom wireless Card (Default drivers Not Working)
    Wired Network Card (Working)
    I'm trying to install Arch from USB drive created from another arch machine via:
    sudo dd if=/name_of_file.iso of=/dev/sdX
    Using Arch Version:
    Current Release: 2014.08.01
    Included Kernel: 3.15.7
    ISO Size: 559.0 MB
    The above bootleable USB drive have been used to install Arch in another machine currently running it.
    After creating the partitions on the drive, namely:
    BOOT
    SWAP
    ROOT
    HOME
    And formatting them accordingly to the install guide, and having the system ready to download all the base and base-devel packages via:
    pacstrap -i /mnt base base-devel
    Right after it finishes downloading I get the following error:
    downloading required keys in keyring...
    :: Import PGP key 4096R/753E0F1F, "Anatol Pomozov <[email protected]>", created: 2014-02-04? [Y/n] y
    error: key "Anatol Pomozov <[email protected]>" could not be imported
    error: required key missing from keyring
    error: failed to commit transaction (unexpected error)
    Errors occurred, no packages were installed.
    ==> ERROR: Failed to install packages to new root
    I first ignored the error and then tried to proceed with the installation process and executed the following sequences of commands:
    genfstab -U -p /mnt >> /mnt/etc/fstab
    and then tried to chroot with:
    arch-chroot /mnt
    Then i got the following error:
    mount: mount point /mnt/etc/resolv.conf does not exist
    chroot: failed to run command "/bin/sh": No such file or directory
    Here is list of the Topics i Found in this forum that throw some light into the issue, some of the solutions I have tried with no luck at all:
    https://bbs.archlinux.org/viewtopic.php?id=185089
    https://bbs.archlinux.org/viewtopic.php?id=181057
    https://bbs.archlinux.org/viewtopic.php?id=178185
    I hope you can help find a direction where to start fixing this issue, since i feel pretty lost right now. By the way I'm a Newbie in the Arch Linux world, so there are a lot of thing that are not that obvious to me...
    Thank you in advance.
    Last edited by alejandroccs (2014-08-20 21:12:13)

    I've had the same issue with an (outdated) Arch Linux iso. As far as I am aware, it is caused by pacman's keys becoming out of date.
    I've managed to get around this before, but the exact method eludes me.
    You could try just updating the archlinux-keyring package, by refreshing pacman (pacman -Sy), then reinstalling only that package (try pacman -S archlinux-keyring).
    Then you should be able to continue as normal.
    Note that this only affects the CD filesystem in RAM - it will not persists across reboots using the CD.
    The reason why this might work is that the package archlinux-keyring might not be signed by the key you were having issues with. If it still fails, you could temporarily set the SigLevel for the core repo to 'Never', however this does disable package signing, at least until you reset the SigLevel.
    Unfortunately, I could not replicate the problem in a Qemu VM, so I'm not sure how good my method is. Hopefully, it fixes the problem.
    Here are some links that might help shed some light:
    http://calvinx.com/category/unix-linux/archlinux/
    https://wiki.archlinux.org/index.php/Pacman-key
    Hopefully this is helpful!
    pypi

  • [SOLVED] Pacman refuses to upgrade due to missing key

    Starting today, I get this error messge when trying to upgrade via pacman
    error: key "7A4E76095D8A52E4" could not be looked up remotely
    error: required key missing from keyring
    error: failed to commit transaction (unexpected error)
    Generating a fresh keyring (https://www.archlinux.org/news/gnupg-21 … n-keyring/) doesn't resolve the problem.
    Anyone else getting an error similar to this?
    Any ideas on resolving the issue?
    Last edited by ayr0 (2014-12-19 22:06:18)

    One should follow https://wiki.archlinux.org/index.php/Pa … mport_keys in case reinstalling pacman-keyring wouldn't sufice.
    Using unofficial repos? May have a sig-key, which may need to be re-added. https://wiki.archlinux.org/index.php/Un … positories
    eg for Graysky's repo-ck: https://bbs.archlinux.org/viewtopic.php … 1#p1485841

  • Itunes download gets stuck at:- Gathering Required Information, Status: Performing Installation Checks

    My Itunes was not working so I deleted it and now cannot download a new version. The download gets stuck at  Gathering Required Information, Status: Performing Installation Checks. I am trying to download 10.4 for windows. I have been trying to download this again for about a week and have deleted all apple products from my  Control Panel and temp folders. Any advice?
    Cheers
    Jo

    Deleting the .itl and rebuilding it will lose date added information. Playlists may be recovered if the .xml file is imported. A better way might have been to temporarily rename the .itl while iTunes is installed, then restore the original .itl after the fact.
    For general advice on problems installing iTunes see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • SkyDrive in Windows 8.1 RTM stuck on downloading files

    Hi,
    when I make SkyDrive's files offline on Windows 8.1 RTM, the SkyDrive never finishes (it stuck in "Downloading xxx files"). They are kept in this state forever, even after restarts and/or additional uploads.
    I have tried this on several computers several times but it always (or almost always) stuck. Number of files differs on each attempt.
    I've tried to search for a solution on the net, but have not found anything useful/working (including the App Troubleshooter, or deleting all the files and uploading again), just few notes that for some people a fix on the server side was required.
    This issue were present also in the 8.1 Preview era. Applying the RTM Rollup patches did not help.
    Would you check the server side for me or suggest how to fix it?

    Hi,
    Let’s try to redirect the skydrive folder and sync again to see what’s going on:
    1. Open regedit and find following key:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\SkyDrive
    2. Change “UserFolder” to another location.
    3. Open the SkyDrive Metro app to confirm your files and new directory.
    Then check the issue again. 
    If the issue persists, please try to reset your Windows 8.1.
    Note:Backup your personal data.
    How to restore, refresh, or reset your PC
    http://windows.microsoft.com/en-in/windows-8/restore-refresh-reset-pc
    Best regards,
    Karen Hu
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • [SOLVED] Pacman hangs at sync

    Any idea why? I got my rt73 wireless working, and was able to go on the internet with links, but synchronizing with pacman is stuck at 'Synchronizing Package Databases'.
    Is it because pacman is too old and I need to upgrade it first or what?
    Last edited by Firepower (2009-12-17 04:36:40)

    Ok. Just solved it. Had to upgrade pacman. thanks.

  • I live in NZ and just downloaded firefox because this other program i need to download requires me to have firefox3 but when i click on the other program to download its not downloading so why is that.

    I live in NZ and just downloaded firefox which was successful because this other program i need to download requires firefox3 so when i clicked on this program to download now that i have firefox its not downloading so why is that.

    Yes, you need the latest version of Flash to work with Mavericks and Safari 7.x. I'm not sure why you can't view some of the videos on YouTube but not all and I don't know which, YouTube or Safari, is suggesting a 10.xxxx version.
    Can you copy and paste the specific URL of a video that you're having problems viewing? Then I could take a look on my end and see if I notice anything funny.
    Call back...
    Clinton

  • How can I clear a song stuck in downloads?

    I am currently restoring my iPhone from an iCloud backup. It is stuck and I think one of the reasons is there are songs stuck in downloads in iTunes. The songs were downloaded by someone else and I don't know their Apple ID. Can I cancel these downloads? How?

    This is what it looks like:

  • Can't open nor delete an app because it got stuck while downloading, what can I do?

    Can't open nor delete an app because it got stuck while downloading, what can I do?

    Restart the iPad. The downloading App will dissapear
    If it was a purchased App, you'll probably have been charged for it, so it'll be worth trying to re-download.
    Let me know if this helps...

  • IOS6 stuck on downloading for 3 days!

    My wife's iPhone4S has been stuck on downloading iOS6 for 3 days now. Not having come across this issue before, I'm not sure what to do? Will a reset cause any complications at this stage?
    Help!

    Well, of course, just after posting, the update finally went through!

  • How to search in BI 7.1 query designer for the required key figures & chars

    Hi All,
         Can anyone plz tell me how to search in BI 7.1 query designer for the required key figures & characteristics. I have the query being built on a multiprovider which has many cubes.
    So, i have a huge list of key figures and characteristics. I am not able to search for the required one by the name or the technical name.
    How can we search and pick the required object from the enormous list of the Mutliprovider in the Bex Query Designer??
    Thanks
    Phani

    There is not a search feature available. You have to do an educated guess under what dimension your infoobject could be and select.

  • Photos app stucks on downloading state

    Hello!
    I upgraded to iphone 4s and entered my apple id.
    In the original photos application it started downloading photos, thenit got stuck on downloading for ever.
    now it shows "downloading x of y" and never changes.
    tried hard reset and it did not heped..
    i have 16gb version, ios 5.01
    Thanks, liran/

    Hello!
    I upgraded to iphone 4s and entered my apple id.
    In the original photos application it started downloading photos, thenit got stuck on downloading for ever.
    now it shows "downloading x of y" and never changes.
    tried hard reset and it did not heped..
    i have 16gb version, ios 5.01
    Thanks, liran/

Maybe you are looking for

  • Photoshop Cs6 is hanging when trying to work in 3D when it wasn't before

    When I first started using 3D in Photoshop it was working rather smoothly and seemed to chug along fairly fast. Then one day when I was working in it as usual and tried to perform some random action it just started hanging with the spinning blue circ

  • New iCal - where is my monthly/list view??

    What is with the new iCal??  I desperately want the old version back!  I NEED to be able to look at the whole month at a time with a scrolling list on the bottom of what is going on when I click on the day.  This particular view is now gone!  Every p

  • What version is my macbook?

    I am trying to buy a hard case online for my macbook, but i don't know what version it is and i'm worried the case won't fit! i bought it in march 2008 in Australia, the OS X is 10.5.8 but i don't know anything else! what do i search when looking for

  • How to play a dvd

    I have just brought the latest Coldplay DVD and it wont play on my iMac can anyone help please?

  • Shared Objects: clear() doesn't work!

    Hi there! With reference to thread: http://forums.adobe.com/message/4923159 It doesn't work anymore! i.e. it's impossible to delete and get rid of the identifiers which were previously written on disk... Name of the file hasn't changed. Directory whe