You are not logged in.

#1 2024-04-13 13:40:34

boomshalek
Member
Registered: 2007-10-12
Posts: 110

[Reopend] Pacman: error: keyring is not writable (returning error)

Dear all
Since about two months (maybe longer), whenever I try to update my system I get a keyring is not writable error
I have tried various ways to fix it such as
Arch Wiki Resetting the keys
as well as previously deleting /etc/pacman.d/gnupg and /root/.gnupg folders out of a chrooted system livecd described in the manjaro forums.
I can't delete those folders directly from my running system as then i get:

rm: cannot remove '/etc/pacman.d/gnupg/': Device or resource busy

After running all the re-initialisation I can usually upgrade once, but after a reboot i get again the error during the update process.

warning: Public keyring not found; have you run 'pacman-key --init'?
downloading required keys...
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: required key missing from keyring
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.

Do you have any hints how to fix this permanently ?

[BTW: My system has been affected by the xz backdoor, but i guess this has nothing to do with it]

Last edited by boomshalek (2024-05-01 08:24:19)

Offline

#2 2024-04-13 14:49:08

seth
Member
Registered: 2012-09-03
Posts: 52,234

Re: [Reopend] Pacman: error: keyring is not writable (returning error)

mount
sudo lsattr -R /etc/pacman.d/gnupg
sudo lsof | grep 'etc/pacman.d/gnupg'

Offline

#3 2024-04-13 21:54:28

boomshalek
Member
Registered: 2007-10-12
Posts: 110

Re: [Reopend] Pacman: error: keyring is not writable (returning error)

seth wrote:
mount
sudo lsattr -R /etc/pacman.d/gnupg
sudo lsof | grep 'etc/pacman.d/gnupg'

I ran those commands during my system is doing pacman-key --refresh-keys as it is trying to complete this step for 3 hours now under quite some load ... Pastebin


proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=4061456k,nr_inodes=1015364,mode=755,inode64)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755,inode64)
/dev/sda1 on / type ext4 (rw,noatime,discard)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=33,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=18585)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,nosuid,nodev,relatime,pagesize=2M)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /etc/pacman.d/gnupg type tmpfs (rw,relatime,mode=755,inode64)
/dev/sda3 on /mnt/bunsen type ext4 (rw,noatime,discard)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,nr_inodes=1048576,inode64)
/dev/sdb1 on /media/daten type xfs (rw,noatime,attr2,inode64,allocsize=65536k,logbufs=8,logbsize=32k,noquota)
/dev/sdb2 on /media/daten/yavdrmedia type ext4 (rw,noatime,discard)
/dev/sdc1 on /media/daten/filme type xfs (rw,noatime,attr2,inode64,logbufs=8,logbsize=32k,noquota)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=814132k,nr_inodes=203533,mode=700,uid=1000,gid=100,inode64)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
lsattr: Operation not supported While reading flags on /etc/pacman.d/gnupg/pubring.gpg
lsattr: Operation not supported While reading flags on /etc/pacman.d/gnupg/pubring.gpg~
lsattr: Operation not supported While reading flags on /etc/pacman.d/gnupg/crls.d

/etc/pacman.d/gnupg/crls.d:
lsattr: Operation not supported While reading flags on /etc/pacman.d/gnupg/crls.d/DIR.txt

lsattr: Operation not supported While reading flags on /etc/pacman.d/gnupg/tofu.db
lsattr: Operation not supported While reading flags on /etc/pacman.d/gnupg/openpgp-revocs.d

/etc/pacman.d/gnupg/openpgp-revocs.d:
lsattr: Operation not supported While reading flags on /etc/pacman.d/gnupg/openpgp-revocs.d/F335967BEFD7D07C7CEBA9F9957F6EC75C6A0FBC.rev

lsattr: Operation not supported While reading flags on /etc/pacman.d/gnupg/private-keys-v1.d

/etc/pacman.d/gnupg/private-keys-v1.d:
lsattr: Operation not supported While reading flags on /etc/pacman.d/gnupg/private-keys-v1.d/C9A66A3469F16587F78926172F4DF89254119A34.key

lsattr: Operation not supported While reading flags on /etc/pacman.d/gnupg/gpg-agent.conf
lsattr: Operation not supported While reading flags on /etc/pacman.d/gnupg/gpg.conf
lsattr: Operation not supported While reading flags on /etc/pacman.d/gnupg/trustdb.gpg
lsattr: Operation not supported While reading flags on /etc/pacman.d/gnupg/secring.gpg
lsattr: Operation not supported While reading flags on /etc/pacman.d/gnupg/S.keyboxd
lsattr: Operation not supported While reading flags on /etc/pacman.d/gnupg/S.gpg-agent
lsattr: Operation not supported While reading flags on /etc/pacman.d/gnupg/S.gpg-agent.ssh
lsattr: Operation not supported While reading flags on /etc/pacman.d/gnupg/S.gpg-agent.extra
lsattr: Operation not supported While reading flags on /etc/pacman.d/gnupg/S.gpg-agent.browser
lsattr: Operation not supported While reading flags on /etc/pacman.d/gnupg/S.dirmngr
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
      Output information may be incomplete.
lsof: WARNING: can't stat() fuse.portal file system /run/user/1000/doc
      Output information may be incomplete.
