Recently, while updating my system, something started to hang and the update process was cut short during the cleanup (removing files), and currently my system seems to be in a somewhat broken state.
When running sudo dnf update
again after the system crash I am greeted with the following error messages:
Updating and loading repositories:
error: SELECT hnum, blob FROM 'Packages': 11: database disk image is malformed
Repositories loaded.
Problem 1: cannot install both LCEVCdec-4.0.1-1.fc42.x86_64 from terra and LCEVCdec-3.3.7-1.fc42.x86_64 from @System
- installed package libavcodec-1:7.1.1-3.fc42.x86_64 requires liblcevc_dec_api.so.3()(64bit), but none of the providers can be installed
- cannot install the best update candidate for package LCEVCdec-3.3.7-1.fc42.x86_64
- problem with installed package
Problem 2: cannot install both libnpp-1:13.0.0.50-1.fc42.x86_64 from terra and libnpp-1:12.4.1.87-1.fc42.x86_64 from @System
- installed package libavfilter-1:7.1.1-3.fc42.x86_64 requires libnppicc.so.12()(64bit), but none of the providers can be installed
- installed package libavfilter-1:7.1.1-3.fc42.x86_64 requires libnppicc.so.12(libnppicc.so.12)(64bit), but none of the providers can be installed
- installed package libavfilter-1:7.1.1-3.fc42.x86_64 requires libnppidei.so.12()(64bit), but none of the providers can be installed
- installed package libavfilter-1:7.1.1-3.fc42.x86_64 requires libnppidei.so.12(libnppidei.so.12)(64bit), but none of the providers can be installed
- installed package libavfilter-1:7.1.1-3.fc42.x86_64 requires libnppif.so.12()(64bit), but none of the providers can be installed
- installed package libavfilter-1:7.1.1-3.fc42.x86_64 requires libnppif.so.12(libnppif.so.12)(64bit), but none of the providers can be installed
- installed package libavfilter-1:7.1.1-3.fc42.x86_64 requires libnppig.so.12()(64bit), but none of the providers can be installed
- installed package libavfilter-1:7.1.1-3.fc42.x86_64 requires libnppig.so.12(libnppig.so.12)(64bit), but none of the providers can be installed
- cannot install the best update candidate for package libnpp-1:12.4.1.87-1.fc42.x86_64
- problem with installed package
One issue seems to be the malformed database disk image. I’ve read about some potential fixes for this which did not seem to resolve the issues in my case, namely:
- The commands
yum clean all
,yum clean metadata
,yum clean dbcache
,yum makecache
dnf check
anddnf distro-sync
all did not seem to solve the issues.
edit: I also tried to runrpm --builddb
, as some forum posts mentioned that command, but it seems that the command might have been removed from rpm, because I simply got aunknown option
response - I also read that I might solve the issue by deleting (renaming/moving) the file
/var/lib/dnf/history.sqlite
, but this also did not seem to resolve the issue (I did the same for the.sqlite-wal
and.sqlite-shm
files, once again to no avail).
The second issue I’m having seems to be the fact that some packages are present in two different sources, namely terra
and @System
.
I’m not fully sure how I should go about resolving this issue, which would be best to prefer (or if its not particularly a case of “the best”).
Also, while I’m vaguely aware of what terra
is - to my understanding it simply tries to extend the fedora repository to applications which might not be present in the main repository - I have absolutely no clue what the @System
source would be..
EDIT: It seems like the btrfs errors I saw during my earlier inspection have been resolved (most likely at bootup by my system itself).
Also, there is a slight chance that my file system itself is somewhat corrupted after the interrupted update. After the issues started I checked the status of my btrfs file system (from a different machine) and it reported 8 corruptions.
I’m not sure if those issues are related or seperate, I was hoping to be able to fix the dnf issues first and look at the filesystem afterwards, but if they are related that might simply not be possible.
System stats:
.',;::::;,'. -------------------
.';:cccccccccccc:;,. OS: Fedora Linux 42 (KDE Plasma Desktop Edition) x86_64
.;cccccccccccccccccccccc;. Host: VivoBook_ASUSLaptop X571LI_X571LI (1.0)
.:cccccccccccccccccccccccccc:. Kernel: Linux 6.15.9-201.fc42.x86_64
.;ccccccccccccc;.:dddl:.;ccccccc;. Uptime: 3 hours, 47 mins
.:ccccccccccccc;OWMKOOXMWd;ccccccc:. Packages: 2864 (rpm), 15 (flatpak), 7 (snap)
.:ccccccccccccc;KMMc;cc;xMMc;ccccccc:. Shell: bash 5.2.37
,cccccccccccccc;MMM.;cc;;WW:;cccccccc, Display (SAMSUNG): 2560x1440 @ 60 Hz in 85" [External] *
:cccccccccccccc;MMM.;cccccccccccccccc: Display (LGD0563): 1920x1080 @ 60 Hz in 16" [Built-in]
:ccccccc;oxOOOo;MMM0OOk.;cccccccccccc: DE: KDE Plasma 6.4.3
cccccc;0MMKxdd:;MMMkddc.;cccccccccccc; WM: KWin (Wayland)
ccccc;XM0';cccc;MMM.;cccccccccccccccc' WM Theme: Nordic
ccccc;MMo;ccccc;MMW.;ccccccccccccccc; Theme: Breeze (Nordic) [Qt], Breeze [GTK3]
ccccc;0MNc.ccc.xMMd;ccccccccccccccc; Icons: breeze [Qt], breeze [GTK3/4]
cccccc;dNMWXXXWM0:;cccccccccccccc:, Font: Noto Sans (10pt) [Qt], Noto Sans (10pt) [GTK3/4]
cccccccc;.:odl:.;cccccccccccccc:,. Cursor: breeze (24px)
:cccccccccccccccccccccccccccc:'. Terminal: ghostty 1.1.3
.:cccccccccccccccccccccc:;,.. Terminal Font: AnonymicePro Nerd Font Mono (13.0pt)
'::cccccccccccccc::;,. CPU: Intel(R) Core(TM) i7-10750H (12) @ 5.00 GHz
GPU 1: NVIDIA GeForce GTX 1650 Ti Mobile [Discrete]
GPU 2: Intel UHD Graphics @ 1.15 GHz [Integrated]
Memory: 7.80 GiB / 15.44 GiB (50%)
Swap: 32.00 KiB / 8.00 GiB (0%)
Disk (/): 164.07 GiB / 929.83 GiB (18%) - btrfs
Local IP (wlo1): 192.168.0.126/24
Battery (A32-K55): 100% [AC Connected]
Locale: en_US.UTF-8