Hi, today I’ve tried to do a dnf upgrade and I have encountered the following error.
User$ sudo dnf upgrade
[sudo] password for User:
Updating and loading repositories:
Repositories loaded.
Failed to resolve the transaction:
Problem: The operation would result in removing the following protected packages: systemd-udev
Then, I’ve tried to do a distro-sync, which gave a similar error to one above.
sudo dnf distro-sync
Updating and loading repositories:
Repositories loaded.
Failed to resolve the transaction:
Problem: The operation would result in removing the following protected packages: selinux-policy-targeted, systemd, systemd-udev
You can try to add to command line:
--skip-broken to skip uninstallable packages
When I tried to use --skip-broken, it gave the same error. I found a Reddit post and a Fedora Discussion post with a similar problem so I tried their solutions, which was checking Systemd packages with the following command.
rpm -q systemd systemd-udev selinux-policy-targeted
The command the following on the terminal.
systemd-258.2-1.fc43.x86_64
systemd-258.3-2.fc43.x86_64
systemd-udev-258.2-1.fc43.x86_64
systemd-udev-258.3-2.fc43.x86_64
selinux-policy-targeted-42.18-1.fc43.noarch
selinux-policy-targeted-42.19-1.fc43.noarch
So if I understood it correctly, there were two packages that were the same, I guess? Then, I followed the solution on the Fedora Discussion post.
sudo dnf reinstall systemd systemd-udev --refresh
sudo dnf distro-sync --refresh --setopt=protected_packages=
However, when I used the reinstall command it said it was going to remove the kernel.
Updating and loading repositories:
RPM Fusion for Fedora 43 - Nonfree - Steam 100% | 2.7 KiB/s | 8.1 KiB | 00m03s
RPM Fusion for Fedora 43 - Nonfree - NVIDIA Driver 100% | 3.1 KiB/s | 8.4 KiB | 00m03s
Fedora 43 - x86_64 100% | 9.0 KiB/s | 22.4 KiB | 00m02s
Fedora 43 openh264 (From Cisco) - x86_64 100% | 533.0 B/s | 986.0 B | 00m02s
Fedora 43 - x86_64 - Updates 100% | 4.8 KiB/s | 6.6 KiB | 00m01s
Antigravity RPM Repository 100% | 1.5 KiB/s | 1.4 KiB | 00m01s
cloudflare-warp-stable 100% | 3.2 KiB/s | 3.0 KiB | 00m01s
Copr repo for howdy-beta owned by principis 100% | 1.6 KiB/s | 1.5 KiB | 00m01s
google-chrome 100% | 2.1 KiB/s | 1.3 KiB | 00m01s
Copr repo for PyCharm owned by phracek 100% | 4.5 KiB/s | 2.1 KiB | 00m00s
Repositories loaded.
Package Arch Version Repository Size
Removing:
kernel-core x86_64 6.17.7-300.fc43 <unknown> 98.8 MiB
kernel-modules x86_64 6.17.7-300.fc43 <unknown> 95.6 MiB
kernel-modules-core x86_64 6.17.7-300.fc43 <unknown> 68.3 MiB
kernel-modules-extra x86_64 6.17.7-300.fc43 <unknown> 4.2 MiB
Removing dependent packages:
kernel x86_64 6.17.7-300.fc43 <unknown> 0.0 B
selinux-policy noarch 42.18-1.fc43 <unknown> 32.0 KiB
systemd-pam x86_64 258.2-1.fc43 <unknown> 1.2 MiB
Reinstalling:
selinux-policy-targeted noarch 42.19-1.fc43 updates 18.7 MiB
replacing selinux-policy-targeted noarch 42.19-1.fc43 <unknown> 18.7 MiB
replacing selinux-policy-targeted noarch 42.18-1.fc43 <unknown> 18.7 MiB
systemd x86_64 258.3-2.fc43 updates 12.7 MiB
replacing systemd x86_64 258.3-2.fc43 <unknown> 12.7 MiB
replacing systemd x86_64 258.2-1.fc43 <unknown> 12.7 MiB
systemd-udev x86_64 258.3-2.fc43 updates 12.7 MiB
replacing systemd-udev x86_64 258.3-2.fc43 <unknown> 12.7 MiB
replacing systemd-udev x86_64 258.2-1.fc43 <unknown> 12.6 MiB
Upgrading:
systemd-container x86_64 258.3-2.fc43 updates 2.2 MiB
replacing systemd-container x86_64 258.2-1.fc43 <unknown> 2.2 MiB
systemd-networkd x86_64 258.3-2.fc43 updates 2.3 MiB
replacing systemd-networkd x86_64 258.2-1.fc43 <unknown> 2.3 MiB
systemd-oomd-defaults noarch 258.3-2.fc43 updates 187.0 B
replacing systemd-oomd-defaults noarch 258.2-1.fc43 <unknown> 187.0 B
systemd-resolved x86_64 258.3-2.fc43 updates 733.0 KiB
replacing systemd-resolved x86_64 258.2-1.fc43 <unknown> 733.0 KiB
Transaction Summary:
Reinstalling: 3 packages
Upgrading: 4 packages
Replacing: 10 packages
Removing: 7 packages
Total size of inbound packages is 16 MiB. Need to download 16 MiB.
After this operation, 312 MiB will be freed (install 49 MiB, remove 361 MiB).
Is this ok [y/N]: n
My question is whether this is safe to do or not? Should I proceed? Or is there any other easier solution?
System details:
System:
Kernel: 6.17.9-300.fc43.x86_64 arch: x86_64 bits: 64 compiler: gcc v: 15.2.1
Desktop: GNOME v: 49.2 Distro: Fedora Linux 43 (Workstation Edition)
Machine:
Type: Desktop Mobo: ASUSTeK model: PRIME B350-PLUS v: Rev X.0x
serial: <superuser required> Firmware: UEFI vendor: American Megatrends
v: 5602 date: 07/14/2020
CPU:
Info: quad core model: AMD Ryzen 5 2400G with Radeon Vega Graphics bits: 64
type: MT MCP arch: Zen rev: 0 cache: L1: 384 KiB L2: 2 MiB L3: 4 MiB
Speed (MHz): avg: 3600 min/max: 1600/3600 boost: enabled cores: 1: 3600
2: 3600 3: 3600 4: 3600 5: 3600 6: 3600 7: 3600 8: 3600 bogomips: 57491
Flags-basic: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a
ssse3 svm
Graphics:
Device-1: Advanced Micro Devices [AMD/ATI] Navi 24 [Radeon RX 6400/6500
XT/6500M] vendor: Sapphire PULSE driver: amdgpu v: kernel arch: RDNA-2
bus-ID: 03:00.0
Device-2: Advanced Micro Devices [AMD/ATI] Raven Ridge [Radeon Vega
Series / Radeon Mobile Series] vendor: ASUSTeK PRIME driver: amdgpu
v: kernel arch: GCN-5 bus-ID: 0b:00.0 temp: 55.0 C
Device-3: Logitech Webcam C110 driver: snd-usb-audio,uvcvideo type: USB
bus-ID: 3-2:2
Display: wayland server: X.Org v: 24.1.9 with: Xwayland v: 24.1.9
compositor: gnome-shell driver: dri: radeonsi gpu: amdgpu
resolution: 1920x1080~75Hz
API: OpenGL v: 4.6 vendor: amd mesa v: 25.2.7 glx-v: 1.4
direct-render: yes renderer: AMD Radeon Vega 11 Graphics (radeonsi raven
ACO DRM 3.64 6.17.9-300.fc43.x86_64)
API: EGL Message: EGL data requires eglinfo. Check --recommends.
Info: Tools: api: glxinfo x11: xdriinfo, xdpyinfo, xprop, xrandr
Audio:
Device-1: Advanced Micro Devices [AMD/ATI] Navi 21/23 HDMI/DP Audio
driver: snd_hda_intel v: kernel bus-ID: 03:00.1
Device-2: Advanced Micro Devices [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP
Audio vendor: ASUSTeK PRIME B450M-A driver: snd_hda_intel v: kernel
bus-ID: 0b:00.1
Device-3: Advanced Micro Devices [AMD] Ryzen HD Audio
vendor: ASUSTeK PRIME B450M-A driver: snd_hda_intel v: kernel
bus-ID: 0b:00.6
Device-4: Logitech Webcam C110 driver: snd-usb-audio,uvcvideo type: USB
bus-ID: 3-2:2
API: ALSA v: k6.17.9-300.fc43.x86_64 status: kernel-api
Server-1: PipeWire v: 1.4.9 status: active
Network:
Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
vendor: ASUSTeK RTL8111H driver: r8169 v: kernel port: e000 bus-ID: 06:00.0
IF: enp6s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Bluetooth:
Device-1: TP-Link Bluetooth USB Adapter driver: btusb v: 0.8 type: USB
bus-ID: 5-1:2
Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.1
lmp-v: 10
Drives:
Local Storage: total: 1.82 TiB used: 513.04 GiB (27.5%)
ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 980 1TB size: 931.51 GiB
temp: 41.9 C
ID-2: /dev/sda vendor: Seagate model: ST1000DM003-1ER162 size: 931.51 GiB
temp: 33 C
Partition:
ID-1: / size: 929.93 GiB used: 493.37 GiB (53.1%) fs: btrfs
dev: /dev/nvme0n1p3
ID-2: /boot size: 973.4 MiB used: 578.1 MiB (59.4%) fs: ext4
dev: /dev/nvme0n1p2
ID-3: /boot/efi size: 598.8 MiB used: 19.3 MiB (3.2%) fs: vfat
dev: /dev/nvme0n1p1
ID-4: /home size: 929.93 GiB used: 493.37 GiB (53.1%) fs: btrfs
dev: /dev/nvme0n1p3
Swap:
ID-1: swap-1 type: zram size: 8 GiB used: 8 KiB (0.0%) dev: /dev/zram0
Sensors:
System Temperatures: cpu: 55.0 C mobo: N/A
Fan Speeds (rpm): N/A
GPU: device: amdgpu temp: 55.0 C device: amdgpu temp: 57.0 C fan: 0
Info:
Memory: total: 16 GiB note: est. available: 13.57 GiB used: 5.99 GiB (44.1%)
Processes: 640 Uptime: 39m Init: systemd
Packages: 68 note: see --rpm Compilers: N/A Shell: Bash v: 5.3.0
inxi: 3.3.40