systemd       1                       root 154u     unix 0x00000000ecbcd6a8       0t0      20081 /etc/pacman.d/gnupg/S.dirmngr type=STREAM (LISTEN)
systemd       1                       root 158u     unix 0x0000000081c33728       0t0      20082 /etc/pacman.d/gnupg/S.gpg-agent.browser type=STREAM (LISTEN)
systemd       1                       root 167u     unix 0x000000006c4e89ec       0t0      20085 /etc/pacman.d/gnupg/S.gpg-agent type=STREAM (LISTEN)
systemd       1                       root 168u     unix 0x00000000e96fc734       0t0      20083 /etc/pacman.d/gnupg/S.gpg-agent.extra type=STREAM (LISTEN)
systemd       1                       root 200u     unix 0x00000000952cf615       0t0      20084 /etc/pacman.d/gnupg/S.gpg-agent.ssh type=STREAM (LISTEN)
systemd       1                       root 208u     unix 0x00000000e883788a       0t0      20086 /etc/pacman.d/gnupg/S.keyboxd type=STREAM (LISTEN)
gpg-agent  1496                       root   3u     unix 0x000000006c4e89ec       0t0      20085 /etc/pacman.d/gnupg/S.gpg-agent type=STREAM (LISTEN)
gpg-agent  1496                       root   4u     unix 0x00000000e96fc734       0t0      20083 /etc/pacman.d/gnupg/S.gpg-agent.extra type=STREAM (LISTEN)
gpg-agent  1496                       root   5u     unix 0x0000000081c33728       0t0      20082 /etc/pacman.d/gnupg/S.gpg-agent.browser type=STREAM (LISTEN)
gpg-agent  1496                       root   6u     unix 0x00000000952cf615       0t0      20084 /etc/pacman.d/gnupg/S.gpg-agent.ssh type=STREAM (LISTEN)
dirmngr    2142                       root   3u     unix 0x00000000ecbcd6a8       0t0      20081 /etc/pacman.d/gnupg/S.dirmngr type=STREAM (LISTEN)
dirmngr    2142                       root   5u     unix 0x00000000fb9e49f4       0t0      52036 /etc/pacman.d/gnupg/S.dirmngr type=STREAM (CONNECTED)
dirmngr    2142  4144 conn\x20f       root   3u     unix 0x00000000ecbcd6a8       0t0      20081 /etc/pacman.d/gnupg/S.dirmngr type=STREAM (LISTEN)
dirmngr    2142  4144 conn\x20f       root   5u     unix 0x00000000fb9e49f4       0t0      52036 /etc/pacman.d/gnupg/S.dirmngr type=STREAM (CONNECTED)
gpg        4143                       root   3u      REG               0,34     15760         11 /etc/pacman.d/gnupg/trustdb.gpg

Offline

#4 2024-04-13 21:57:21

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,636

Re: [Reopend] Pacman: error: keyring is not writable (returning error)

boomshalek wrote:

I ran those commands during my system is doing pacman-key --refresh-keys as it is trying to complete this step for 3 hours now under quite some load ... Pastebin

There's a timer that runs that, and if you run pacman while it's running, it'll trash your keyring. Mask archlinux-keyring-wkd-sync.timer and your problem will likely go away.

Offline

#5 2024-04-13 22:03:27

seth
Member
Registered: 2012-09-03
Posts: 52,234

Re: [Reopend] Pacman: error: keyring is not writable (returning error)

tmpfs on /etc/pacman.d/gnupg type tmpfs (rw,relatime,mode=755,inode64)

Why is that on a volatile filesystem?

but after a reboot i get again the error during the update process

Because after the reboot that directory is completely empty again.

Offline

#6 2024-04-13 22:55:13

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,636

Re: [Reopend] Pacman: error: keyring is not writable (returning error)

Oh, I missed that. Sounds like they copied a bunch of things over from the ISO for some reason.

Offline

#7 2024-04-16 16:04:56

boomshalek
Member
Registered: 2007-10-12
Posts: 110

Re: [Reopend] Pacman: error: keyring is not writable (returning error)

seth wrote:
tmpfs on /etc/pacman.d/gnupg type tmpfs (rw,relatime,mode=755,inode64)

Why is that on a volatile filesystem?

but after a reboot i get again the error during the update process

Because after the reboot that directory is completely empty again.

Oh my stupid me! Thank you very much. Indeed I had quoted out the tmpfs entry in fstab (if I remember correctly to compile a large package) and left it like this.
So sorry my bad. But very nicely diagnosed !

Fixed, Sorry.

Offline

#8 2024-05-01 08:28:40

boomshalek
Member
Registered: 2007-10-12
Posts: 110

Re: [Reopend] Pacman: error: keyring is not writable (returning error)

Hello again

Apparently I did no fully understand the concept here.
I get the error again. My /etc/pacman.d/gnupg still seems to reside on a volatile file system.
How can I change that?

In order to speed up compilations of large packages I have put this in my /etc/fstab (System has 8GB of RAM). But TMHO this is not related to gnupg, right?

# By default, a tmpfs partition has its maximum size set to half of the available RAM, however it is possible to overrule this value.

tmpfs   /tmp         tmpfs   rw,nodev,nosuid,size=4G          0  0

# The tmpfs can also be temporarily resized without the need to reboot, for example when a large compile job needs to run soon. In this case, run in a console:
## mount -o remount,size=5G,noatime /tmp

Offline

#9 2024-05-01 10:43:37

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,013

Re: [Reopend] Pacman: error: keyring is not writable (returning error)

Please post your complete /etc/fstab , the full output of mount and the url shown after running (as root) journalctl -b | curl -F 'file=@-' 0x0.st


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#10 2024-05-12 09:46:48

boomshalek
Member
Registered: 2007-10-12
Posts: 110

Re: [Reopend] Pacman: error: keyring is not writable (returning error)

OK, so this is a nearly 10yr old installation that I keep updating.
It could be that this effect shows up only on old installations due to a recent update.
Similar behaviour is reported here
So i guess due to a package update in the last 3-4 months /etc/pacman.d/gnupg has been moved to tmpfs or is cleaned whereas it was protected from being wiped before.

Lone_Wolf wrote:

Please post your complete /etc/fstab , the full output of mount and the url shown after running (as root) journalctl -b | curl -F 'file=@-' 0x0.st

I already posted the output of mount above but i here it is again. journalctl will follow in a few minutes, I will reboot first.

