'dnf update' fails on fresh install. # dnf update ... Delta RPMs reduced 356.9 MB of updates to 161.5 MB (54.1% saved) warning: /var/cache/dnf/updates-2854b3113b7a3c6c/packages/python3-bind-9.11.1-2.P2.fc26.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 64dab85d: NOKEY Importing GPG key 0x64DAB85D: Userid : "Fedora 26 Primary (26) <fedora-26-primary>" Fingerprint: E641 850B 77DF 4353 78D1 D7E2 812A 6B4B 64DA B85D From : /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-26-x86_64 Is this ok [y/N]: y error: can't create transaction lock on /var/lib/rpm/.rpm.lock (No such file or directory) The downloaded packages were saved in cache until the next successful transaction. You can remove cached packages by executing 'dnf clean packages'. Error: Key import failed (code 2)Failing package is: python3-bind-32:9.11.1-2.P2.fc26.noarch GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-26-x86_64 # rpm -qa | grep dnf python3-dnf-2.5.1-1.fc26.noarch libdnf-0.9.1-1.fc26.x86_64 dnf-conf-2.5.1-1.fc26.noarch dnf-2.5.1-1.fc26.noarch # rpm -q fedora-release fedora-release-26-1.noarch
Here's the "root cause": /dev/mapper/vg0-root--1 on /sysroot type ext4 (rw,relatime,seclabel,data=ordered) /dev/mapper/vg0-root--1 on / type ext4 (rw,relatime,seclabel,data=ordered) /dev/mapper/vg0-root--1 on /usr type ext4 (ro,relatime,seclabel,data=ordered) /dev/mapper/vg0-root--1 on /var type ext4 (rw,relatime,seclabel,data=ordered) /usr is mounted RO. /var/lib/rpm is a symlink to /usr/share/rpm. So Fedora is broken by default, apparently.
This doesn't seem to be supported (and supportable) configuration. /var/lib/rpm has to be writable while /usr/share/rpm can be read-only If you disagree with closing this NOTABUG, please reopen the bug and provide more details about your system.
I guess this is two separate bugs? #1, why is /var/lib/rpm a symlink to /usr/share? That belongs to the rpm package. You shouldn't be writing lock files to /usr/share! #2 What is causing /, /usr, and /var to be mounted separately? This is a default fresh install, so it seems something is horribly wrong with the installer. If /usr is RO, how will I ever update packages? What component is mounting these separately? I've never seen this before. /etc/fstab: /dev/mapper/vg0-root--1 / ext4 defaults 1 1 UUID=00de9402-ec53-402e-8cd3-cb07c656523b /boot ext4 defaults 1 2 UUID=19cca096-0d8a-4341-b93f-960336b313c9 swap swap defaults 0 0 UUID=d1aea570-afb9-4449-be8c-c634f6545563 swap swap defaults 0 0 # cat /etc/mtab | grep vg0 /dev/mapper/vg0-root--1 /sysroot ext4 rw,seclabel,relatime,data=ordered 0 0 /dev/mapper/vg0-root--1 / ext4 rw,seclabel,relatime,data=ordered 0 0 /dev/mapper/vg0-root--1 /usr ext4 ro,seclabel,relatime,data=ordered 0 0 /dev/mapper/vg0-root--1 /var ext4 rw,seclabel,relatime,data=ordered 0 0 What more information do you want about my system?
I did a fresh install with fresh media and everything is normal. I wish I knew what happened here, but I haven't got a clue.