You are not logged in.
The issue:
# 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.
Unfortunately non of the suggested solutions have worked for me.
https://bbs.archlinux.org/viewtopic.php?id=190380 (delete and rebuild files)
https://bbs.archlinux.org/viewtopic.php … 9#p1501589 (delete and rebuild files)
https://wiki.archlinux.org/index.php/Pa … ge_signing
I still get the keyserver refresh failed error, even though running the command suggest command does not show errors.
#dirmngr < /dev/null
#dirmngr[7275.0]: permanently loaded certificates: 0
dirmngr[7275.0]: runtime cached certificates: 0
# Home: ~/.gnupg
# Config: [none]
OK Dirmngr 2.1.8 at your service
After running the above command the file "S.dirmngr" is not existing in /root/.gnupg
[root@localhost .gnupg]# ls
dirmngr-cache.d dirmngr_ldapservers.conf gpg.conf pubring.kbx
Edit:
When I create the S.dirmngr file (as root #) using touch it vanishes from the location /root/.gnupg/ after I run pacman-key --refresh-keys.
[root@localhost .gnupg]# touch S.dirmngr
[root@localhost .gnupg]# ls
dirmngr-cache.d dirmngr_ldapservers.conf gpg.conf pubring.kbx S.dirmngr
[root@localhost .gnupg]# 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.
[root@localhost .gnupg]# ls
dirmngr-cache.d dirmngr_ldapservers.conf gpg.conf pubring.kbx
How can I resolve this issue?
Unfortunately the keyserver refresh failure persists
Thank you for your help.
Last edited by Klagor (2015-10-18 11:09:59)
Offline
Try:
Use 'su' and ensure the file and directory of '/root/.gnupg/S.dirmngr' exists. I just mkdir and touch.
Last edited by frank604 (2015-10-17 12:25:29)
Offline
When I create the S.dirmngr file (as root #) using touch it vanishes from the location /root/.gnupg/ after I run pacman-key --refresh-keys.
That's quite normal: that files is created automatically by dirmngr and is deleted when the program exits. First of all, make sure no instances of dirmngr and gpg-agent are running: if necessary kill them. Then try to run the following command manually
# dirmngr --homedir "/etc/pacman.d/gnupg/" -vvv --daemon &> ~/dirmngr.log
# gpg --homedir "/etc/pacman.d/gnupg/" --no-permission-warning --refresh-keys -vvv
and post the output and the content of dirmngr.log
Offline
Hello mauritiusdadd thank you very much for your prompt reply.
I followed your recommendation:
Here is the dirmngr.log:
dirmngr[2240.0]: error opening '/etc/pacman.d/gnupg//ldapservers.conf': No such file or directory
dirmngr[2240.0]: error binding socket to '/root/.gnupg/S.dirmngr': Operation not permitted
Checking the location confirmed //ldapservs.conf is missing
[root@localhost gnupg]# pwd
/etc/pacman.d/gnupg
[root@localhost gnupg]# ls
gpg.conf private-keys-v1.d pubring.gpg~ trustdb.gpg
openpgp-revocs.d pubring.gpg secring.gpg
I tried to research but did not find the answer could you please explain why are there "//" in front of lapservers.conf, is there an empty directory needed?
Adding just the "/ldapservers.conf" file via touch command did not solve the issue.
Help is most appreciated.
Last edited by Klagor (2015-10-18 02:48:44)
Offline
I was having that error last night, after twelve or more hours of configuring my box exactly as I want it, I don't remember how I fixed it. =/
I think I just made /root/.gnupg as root and didn't even create S.dirmngr (though I may have) and issued the key refresh command, gnupg wasn't creating its
initial configuration folder to drop its files in.
Pretty sure creating the files solved it in my case, in my case S.dirmngr still existed after refresh though, though it may be deleting
the file during the key refresh, and recreating it when it completes successfully (not sure).
I wish I could be of more help but I've been up to long, my memory is hazy and all the coffee isn't helping at all,
I remember (I think it was something I skimmed over trying to read the documentation too fast or just not paying attention to the top forum post on your list.
Either that or dirmngr_ldapservers.conf was missing and it wasn't creating it.
Last edited by Dreyeth (2015-10-18 00:15:23)
Offline
Hello Dreyeth, Thanks for your note. At least the problem can be fixed. It would be great if a smart person could work out the cause for this issue and find the appropriate solution as well.
Just as information: I created the dirmngr_ldapservers.conf in /root/.gnupg. However the pacman-key --refresh-keys did not work without error as above stated.
Last edited by Klagor (2015-10-18 02:48:10)
Offline
Just as information: I created the dirmngr_ldapservers.conf in /root/.gnupg. However the pacman-key --refresh-keys did not work without error as above stated.
dirmngr_ldapservers.conf is not needed and dirmngr should work fine without that file. The actual problem is that dirmngr cannot create the socket file because it is an Operation not permitted, so you should find out why it has not the permission to create /root/.gnupg/S.dirmngr: can you post the output also of the following command?
# ls -l $(which dirmngr)
# ls -l $(which gpg)
# dirmngr --version
# gpg --version
You should provide us also some more information about this issue, for example:
Why did you need to refresh the keyring? Usually this operation is done automatically by pacman when it is needed, so please describe the problem that led you to do the refresh (maybe it is correlated to this one).
By any chance is this a live system, like the installation ISO? Are you running arch on a physical machine or inside a VM?
Is your system fully up to date?
What type of filesystem has the partition which contains the directory /root/.gnupg
Is there any space left on that partition?
What are the permissions on /root and /root/.gnupg?
PS:
I tried to research but did not find the answer could you please explain why are there "//" in front of lapservers.conf, is there an empty directory needed?
Probably is it is due to an oversight in the output formatting, however a double slash as a path separator is equivalent to a single slash, see: http://unix.stackexchange.com/questions … e-username
PPS:
in my case S.dirmngr still existed after refresh though, though it may be deleting the file during the key refresh, and recreating it when it completes successfully (not sure).
Yeah, it's because dirmngr was already running after the key refresh (you can check this using ps -Af | grep dirmngr). As I said in my previous post, the file is created and deleted automatically by dirmngr so if you kill the running instance then that file should disappear
Last edited by mauritiusdadd (2015-10-18 06:27:30)
Offline
Hello Mauritiusdadd I very much appreciate your time and effort you put in re this issue.
I followed your instructions please see below answers.
[[root@localhost .gnupg]# ls -l $(which dirmngr)
-rwxr-xr-x 1 root root 404760 Sep 30 10:37 /usr/bin/dirmngr
[root@localhost .gnupg]# ^C
[root@localhost .gnupg]# ls -l $(which gpg)
lrwxrwxrwx 1 root root 4 Sep 30 10:37 /usr/bin/gpg -> gpg2
[root@localhost .gnupg]# dirmngr --version
dirmngr (GnuPG) 2.1.8
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
[root@localhost .gnupg]# gpg --version
gpg (GnuPG) 2.1.8
libgcrypt 1.6.4
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
To 1: I was running just wanted to upgrade my system as I regularly do. I had no issues at all with keys or upgrading before.
sudo pacman -Syyu
The error received was various files are corrupted. Do you want to delete (Y/n) I selected Y, however no files where updated.
:: Proceed with installation? [Y/n] y
:: Retrieving packages ...
gtk-update-icon-cach... 287.0 B 0.00B/s 00:00 [##########################] 100%
at-spi2-core-2.18.1-... 287.0 B 0.00B/s 00:00 [##########################] 100%
gtk3-3.18.2-1-x86_64 287.0 B 0.00B/s 00:00 [##########################] 100%
clutter-1.24.2-1-x86_64 287.0 B 0.00B/s 00:00 [##########################] 100%
clutter-gtk-1.6.6-1-... 287.0 B 0.00B/s 00:00 [##########################] 100%
yelp-3.18.1-1-x86_64 287.0 B 0.00B/s 00:00 [##########################] 100%
(359/359) checking keys in keyring [##########################] 100%
(359/359) checking package integrity [##########################] 100%
:: File /var/cache/pacman/pkg/gtk-update-icon-cache-3.18.2-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (checksum)).
Do you want to delete it? [Y/n] Y
:: File /var/cache/pacman/pkg/at-spi2-core-2.18.1-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (checksum)).
Do you want to delete it? [Y/n] Y
:: File /var/cache/pacman/pkg/gtk3-3.18.2-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (checksum)).
Do you want to delete it? [Y/n] Y
:: File /var/cache/pacman/pkg/clutter-1.24.2-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (checksum)).
Do you want to delete it? [Y/n] Y
:: File /var/cache/pacman/pkg/clutter-gtk-1.6.6-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (checksum)).
Do you want to delete it? [Y/n] Y
:: File /var/cache/pacman/pkg/yelp-3.18.1-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (checksum)).
Do you want to delete it? [Y/n] Y
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.
Researching the topic re corrupted files I was pointed towards "pacman-key --refresh" were I am stuck.
To 2: I am running arch linux as my only operating system installed on a notebook.
To 3: It would be up to date until the upgrade error occurred 3 days ago.
To 4: /root/.gnupg are in /dev/sda4 as below linux ext4,
[root@localhost .gnupg]# df
Filesystem 1K-blocks Used Available Use% Mounted on
dev 4026756 0 4026756 0% /dev
run 4029492 780 4028712 1% /run
/dev/sda1 44600408 40955448 1356328 97% /
tmpfs 4029492 83796 3945696 3% /dev/shm
tmpfs 4029492 0 4029492 0% /sys/fs/cgroup
tmpfs 4029492 1116 4028376 1% /tmp
/dev/sda4 2789032 38612 2750420 2% /root
/dev/sda3 424989028 253155336 150222380 63% /home
tmpfs 805900 88 805812 1% /run/user/1000
To 5: As above plenty of space left, only 2% in use.
To 6:
The permission for /root:
[root@localhost ~]# ls -l
total 25828
drwxr-xr-x 2 root root 4096 Jun 3 23:15 Desktop
-rwxr-xr-x 1 root root 189 Oct 18 08:48 dirmngr1.log
-rwxr-xr-x 1 root root 1 Oct 17 19:15 dirmngr_ldapservers.conf
-rwxr-xr-x 1 root root 189 Oct 18 08:50 dirmngr.log
drwxr-xr-x 4 root root 4096 May 31 2014 EFI
drwxr-xr-x 2 root root 4096 Nov 11 2014 grub
-rwxr-xr-x 1 root root 18617401 Oct 2 07:24 initramfs-linux-fallback.img
-rwxr-xr-x 1 root root 3545461 Oct 2 07:24 initramfs-linux.img
drwxr-xr-x 3 root root 4096 May 31 2014 loader
drwxr-xr-x 2 root root 4096 Mar 28 2015 syslinux
-rwxr-xr-x 1 root root 4243648 Sep 30 06:22 vmlinuz-linux
The permission for /root/.gnupg:
[root@localhost .gnupg]# ls -l
total 16
drwxr-xr-x 2 root root 4096 Oct 17 19:10 dirmngr-cache.d
-rwxr-xr-x 1 root root 0 Oct 17 19:20 dirmngr_ldapservers.conf
-rwxr-xr-x 1 root root 7682 Oct 17 19:09 gpg.conf
-rwxr-xr-x 1 root root 32 Oct 17 19:09 pubring.kbx
Again thank you very much for looking into this.
Last edited by Klagor (2015-10-18 07:13:10)
Offline
You're welcome, and thank you for answering my questions too. However I was actually requesting the output of
# ls -ld /root
# ls -ld /root/.gnupg
The only strange thing I noticed is that you do not have a separate boot partition, but your /root is on a separate partition and contains some files and directories which usually reside in /boot (like the initramfs images and the EFI directory). Can you confirm that you did not mount your boot partition under /root by accident? Can you post the content of your /etc/ftstab?
--edit: corrected the ls commads
Last edited by mauritiusdadd (2015-10-18 07:51:45)
Offline
The output for ls -ld/root is:
[root@localhost etc]# ls -ld /root/
drwxr-xr-x 25 root root 4096 Jan 1 1970 /root/
The output for ls ld-/root/.gnupg is:
[root@localhost etc]# ls -ld /root/.gnupg
drwxr-xr-x 3 root root 4096 Oct 17 23:34 /root/.gnupg
Here is the content of /etc/fstab
BTW: I am using gummiboot as the bootloader for the efi image you can see below
# /dev/sda1
UUID=83363ed0-a43a-43a3-bc9b-c8d496a20c28 / ext4 rw,r$
# /dev/sda3
UUID=ba31294e-6111-41a0-a8c2-40dd052a3f44 /home ext4 rw,r$
# /dev/sda4
UUID=E56D-3B62 /root vfat rw,relatime,fmask=0022,dmask$
# /dev/sda4
UUID=E56D-3B62 /boot vfat rw,relatime,fmask=0022,dmask$
Last edited by Klagor (2015-10-18 08:02:26)
Offline
Ok, there is a problem in your fstab: you tried to mount the same partition under two different mount points (/boot and /root) but obviously only the first one is accepted. You should really comment out/delete the following line
UUID=E56D-3B62 /root vfat rw,relatime,fmask=0022,dmask$
--edit: also, you should make sure to back-up the files which are currently in /boot, and since you are going to mount the ESP partition under /boot, you should make sure that the directory does not contain any file. Most probably you have also to reinstall the kernels and the initramfs in the boot partition... in each case, it would be better if download the latest Arch installation ISO and make a bootable CD/USB.
Last edited by mauritiusdadd (2015-10-18 08:09:00)
Offline
I removed the fstab /root mount point
UUID=E56D-3B62 /root vfat rw,relatime,fmask=0022,dmask$
unfortunately both errors persist:
a) pacman -Syyu corrupt files, delete Y, no update
b) pacman-key --refresh, S.dirmngr error
I installed the linux kernel without errors
[root@localhost etc]# sudo pacman - S linux
error: argument '-' specified without input on stdin
[root@localhost etc]# sudo pacman -S linux
resolving dependencies...
looking for conflicting packages...
Packages (1) linux-4.2.3-1
Total Installed Size: 73.53 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) upgrading linux [##########################] 100%
>>> Updating module dependencies. Please wait ...
>>> Generating initial ramdisk, using mkinitcpio. Please wait...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 4.2.3-1-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 4.2.3-1-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
Last edited by Klagor (2015-10-18 08:21:49)
Offline
I removed the fstab /root mount point
UUID=E56D-3B62 /root vfat rw,relatime,fmask=0022,dmask$
unfortunately both errors persist
Did you remember to reboot your machine? What is now the output of
# ls -ld /root
# ls -la /root
# lsblk --fs
Offline
Meanwhile I deleted all files that were stated corrupt based on dependencies all gnome related files were deleted.
After that I could update the system with pacman -Syu
However most of my applications were uninstalled as well except KDE / AUR once. Trying to reinstall those I got the same corrupt files error.
Trying to pacman-key --refresh has the same errors.
[root@localhost gas1]# ls -ld /root
drwxr-x--- 10 root root 4096 Feb 2 2014 /root
[root@localhost gas1]# ls -la /root
total 48
drwxr-x--- 10 root root 4096 Feb 2 2014 .
drwxr-xr-x 19 root root 4096 Oct 18 08:28 ..
drwxr-x--- 2 root root 4096 Sep 14 2013 .android
-rw------- 1 root root 6497 May 31 2014 .bash_history
drwxr-xr-x 4 root root 4096 Dec 12 2013 .cache
drwxr-xr-x 8 root root 4096 Feb 1 2014 .config
drwx------ 3 root root 4096 Jan 9 2014 .dbus
drwxr-xr-x 2 root root 4096 Jul 16 2013 Desktop
drwx------ 3 root root 4096 Feb 2 2014 .kde
drwxr-xr-x 3 root root 4096 Jan 9 2014 .local
drwx------ 3 root root 4096 Jan 9 2014 .thumbnails
-rw------- 1 root root 0 Nov 22 2013 .Xauthority
[root@localhost gas1]# lsblk --fs
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1 ext4 83363ed0-a43a-43a3-bc9b-c8d496a20c28 /
├─sda2 swap a93cac48-bb14-4364-bfee-bf8aec11f6e2 [SWAP]
├─sda3 ext4 ba31294e-6111-41a0-a8c2-40dd052a3f44 /home
└─sda4 vfat E56D-3B62 /boot
sdb isw_raid_member
sdc
Last edited by Klagor (2015-10-18 10:07:35)
Offline
Ok, now everything seems normal, however the directory /root/.gnupg is still missing so you should run the following command
# pacman-key --init
or manually create the directory.
Offline
[SOLVED]
pacman-key --refresh works -fantastic. Thank you so much
The update of packages (seems gnome related) still creates errors:
File /var/cache/pacman/pkg/gtk3-3.18.2-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (checksum)).
Discussed reason: mirror seems corrupted
https://bugs.archlinux.org/task/46729
Last edited by Klagor (2015-10-18 10:33:34)
Offline
Glad to hear the the refresh works now!
The broken mirror could be indeed the cause of the "corrupted package" issue, just try to use another mirror.
However, please mark the thread as [SOLVED] by editing your first post and prepending it to the title
Offline