UUID="d337ede2-ac88-4c63-9cbe-a404aefefb62"     /                       ext4    defaults,noatime,discard        0       1       #/dev/sda1
UUID="160eeae0-756d-4614-91b7-e0363ad37f72"     /mnt/bunsen             ext4    defaults,noatime,discard        0       2       #/dev/sda3
UUID="28c9786a-2725-4ef4-bbcd-8b511d5aa28f"     swap                    swap    defaults                        0       0       #/dev/sda4
UUID="6f63bbbc-b22a-4db7-9931-b5ec043feb27"     /media/daten            xfs     defaults,noatime,allocsize=64m,logbufs=8  0 2   #/dev/sdc1
UUID="7b11573c-6dce-4466-8beb-edecfecd0bb2"     /media/daten/yavdrmedia ext4    defaults,noatime,discard        0       2       #/dev/sdc2
UUID="6dc4861a-4cb7-445e-93b9-4e6f86c4a849"     /media/daten/filme      xfs     defaults,noatime,discard        0       2       #/dev/sdb1

# By default, a tmpfs partition has its maximum size set to half of the available RAM, however it is possible to overrule this value.
#
tmpfs   /tmp         tmpfs   rw,nodev,nosuid,size=4G          0  0
# The tmpfs can also be temporarily resized without the need to reboot, for example when a large compile job needs to run soon. In this case, run in a console:
################## mount -o remount,size=5G,noatime /tmp
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=4061476k,nr_inodes=1015369,mode=755,inode64)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755,inode64)
/dev/sda1 on / type ext4 (rw,noatime,discard)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=33,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=18587)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,nosuid,nodev,relatime,pagesize=2M)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /etc/pacman.d/gnupg type tmpfs (rw,relatime,mode=755,inode64)
/dev/sda3 on /mnt/bunsen type ext4 (rw,noatime,discard)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime,size=4194304k,inode64)
/dev/sdb1 on /media/daten type xfs (rw,noatime,attr2,inode64,allocsize=65536k,logbufs=8,logbsize=32k,noquota)
/dev/sdb2 on /media/daten/yavdrmedia type ext4 (rw,noatime,discard)
/dev/sdc1 on /media/daten/filme type xfs (rw,noatime,attr2,inode64,logbufs=8,logbsize=32k,noquota)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=814132k,nr_inodes=203533,mode=700,uid=1000,gid=100,inode64)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)

EDIT: journalctl is here

Last edited by boomshalek (2024-05-12 09:50:50)

Offline

#11 2024-05-12 10:48:20

seth
Member
Registered: 2012-09-03
Posts: 52,234

Re: [Reopend] Pacman: error: keyring is not writable (returning error)

systemctl list-units | grep mount

Offline

#12 2024-05-12 10:52:37

boomshalek
Member
Registered: 2007-10-12
Posts: 110

Re: [Reopend] Pacman: error: keyring is not writable (returning error)

seth wrote:
systemctl list-units | grep mount
systemctl list-units | grep mount

  proc-sys-fs-binfmt_misc.automount                                                                                        loaded active waiting   Arbitrary Executable File Formats File System Automount Point
  -.mount                                                                                                                  loaded active mounted   Root Mount
  dev-hugepages.mount                                                                                                      loaded active mounted   Huge Pages File System
  dev-mqueue.mount                                                                                                         loaded active mounted   POSIX Message Queue File System
  etc-pacman.d-gnupg.mount                                                                                                 loaded active mounted   Temporary /etc/pacman.d/gnupg directory
  media-daten-filme.mount                                                                                                  loaded active mounted   /media/daten/filme
  media-daten-yavdrmedia.mount                                                                                             loaded active mounted   /media/daten/yavdrmedia
  media-daten.mount                                                                                                        loaded active mounted   /media/daten
  mnt-bunsen.mount                                                                                                         loaded active mounted   /mnt/bunsen
  run-user-1000-doc.mount                                                                                                  loaded active mounted   /run/user/1000/doc
  run-user-1000-gvfs.mount                                                                                                 loaded active mounted   /run/user/1000/gvfs
  run-user-1000.mount                                                                                                      loaded active mounted   /run/user/1000
  sys-fs-fuse-connections.mount                                                                                            loaded active mounted   FUSE Control File System
  sys-kernel-config.mount                                                                                                  loaded active mounted   Kernel Configuration File System
  sys-kernel-debug.mount                                                                                                   loaded active mounted   Kernel Debug File System
  sys-kernel-tracing.mount                                                                                                 loaded active mounted   Kernel Trace File System
  tmp.mount                                                                                                                loaded active mounted   /tmp
  systemd-remount-fs.service     

Offline

#13 2024-05-12 10:55:55

seth
Member
Registered: 2012-09-03
Posts: 52,234

Re: [Reopend] Pacman: error: keyring is not writable (returning error)

systemctl show etc-pacman.d-gnupg.mount

Offline

#14 2024-05-12 10:59:15

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,013

Re: [Reopend] Pacman: error: keyring is not writable (returning error)

