dmvianna
(Daniel Vianna)
November 19, 2024, 5:10am
1
I have a borked upgrade from F40 to F41. It went unnoticed until I started having random reboots. Now I am at a point where I annot run
sudo dnf update
because the system refuses to update systemd-rpm-macros, which is in use by systemd. The one in use is from F40.
vgaetera
(Vladislav Grigoryev)
November 19, 2024, 5:23am
2
Check the output:
sudo dnf distro-sync --refresh --allowerasing --releasever=41
dmvianna
(Daniel Vianna)
November 19, 2024, 5:34am
3
I currently don’t have a graphic environment, but what I get are 288 packages to download and then
Transaction failed: Rpm transaction failed.
- (systemd-rpm-macros = 256.7-1.fc41 if rpm-build) is needed by (installed) systemd-256.7-1.fc41.x8_64
vgaetera
(Vladislav Grigoryev)
November 19, 2024, 5:51am
4
Boot a live session and mount your filesystems as explained here:
The GRUB2 Bootloader – Installation and Configuration :: Fedora Docs
Then repeat the above command adding this option:
sudo dnf ... --installroot=/mnt
dmvianna
(Daniel Vianna)
November 19, 2024, 6:23am
5
Problem persists after chroot
.
Also:
- installing package mactel-boot-0.9-33.fc41.x86_64 needs 4KB more space on the /boot/efi filesystem
dmvianna
(Daniel Vianna)
November 19, 2024, 6:27am
7
OK, now I need to unmount bind all the things…
dmvianna
(Daniel Vianna)
November 19, 2024, 6:30am
9
I’m getting the same message. Rpm transaction failed, etc.
dmvianna
(Daniel Vianna)
November 19, 2024, 6:32am
10
I mounted /proc
, /dev
, /sys
, /run
. I don’t think I should have those mounted, just /mnt
.
vgaetera
(Vladislav Grigoryev)
November 19, 2024, 6:35am
11
Try excluding the problematic packages:
sudo dnf ... --exclude=systemd\*
Then remove duplicates if any:
sudo dnf reinstall \
$(sudo dnf rq \
--duplicates \
--latest-limit=1 \
--qf="%{name}\n" \
--installroot=/mnt) \
--allowerasing \
--releasever=41 \
--installroot=/mnt
Remove and reinstall the problematic packages:
sudo rpm -e \
--nodeps \
--root /mnt \
systemd-rpm-macros
sudo dnf install systemd-rpm-macros \
--releasever=41 \
--installroot=/mnt
If the problem persists, add more flags:
sudo rpm -e \
--nodeps \
--noscripts \
--justdb \
--root /mnt \
systemd-rpm-macros
See also:
How do I recover an unbootable Fedora Workstation system? - #8 by vgaetera
2 Likes
dmvianna
(Daniel Vianna)
November 19, 2024, 6:40am
12
That definitely unblocked it. Once it stops I’ll see if there’s something left to do before I close this issue, thanks!
dmvianna
(Daniel Vianna)
November 19, 2024, 6:43am
13
Non-critical error in post-transaction scriptlet: kernel-core ...
Scriptlet output:
Failed to get block device path for 259:2: Function not implemented
I’ll reboot and see what I get.
dmvianna
(Daniel Vianna)
November 19, 2024, 6:57am
15
Thank to the reinstall
command I got past systemd-rpm-macros
! OK, now I just need to get my graphic environment back. I’m being sent to the console at boot.
dmvianna
(Daniel Vianna)
November 19, 2024, 6:59am
17
OK, it i back! I followed this other thread .