Dnf update failure

,

Hi! During an update, the breaker kicked and knocked out power.
Now when trying to update i’m given this error

Total                                                                                              15 MB/s | 217 MB     00:14     
Running transaction check
Error: transaction check vs depsolve:
mesa-filesystem(x86-64) = 24.1.2-7.fc40 is needed by mesa-dri-drivers-24.1.2-7.fc40.x86_64
mesa-filesystem(x86-64) is needed by (installed) libva-2.21.0-3.fc40.x86_64
mesa-filesystem(x86-64) = 24.1.2-2.fc40 is needed by (installed) mesa-va-drivers-24.1.2-2.fc40.x86_64
mesa-filesystem(x86-64) is needed by (installed) libva-2.21.0-3.fc40.x86_64
mesa-filesystem(x86-64) = 24.1.2-7.fc40 is needed by (installed) mesa-va-drivers-24.1.2-7.fc40.x86_64
To diagnose the problem, try running: 'rpm -Va --nofiles --nodigest'.
You probably have corrupted RPMDB, running 'rpm --rebuilddb' might fix the issue.
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.

I’ve run rpm --rebuilddb dnf clean packages and distro-sync and nothing.
I ran dnf update --best --allowerasing and got

Error: 
 Problem: The operation would result in removing the following protected packages: systemd, systemd-udev
(try to add '--skip-broken' to skip uninstallable packages)

Any ideas? Thank you for your time.

Have you tried this yet?

Added dnf, f40

Sure did. Didn’t change anything.

1 Like

I assume also:

  • dnf clean packages or dnf clean all followed by
  • dnf -y distro-sync --allowerasing --best

I have and it gives me the

Error: 
 Problem: The operation would result in removing the following protected packages: systemd, systemd-udev
(try to add '--skip-broken' to skip uninstallable packages)

Which really doesn’t look good Lol

1 Like

Check for duplicates:

sudo dnf check duplicates

If it finds anything, remove duplicated packages:

sudo dnf remove --duplicates
1 Like

Ran both and got


Total                                                                                                                                                                                                                           19 MB/s | 157 MB     00:08     
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction test error:
  file /usr/share/gcc-14/python/libstdcxx/__pycache__/__init__.cpython-312.opt-1.pyc from install of libstdc++-14.1.1-7.fc40.x86_64 conflicts with file from package libstdc++-14.1.1-6.fc40.i686
  file /usr/share/gcc-14/python/libstdcxx/__pycache__/__init__.cpython-312.pyc from install of libstdc++-14.1.1-7.fc40.x86_64 conflicts with file from package libstdc++-14.1.1-6.fc40.i686
  file /usr/share/gcc-14/python/libstdcxx/v6/__pycache__/__init__.cpython-312.opt-1.pyc from install of libstdc++-14.1.1-7.fc40.x86_64 conflicts with file from package libstdc++-14.1.1-6.fc40.i686
  file /usr/share/gcc-14/python/libstdcxx/v6/__pycache__/__init__.cpython-312.pyc from install of libstdc++-14.1.1-7.fc40.x86_64 conflicts with file from package libstdc++-14.1.1-6.fc40.i686
  file /usr/share/gcc-14/python/libstdcxx/v6/__pycache__/printers.cpython-312.opt-1.pyc from install of libstdc++-14.1.1-7.fc40.x86_64 conflicts with file from package libstdc++-14.1.1-6.fc40.i686
  file /usr/share/gcc-14/python/libstdcxx/v6/__pycache__/printers.cpython-312.pyc from install of libstdc++-14.1.1-7.fc40.x86_64 conflicts with file from package libstdc++-14.1.1-6.fc40.i686
  file /usr/share/gcc-14/python/libstdcxx/v6/__pycache__/xmethods.cpython-312.opt-1.pyc from install of libstdc++-14.1.1-7.fc40.x86_64 conflicts with file from package libstdc++-14.1.1-6.fc40.i686
  file /usr/share/gcc-14/python/libstdcxx/v6/__pycache__/xmethods.cpython-312.pyc from install of libstdc++-14.1.1-7.fc40.x86_64 conflicts with file from package libstdc++-14.1.1-6.fc40.i686

Nothing changed. :frowning:

I also just ran rpm -Va --nofiles --nodigest

Unsatisfied dependencies for rpm-build-4.19.1.1-1.fc40.x86_64:
	(systemd-rpm-macros = 255.8-1.fc40 if rpm-build) is needed by (installed) systemd-255.8-1.fc40.x86_64
Unsatisfied dependencies for zlib-ng-compat-2.1.6-5.fc40.x86_64:
	zlib(x86-64) conflicts with (installed) zlib-ng-compat-2.1.6-5.fc40.x86_64
	zlib(x86-64) conflicts with (installed) zlib-ng-compat-2.1.7-1.fc40.x86_64
Unsatisfied dependencies for mesa-dri-drivers-24.1.2-2.fc40.x86_64:
	(mesa-dri-drivers(x86-64) = 24.1.2-7.fc40 if mesa-dri-drivers(x86-64)) is needed by (installed) mesa-libglapi-24.1.2-7.fc40.x86_64
Unsatisfied dependencies for zlib-ng-compat-2.1.7-1.fc40.x86_64:
	zlib(x86-64) conflicts with (installed) zlib-ng-compat-2.1.7-1.fc40.x86_64
	zlib(x86-64) conflicts with (installed) zlib-ng-compat-2.1.6-5.fc40.x86_64
Unsatisfied dependencies for systemd-255.8-1.fc40.x86_64:
	(systemd-rpm-macros = 255.8-1.fc40 if rpm-build) is needed by (installed) systemd-255.8-1.fc40.x86_64
Unsatisfied dependencies for mesa-libglapi-24.1.2-7.fc40.x86_64:
	(mesa-dri-drivers(x86-64) = 24.1.2-7.fc40 if mesa-dri-drivers(x86-64)) is needed by (installed) mesa-libglapi-24.1.2-7.fc40.x86_64