May 12 11:47:44 TVBOX systemd[1]: Reached target Swaps.
May 12 11:47:44 TVBOX kernel: mousedev: PS/2 mouse device common for all mice
May 12 11:47:44 TVBOX systemd[1]: Mounting Temporary /etc/pacman.d/gnupg directory...
May 12 11:47:44 TVBOX systemd[1]: Mounting /media/daten...
May 12 11:47:44 TVBOX systemd[1]: Mounting /mnt/bunsen...
May 12 11:47:44 TVBOX kernel: budget_av 0000:0b:02.0: DVB: registering adapter 0 frontend 0 (Philips TDA10023 DVB-C)...
May 12 11:47:44 TVBOX kernel: budget_av: ci interface initialised
May 12 11:47:44 TVBOX systemd[1]: tmp.mount: Directory /tmp to mount over is not empty, mounting anyway.
May 12 11:47:44 TVBOX systemd[1]: Mounting /tmp...
May 12 11:47:44 TVBOX kernel: EXT4-fs (sda3): mounting with "discard" option, but the device does not support discard
May 12 11:47:44 TVBOX kernel: EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: discard
May 12 11:47:44 TVBOX systemd[1]: Starting Load Kernel Module dm_mod...
May 12 11:47:44 TVBOX kernel: SGI XFS with ACLs, security attributes, realtime, scrub, repair, quota, no debug enabled
May 12 11:47:44 TVBOX kernel: XFS (sdb1): Deprecated V4 format (crc=0) will not be supported after September 2030.
May 12 11:47:44 TVBOX kernel: XFS (sdb1): Mounting V4 Filesystem
May 12 11:47:44 TVBOX systemd[1]: Starting Load Kernel Module loop...
May 12 11:47:44 TVBOX systemd[1]: File System Check on Root Device was skipped because of an unmet condition check (ConditionPathIsReadWrite=!/).
May 12 11:47:44 TVBOX systemd[1]: Rebuild Hardware Database was skipped because of an unmet condition check (ConditionNeedsUpdate=/etc).
May 12 11:47:44 TVBOX systemd[1]: TPM2 PCR Machine ID Measurement was skipped because of an unmet condition check (ConditionSecurity=measured-uki).
May 12 11:47:44 TVBOX systemd[1]: Create System Users was skipped because no trigger condition checks were met.
May 12 11:47:44 TVBOX systemd[1]: TPM2 SRK Setup (Early) was skipped because of an unmet condition check (ConditionSecurity=measured-uki).
May 12 11:47:44 TVBOX systemd[1]: TPM2 SRK Setup was skipped because of an unmet condition check (ConditionSecurity=measured-uki).
May 12 11:47:44 TVBOX systemd[1]: Mounted Temporary /etc/pacman.d/gnupg directory.
May 12 11:47:44 TVBOX systemd[1]: Mounted /mnt/bunsen.
May 12 11:47:44 TVBOX systemd[1]: Mounted /tmp.
May 12 11:47:44 TVBOX kernel: XFS (sdb1): Ending clean mount
May 12 11:47:44 TVBOX kernel: xfs filesystem being mounted at /media/daten supports timestamps until 2038 (0x7fffffff)
May 12 11:47:44 TVBOX systemd[1]: Mounted /media/daten.
May 12 11:47:44 TVBOX systemd[1]: modprobe@dm_mod.service: Deactivated successfully.
May 12 11:47:44 TVBOX systemd[1]: Finished Load Kernel Module dm_mod.
May 12 11:47:44 TVBOX systemd[1]: modprobe@loop.service: Deactivated successfully.
May 12 11:47:44 TVBOX systemd[1]: Finished Load Kernel Module loop.
May 12 11:47:44 TVBOX systemd[1]: Mounting /media/daten/filme...
May 12 11:47:44 TVBOX kernel: Registered IR keymap rc-rc6-mce
May 12 11:47:44 TVBOX kernel: IR RC6 protocol handler initialized
May 12 11:47:44 TVBOX systemd[1]: Mounting /media/daten/yavdrmedia...
May 12 11:47:44 TVBOX kernel: XFS (sdc1): mounting with "discard" option, but the device does not support discard
May 12 11:47:44 TVBOX kernel: XFS (sdc1): Mounting V5 Filesystem
May 12 11:47:44 TVBOX systemd[1]: Repartition Root Disk was skipped because no trigger condition checks were met.
May 12 11:47:44 TVBOX kernel: EXT4-fs (sdb2): mounting with "discard" option, but the device does not support discard
May 12 11:47:44 TVBOX kernel: EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: discard
May 12 11:47:44 TVBOX kernel: rc rc0: Media Center Ed. eHome Infrared Remote Transceiver (0471:0815) as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/rc/rc0
May 12 11:47:44 TVBOX kernel: rc rc0: lirc_dev: driver mceusb registered at minor = 0, raw IR receiver, raw IR transmitter
May 12 11:47:44 TVBOX kernel: input: Media Center Ed. eHome Infrared Remote Transceiver (0471:0815) as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/rc/rc0/input21
May 12 11:47:44 TVBOX systemd[1]: Mounted /media/daten/yavdrmedia.
May 12 11:47:45 TVBOX kernel: mceusb 2-1.2:1.0: long-range (0x1) receiver active
May 12 11:47:45 TVBOX kernel: XFS (sdc1): Ending clean mount
May 12 11:47:45 TVBOX systemd[1]: Mounted /media/daten/filme.
May 12 11:47:45 TVBOX kernel: xfs filesystem being mounted at /media/daten/filme supports timestamps until 2038 (0x7fffffff)
May 12 11:47:45 TVBOX systemd[1]: Reached target Local File Systems.

apparently you are mounting more then usual in the local filesystems target.

May 12 11:47:44 TVBOX systemd[1]: tmp.mount: Directory /tmp to mount over is not empty, mounting anyway. is especially suspicious .

Please post the outputs of

$ pacman -Qikk systemd
$ ls -lR /etc/systemd

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#15 2024-05-12 11:26:10

boomshalek
Member
Registered: 2007-10-12
Posts: 110

Re: [Reopend] Pacman: error: keyring is not writable (returning error)

systemctl show etc-pacman.d-gnupg.mount
Where=/etc/pacman.d/gnupg
What=tmpfs
Options=rw,relatime,mode=755,inode64
Type=tmpfs
TimeoutUSec=45s
ControlPID=0
DirectoryMode=0755
SloppyOptions=no
LazyUnmount=no
ForceUnmount=no
ReadWriteOnly=no
Result=success
UID=[not set]
GID=[not set]
ExecMount={ path=/usr/bin/mount ; argv[]=/usr/bin/mount tmpfs /etc/pacman.d/gnupg -t tmpfs -o mode=0755 ; ignore_errors=no ; start_time=[Sun 2024-05-12 11:47:44 CEST] ; stop_time=[Sun 2024-05-12 11:47:44 CEST] ; pid=539 ; code=exited ; status=0 }
Slice=system.slice
ControlGroup=/system.slice/etc-pacman.d-gnupg.mount
ControlGroupId=1411
MemoryCurrent=4096
MemoryPeak=[not set]
MemorySwapCurrent=0
MemorySwapPeak=[not set]
MemoryZSwapCurrent=[not set]
MemoryAvailable=6181748736
CPUUsageNSec=5316000
TasksCurrent=0
IPIngressBytes=[no data]
IPIngressPackets=[no data]
IPEgressBytes=[no data]
IPEgressPackets=[no data]
IOReadBytes=[not set]
IOReadOperations=[not set]
IOWriteBytes=[not set]
IOWriteOperations=[not set]
Delegate=no
CPUAccounting=yes
CPUWeight=[not set]
StartupCPUWeight=[not set]
CPUShares=[not set]
StartupCPUShares=[not set]
CPUQuotaPerSecUSec=infinity
CPUQuotaPeriodUSec=infinity
IOAccounting=no
IOWeight=[not set]
StartupIOWeight=[not set]
BlockIOAccounting=no
BlockIOWeight=[not set]
StartupBlockIOWeight=[not set]
MemoryAccounting=yes
DefaultMemoryLow=0
DefaultStartupMemoryLow=0
DefaultMemoryMin=0
MemoryMin=0
MemoryLow=0
StartupMemoryLow=0
MemoryHigh=infinity
StartupMemoryHigh=infinity
MemoryMax=infinity
StartupMemoryMax=infinity
MemorySwapMax=infinity
StartupMemorySwapMax=infinity
MemoryZSwapMax=infinity
StartupMemoryZSwapMax=infinity
MemoryLimit=infinity
DevicePolicy=auto
TasksAccounting=yes
TasksMax=9519
IPAccounting=no
ManagedOOMSwap=auto
ManagedOOMMemoryPressure=auto
ManagedOOMMemoryPressureLimit=0
ManagedOOMPreference=none
MemoryPressureWatch=auto
MemoryPressureThresholdUSec=200ms
CoredumpReceive=no
UMask=0022
LimitCPU=infinity
LimitCPUSoft=infinity
LimitFSIZE=infinity
LimitFSIZESoft=infinity
LimitDATA=infinity
LimitDATASoft=infinity
LimitSTACK=infinity
LimitSTACKSoft=8388608
LimitCORE=infinity
LimitCORESoft=infinity
LimitRSS=infinity
LimitRSSSoft=infinity
LimitNOFILE=524288
LimitNOFILESoft=1024
LimitAS=infinity
LimitASSoft=infinity
LimitNPROC=31730
LimitNPROCSoft=31730
LimitMEMLOCK=8388608
LimitMEMLOCKSoft=8388608
LimitLOCKS=infinity
LimitLOCKSSoft=infinity
LimitSIGPENDING=31730
LimitSIGPENDINGSoft=31730
LimitMSGQUEUE=819200
LimitMSGQUEUESoft=819200
LimitNICE=0
LimitNICESoft=0
LimitRTPRIO=0
LimitRTPRIOSoft=0
LimitRTTIME=infinity
LimitRTTIMESoft=infinity
RootEphemeral=no
OOMScoreAdjust=0
CoredumpFilter=0x33
Nice=0
IOSchedulingClass=2
IOSchedulingPriority=4
CPUSchedulingPolicy=0
CPUSchedulingPriority=0
CPUAffinityFromNUMA=no
NUMAPolicy=n/a
TimerSlackNSec=50000
CPUSchedulingResetOnFork=no
NonBlocking=no
StandardInput=null
StandardOutput=journal
StandardError=inherit
TTYReset=no
TTYVHangup=no
TTYVTDisallocate=no
SyslogPriority=30
SyslogLevelPrefix=yes
SyslogLevel=6
SyslogFacility=3
LogLevelMax=-1
LogRateLimitIntervalUSec=0
LogRateLimitBurst=0
SecureBits=0
CapabilityBoundingSet=cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_ra>
DynamicUser=no
SetLoginEnvironment=no
RemoveIPC=no
PrivateTmp=no
PrivateDevices=no
ProtectClock=no
ProtectKernelTunables=no
ProtectKernelModules=no
ProtectKernelLogs=no
ProtectControlGroups=no
PrivateNetwork=no
PrivateUsers=no
PrivateMounts=no
PrivateIPC=no
ProtectHome=no
ProtectSystem=no
SameProcessGroup=yes
UtmpMode=init
IgnoreSIGPIPE=yes
NoNewPrivileges=no
SystemCallErrorNumber=2147483646
LockPersonality=no
RuntimeDirectoryPreserve=no
RuntimeDirectoryMode=0755
StateDirectoryMode=0755
CacheDirectoryMode=0755
LogsDirectoryMode=0755
ConfigurationDirectoryMode=0755
TimeoutCleanUSec=infinity
MemoryDenyWriteExecute=no
RestrictRealtime=no
RestrictSUIDSGID=no
RestrictNamespaces=no
MountAPIVFS=no
KeyringMode=shared
ProtectProc=default
ProcSubset=all
ProtectHostname=no
MemoryKSM=no
RootImagePolicy=root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent
MountImagePolicy=root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent
ExtensionImagePolicy=root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent
KillMode=control-group
KillSignal=15
RestartKillSignal=15
FinalKillSignal=9
SendSIGKILL=yes
SendSIGHUP=no
WatchdogSignal=6
Id=etc-pacman.d-gnupg.mount
Names=etc-pacman.d-gnupg.mount
Requires=-.mount system.slice
RequiredBy=gpg-agent-browser@etc-pacman.d-gnupg.socket keyboxd@etc-pacman.d-gnupg.socket gpg-agent@etc-pacman.d-gnupg.socket gpg-agent-extra@etc-pacman.d-gnupg.socket dirmngr@etc-pacman.d-gnupg.socket gpg-agent-ssh@etc-pacman.d-gnupg.socket
Conflicts=umount.target
Before=gpg-agent-browser@etc-pacman.d-gnupg.socket dirmngr@etc-pacman.d-gnupg.socket gpg-agent@etc-pacman.d-gnupg.socket local-fs.target keyboxd@etc-pacman.d-gnupg.socket gpg-agent-extra@etc-pacman.d-gnupg.socket gpg-agent-ssh@etc-pacman.d-gnupg.socket umount.target
After=local-fs-pre.target swap.target -.mount systemd-journald.socket system.slice
RequiresMountsFor=/etc/pacman.d
Description=Temporary /etc/pacman.d/gnupg directory
LoadState=loaded
ActiveState=active
FreezerState=running
SubState=mounted
FragmentPath=/etc/systemd/system/etc-pacman.d-gnupg.mount
UnitFileState=static
UnitFilePreset=disabled
StateChangeTimestamp=Sun 2024-05-12 11:47:44 CEST
StateChangeTimestampMonotonic=9847265
InactiveExitTimestamp=Sun 2024-05-12 11:47:44 CEST
InactiveExitTimestampMonotonic=9583791
ActiveEnterTimestamp=Sun 2024-05-12 11:47:44 CEST
ActiveEnterTimestampMonotonic=9847265
ActiveExitTimestampMonotonic=0
InactiveEnterTimestampMonotonic=0
CanStart=yes
CanStop=yes
CanReload=yes
CanIsolate=no
CanFreeze=no
StopWhenUnneeded=no
RefuseManualStart=no
RefuseManualStop=no
AllowIsolate=no
DefaultDependencies=yes
SurviveFinalKillSignal=no
OnSuccessJobMode=fail
OnFailureJobMode=replace
IgnoreOnIsolate=yes
NeedDaemonReload=no
JobTimeoutUSec=infinity
JobRunningTimeoutUSec=infinity
JobTimeoutAction=none
ConditionResult=yes
AssertResult=yes
ConditionTimestamp=Sun 2024-05-12 11:47:44 CEST
ConditionTimestampMonotonic=9581555
AssertTimestamp=Sun 2024-05-12 11:47:44 CEST
AssertTimestampMonotonic=9581558
Transient=no
Perpetual=no
StartLimitIntervalUSec=10s
StartLimitBurst=5
StartLimitAction=none
FailureAction=none
SuccessAction=none
InvocationID=7e073702ebbc485dae26c6cf6278b9c5
CollectMode=inactive
pacman -Qikk systemd
Name            : systemd
Version         : 255.5-3
Description     : system and service manager
Architecture    : x86_64
URL             : https://www.github.com/systemd/systemd
Licenses        : LGPL-2.1-or-later  CC0-1.0  GPL-2.0-or-later  MIT-0
Groups          : None
Provides        : nss-myhostname  systemd-tools=255.5  udev=255.5
Depends On      : systemd-libs=255.5  acl  libacl.so=1-64  bash  cryptsetup  libcryptsetup.so=12-64  dbus  dbus-units  kbd  kmod  libkmod.so=2-64  hwdata  libcap  libcap.so=2-64  libgcrypt  libxcrypt  libcrypt.so=2-64  libidn2  lz4  pam  libelf  libseccomp
                  libseccomp.so=2-64  util-linux  libblkid.so=1-64  libmount.so=1-64  xz  pcre2  audit  libaudit.so=1-64  openssl  libcrypto.so=3-64  libssl.so=3-64
Optional Deps   : libmicrohttpd: systemd-journal-gatewayd and systemd-journal-remote [installed]
                  quota-tools: kernel-level quota management
                  systemd-sysvcompat: symlink package to provide sysvinit binaries [installed]
                  systemd-ukify: combine kernel and initrd into a signed Unified Kernel Image
                  polkit: allow administration as unprivileged user [installed]
                  curl: systemd-journal-upload, machinectl pull-tar and pull-raw [installed]
                  gnutls: systemd-journal-gatewayd and systemd-journal-remote [installed]
                  qrencode: show QR codes
                  iptables: firewall features [installed]
                  libbpf: support BPF programs [installed]
                  libpwquality: check password quality
                  libfido2: unlocking LUKS2 volumes with FIDO2 token
                  libp11-kit: support PKCS#11 [installed]
                  tpm2-tss: unlocking LUKS2 volumes with TPM2 [installed]
Required By     : at-spi2-core  base  gcr-4  libcec  libcolord  libei  libgudev  libinput  libpulse  mdadm  mkinitcpio  netctl  polkit  python-systemd  rtkit  systemd-sysvcompat  udevil  vte3  xdg-desktop-portal  xdg-user-dirs
Optional For    : None
Conflicts With  : nss-myhostname  systemd-tools  udev
Replaces        : nss-myhostname  systemd-tools  udev
Installed Size  : 30.79 MiB
Packager        : Christian Hesse <eworm@archlinux.org>
Build Date      : Mon 29 Apr 2024 09:50:58 PM CEST
Install Date    : Wed 01 May 2024 01:20:44 PM CEST
Install Reason  : Installed as a dependency for another package
Install Script  : Yes
Validated By    : Signature

backup file: systemd: /etc/systemd/journald.conf (Modification time mismatch)
backup file: systemd: /etc/systemd/journald.conf (Size mismatch)
backup file: systemd: /etc/systemd/journald.conf (SHA256 checksum mismatch)
backup file: systemd: /etc/systemd/logind.conf (Modification time mismatch)
backup file: systemd: /etc/systemd/logind.conf (Size mismatch)
backup file: systemd: /etc/systemd/logind.conf (SHA256 checksum mismatch)
backup file: systemd: /etc/systemd/system.conf (Modification time mismatch)
backup file: systemd: /etc/systemd/system.conf (Size mismatch)
backup file: systemd: /etc/systemd/system.conf (SHA256 checksum mismatch)
warning: systemd: /usr/share/locale/be/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/be@latin/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/bg/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/ca/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/cs/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/da/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/de/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/el/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/es/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/et/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/eu/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/fi/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/fr/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/gl/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/he/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/hr/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/hu/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/id/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/it/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/ja/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/ka/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/kab/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/ko/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/lt/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/nl/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/pa/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/pl/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/pt/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/pt_BR/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/ro/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/ru/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/si/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/sk/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/sr/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/sv/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/tr/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/uk/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/zh_CN/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /usr/share/locale/zh_TW/LC_MESSAGES/systemd.mo (No such file or directory)
warning: systemd: /var/log/journal (GID mismatch)
systemd: 1449 total files, 40 altered files
ls -lR /etc/systemd
/etc/systemd:
total 80
drwxr-xr-x 2 root root 4096 Feb 27  2014 network
drwxr-xr-x 8 root root 4096 Nov 18 14:29 system
drwxr-xr-x 4 root root 4096 Jun 15  2017 user
-rw-r--r-- 1 root root 1018 Apr 29 21:50 coredump.conf
-rw-r--r-- 1 root root  890 Apr 29 21:50 homed.conf
-rw-r--r-- 1 root root 1111 Apr 29 21:50 journal-remote.conf
-rw-r--r-- 1 root root 1039 Apr 29 21:50 journal-upload.conf
-rw-r--r-- 1 root root 1284 Nov 21  2021 journald.conf
-rw-r--r-- 1 root root 1406 Apr 29 21:50 journald.conf.pacnew
-rw-r--r-- 1 root root 1406 Jan  7  2022 logind.conf
-rw-r--r-- 1 root root 1663 Apr 29 21:50 logind.conf.pacnew
-rw-r--r-- 1 root root 1083 Apr 29 21:50 networkd.conf
-rw-r--r-- 1 root root  928 Apr 29 21:50 oomd.conf
-rw-r--r-- 1 root root  879 Apr 29 21:50 pstore.conf
-rw-r--r-- 1 root root 1709 Apr 29 21:50 resolved.conf
-rw-r--r-- 1 root root 1060 Apr 29 21:50 sleep.conf
-rw-r--r-- 1 root root 1991 Nov 21  2021 system.conf
-rw-r--r-- 1 root root 2321 Apr 29 21:50 system.conf.pacnew
-rw-r--r-- 1 root root 1068 Apr 29 21:50 timesyncd.conf
-rw-r--r-- 1 root root 1771 Apr 29 21:50 user.conf

/etc/systemd/network:
total 0

/etc/systemd/system:
total 44
drwxr-xr-x 2 root root 4096 Dec  5  2013 getty.target.wants
drwxr-xr-x 2 root root 4096 Nov 30  2015 getty@.service.d
drwxr-xr-x 2 root root 4096 Dec 17  2013 getty@tty1.service.d
drwxr-xr-x 2 root root 4096 Nov 18 14:34 multi-user.target.wants
drwxr-xr-x 2 root root 4096 Aug 18  2020 netctl@homeethernetdhcp.service.d
drwxr-xr-x 2 root root 4096 Jan  9  2022 sockets.target.wants
lrwxrwxrwx 1 root root   46 Dec  5  2013 dbus-org.freedesktop.NetworkManager.service -> /usr/lib/systemd/system/NetworkManager.service
lrwxrwxrwx 1 root root   57 Dec  5  2013 dbus-org.freedesktop.nm-dispatcher.service -> /usr/lib/systemd/system/NetworkManager-dispatcher.service
lrwxrwxrwx 1 root root   36 Dec 17  2013 display-manager.service -> /usr/lib/systemd/system/slim.service
-rw-r--r-- 1 root root  134 Nov 12  2012 etc-pacman.d-gnupg.mount
-rw-r--r-- 1 root root  565 Apr 15  2017 ffdecsawrapper.service
-rw-r--r-- 1 root root  455 Dec 19  2013 lirc.service
-rw-r--r-- 1 root root  508 Jun  1  2023 mythbackend.service
-rw-r--r-- 1 root root  184 Sep 22  2019 wol@.service

/etc/systemd/system/getty.target.wants:
total 0
lrwxrwxrwx 1 root root 38 Dec  5  2013 getty@tty1.service -> /usr/lib/systemd/system/getty@.service

/etc/systemd/system/getty@.service.d:
total 4
-rw-r--r-- 1 root root 60 Nov 29  2015 activate-numlock.conf

/etc/systemd/system/getty@tty1.service.d:
total 0

/etc/systemd/system/multi-user.target.wants:
total 0
lrwxrwxrwx 1 root root 46 Dec  5  2013 NetworkManager.service -> /usr/lib/systemd/system/NetworkManager.service
lrwxrwxrwx 1 root root 38 May 23  2014 cronie.service -> /usr/lib/systemd/system/cronie.service
lrwxrwxrwx 1 root root 36 Jan 30  2016 dkms.service -> /usr/lib/systemd/system/dkms.service
lrwxrwxrwx 1 root root 40 Oct 30  2016 fail2ban.service -> /usr/lib/systemd/system/fail2ban.service
lrwxrwxrwx 1 root root 37 Dec 19  2013 httpd.service -> /usr/lib/systemd/system/httpd.service
lrwxrwxrwx 1 root root 32 Dec 19  2013 lirc.service -> /etc/systemd/system/lirc.service
lrwxrwxrwx 1 root root 42 May  3  2015 lm_sensors.service -> /usr/lib/systemd/system/lm_sensors.service
lrwxrwxrwx 1 root root 55 Jul 23  2015 logitechmediaserver-git.service -> /usr/lib/systemd/system/logitechmediaserver-git.service
lrwxrwxrwx 1 root root 51 Nov 18 14:34 logitechmediaserver.service -> /usr/lib/systemd/system/logitechmediaserver.service
lrwxrwxrwx 1 root root 38 Dec 19  2013 mysqld.service -> /usr/lib/systemd/system/mysqld.service
lrwxrwxrwx 1 root root 39 Jun  1  2023 mythbackend.service -> /etc/systemd/system/mythbackend.service
lrwxrwxrwx 1 root root 39 Aug 18  2020 netctl@homeethernetdhcp.service -> /usr/lib/systemd/system/netctl@.service
lrwxrwxrwx 1 root root 35 May 10  2018 nmb.service -> /usr/lib/systemd/system/nmb.service
lrwxrwxrwx 1 root root 36 Jun 28  2017 nmbd.service -> /usr/lib/systemd/system/nmbd.service
lrwxrwxrwx 1 root root 36 Dec 20  2013 ntpd.service -> /usr/lib/systemd/system/ntpd.service
lrwxrwxrwx 1 root root 40 Apr 23  2015 remote-fs.target -> /usr/lib/systemd/system/remote-fs.target
lrwxrwxrwx 1 root root 35 May 10  2018 smb.service -> /usr/lib/systemd/system/smb.service
lrwxrwxrwx 1 root root 36 Dec 26  2013 smbd.service -> /usr/lib/systemd/system/smbd.service
lrwxrwxrwx 1 root root 36 Dec 19  2013 sshd.service -> /usr/lib/systemd/system/sshd.service
lrwxrwxrwx 1 root root 32 Sep 22  2019 wol@net0.service -> /etc/systemd/system/wol@.service

/etc/systemd/system/netctl@homeethernetdhcp.service.d:
total 4
-rw-r--r-- 1 root root 142 Aug 18  2020 profile.conf

/etc/systemd/system/sockets.target.wants:
total 0
lrwxrwxrwx 1 root root 36 Jan  9  2022 snapd.socket -> /usr/lib/systemd/system/snapd.socket

/etc/systemd/user:
total 8
drwxr-xr-x 2 root root 4096 Apr 23  2016 default.target.wants
drwxr-xr-x 2 root root 4096 Nov  6  2022 sockets.target.wants

/etc/systemd/user/default.target.wants:
total 0
lrwxrwxrwx 1 root root 50 Apr 23  2016 xdg-user-dirs-update.service -> /usr/lib/systemd/user/xdg-user-dirs-update.service

/etc/systemd/user/sockets.target.wants:
total 0
lrwxrwxrwx 1 root root 42 Nov  6  2022 gcr-ssh-agent.socket -> /usr/lib/systemd/user/gcr-ssh-agent.socket
lrwxrwxrwx 1 root root 49 Jun 27  2022 gnome-keyring-daemon.socket -> /usr/lib/systemd/user/gnome-keyring-daemon.socket
lrwxrwxrwx 1 root root 43 Aug 21  2018 p11-kit-server.socket -> /usr/lib/systemd/user/p11-kit-server.socket
lrwxrwxrwx 1 root root 37 Oct  2  2022 pipewire.socket -> /usr/lib/systemd/user/pipewire.socket
lrwxrwxrwx 1 root root 39 May 30  2020 pulseaudio.socket -> /usr/lib/systemd/user/pulseaudio.socket

EDIT: etc-pacman.d-gnupg.mount

[Unit]
Description=Temporary /etc/pacman.d/gnupg directory

[Mount]
What=tmpfs
Where=/etc/pacman.d/gnupg
Type=tmpfs
Options=mode=0755

Last edited by boomshalek (2024-05-12 11:30:00)

Offline

#16 2024-05-12 11:28:54

seth
Member
Registered: 2012-09-03
Posts: 52,234

Re: [Reopend] Pacman: error: keyring is not writable (returning error)

pacman -Qo /etc/systemd/system/etc-pacman.d-gnupg.mount

But

-rw-r--r-- 1 root root  134 Nov 12  2012 etc-pacman.d-gnupg.mount

that hasn't been touched since 2012, so its probably not under any package control and you put it there a decade ago.

Offline

#17 2024-05-12 21:11:25

boomshalek
Member
Registered: 2007-10-12
Posts: 110

Re: [Reopend] Pacman: error: keyring is not writable (returning error)

seth wrote:
pacman -Qo /etc/systemd/system/etc-pacman.d-gnupg.mount

But

-rw-r--r-- 1 root root  134 Nov 12  2012 etc-pacman.d-gnupg.mount

that hasn't been touched since 2012, so its probably not under any package control and you put it there a decade ago.

@seth and @Lone_Wolf
I'd really like to have your understanding and diagnosing/problem solving skills.

As expected

pacman -Qo /etc/systemd/system/etc-pacman.d-gnupg.mount
error: No package owns /etc/systemd/system/etc-pacman.d-gnupg.mount

I can't guarantee for my younger selfs mental state at the time, but I am pretty sure this file was not created by me. Strange is that it lead to a problem a few months ago and not earlier ...

I will remove it and see what happens in a few days when I will be having access to it again.

Thank you very much. Greatly appreciated.

Offline

#18 2024-05-13 06:03:10

seth
Member
Registered: 2012-09-03
Posts: 52,234

Re: [Reopend] Pacman: error: keyring is not writable (returning error)

Scimmia wrote:

Sounds like they copied a bunch of things over from the ISO for some no reason.

Offline

Board footer

Powered by FluxBB