I was installing a hefty sized update while in a coffee shop. Unfortunately, they had to close early, and I closed the lid on my laptop, hoping that I could resume the update when getting home. When opening the computer again, dnf failed its transaction test. KDE is having trouble now, I can still log in and use apps, but the desktop environment does not appear.
I believe I understand what the problem is, but do not know how to fix it. I need some help to understand which packages need to be deleted that are conflicting and how to do that.
Here is the output:
Running transaction check
Transaction check succeeded.
Running transaction test
Error: Transaction test error:
file /usr/share/gcc-12/python/libstdcxx/pycache/init.cpython-310.opt-1.pyc from install
of libstdc+±12.2.1-4.fc36.i686 conflicts with file from package libstdc+±12.2.1-2.fc36.x86_64
file /usr/share/gcc-12/python/libstdcxx/pycache/init.cpython-310.pyc from install of lib
stdc+±12.2.1-4.fc36.i686 conflicts with file from package libstdc+±12.2.1-2.fc36.x86_64
file /usr/share/gcc-12/python/libstdcxx/v6/pycache/init.cpython-310.opt-1.pyc from insta
ll of libstdc+±12.2.1-4.fc36.i686 conflicts with file from package libstdc+±12.2.1-2.fc36.x86_64
file /usr/share/gcc-12/python/libstdcxx/v6/pycache/init.cpython-310.pyc from install of
libstdc+±12.2.1-4.fc36.i686 conflicts with file from package libstdc+±12.2.1-2.fc36.x86_64
file /usr/share/gcc-12/python/libstdcxx/v6/pycache/printers.cpython-310.opt-1.pyc from insta
ll of libstdc+±12.2.1-4.fc36.i686 conflicts with file from package libstdc+±12.2.1-2.fc36.x86_64
file /usr/share/gcc-12/python/libstdcxx/v6/pycache/printers.cpython-310.pyc from install of
libstdc+±12.2.1-4.fc36.i686 conflicts with file from package libstdc+±12.2.1-2.fc36.x86_64
file /usr/share/gcc-12/python/libstdcxx/v6/pycache/xmethods.cpython-310.opt-1.pyc from insta
ll of libstdc+±12.2.1-4.fc36.i686 conflicts with file from package libstdc+±12.2.1-2.fc36.x86_64
file /usr/share/gcc-12/python/libstdcxx/v6/pycache/xmethods.cpython-310.pyc from install of
libstdc+±12.2.1-4.fc36.i686 conflicts with file from package libstdc+±12.2.1-2.fc36.x86_64
file /usr/share/drirc.d/00-mesa-defaults.conf from install of mesa-dri-drivers-22.3.0-1.fc36.i68
6 conflicts with file from package mesa-dri-drivers-22.2.3-1.fc36.x86_64
file /usr/share/doc/gtk3/NEWS from install of gtk3-3.24.35-1.fc36.i686 conflicts with file from
package gtk3-3.24.34-1.fc36.x86_64
file /usr/share/doc/gtk3/README from install of gtk3-3.24.35-1.fc36.i686 conflicts with file fro
m package gtk3-3.24.34-1.fc36.x86_64
file /usr/share/locale/bg/LC_MESSAGES/gtk30.mo from install of gtk3-3.24.35-1.fc36.i686 conflict
s with file from package gtk3-3.24.34-1.fc36.x86_64
file /usr/share/locale/ca/LC_MESSAGES/gtk30.mo from install of gtk3-3.24.35-1.fc36.i686 conflict
s with file from package gtk3-3.24.34-1.fc36.x86_64
file /usr/share/locale/de/LC_MESSAGES/gtk30.mo from install of gtk3-3.24.35-1.fc36.i686 conflict
s with file from package gtk3-3.24.34-1.fc36.x86_64
file /usr/share/locale/fur/LC_MESSAGES/gtk30.mo from install of gtk3-3.24.35-1.fc36.i686 conflic
ts with file from package gtk3-3.24.34-1.fc36.x86_64
file /usr/share/locale/hr/LC_MESSAGES/gtk30.mo from install of gtk3-3.24.35-1.fc36.i686 conflict
s with file from package gtk3-3.24.34-1.fc36.x86_64
file /usr/share/locale/hu/LC_MESSAGES/gtk30.mo from install of gtk3-3.24.35-1.fc36.i686 conflict
s with file from package gtk3-3.24.34-1.fc36.x86_64
file /usr/share/locale/id/LC_MESSAGES/gtk30.mo from install of gtk3-3.24.35-1.fc36.i686 conflict
s with file from package gtk3-3.24.34-1.fc36.x86_64
file /usr/share/locale/ka/LC_MESSAGES/gtk30.mo from install of gtk3-3.24.35-1.fc36.i686 conflict
s with file from package gtk3-3.24.34-1.fc36.x86_64
file /usr/share/locale/nb/LC_MESSAGES/gtk30.mo from install of gtk3-3.24.35-1.fc36.i686 conflict
s with file from package gtk3-3.24.34-1.fc36.x86_64
file /usr/share/locale/nl/LC_MESSAGES/gtk30.mo from install of gtk3-3.24.35-1.fc36.i686 conflict
s with file from package gtk3-3.24.34-1.fc36.x86_64
file /usr/share/locale/oc/LC_MESSAGES/gtk30.mo from install of gtk3-3.24.35-1.fc36.i686 conflict
s with file from package gtk3-3.24.34-1.fc36.x86_64
file /usr/share/locale/pl/LC_MESSAGES/gtk30.mo from install of gtk3-3.24.35-1.fc36.i686 conflict
s with file from package gtk3-3.24.34-1.fc36.x86_64
file /usr/share/locale/pt/LC_MESSAGES/gtk30.mo from install of gtk3-3.24.35-1.fc36.i686 conflict
s with file from package gtk3-3.24.34-1.fc36.x86_64
file /usr/share/locale/ru/LC_MESSAGES/gtk30.mo from install of gtk3-3.24.35-1.fc36.i686 conflict
s with file from package gtk3-3.24.34-1.fc36.x86_64
file /usr/share/locale/sl/LC_MESSAGES/gtk30.mo from install of gtk3-3.24.35-1.fc36.i686 conflict
s with file from package gtk3-3.24.34-1.fc36.x86_64
file /usr/share/locale/sr/LC_MESSAGES/gtk30.mo from install of gtk3-3.24.35-1.fc36.i686 conflict
s with file from package gtk3-3.24.34-1.fc36.x86_64
file /usr/share/locale/sv/LC_MESSAGES/gtk30.mo from install of gtk3-3.24.35-1.fc36.i686 conflict
s with file from package gtk3-3.24.34-1.fc36.x86_64
file /usr/share/locale/tr/LC_MESSAGES/gtk30.mo from install of gtk3-3.24.35-1.fc36.i686 conflict
s with file from package gtk3-3.24.34-1.fc36.x86_64
file /usr/share/locale/uk/LC_MESSAGES/gtk30.mo from install of gtk3-3.24.35-1.fc36.i686 conflict
s with file from package gtk3-3.24.34-1.fc36.x86_64
file /usr/share/locale/zh_TW/LC_MESSAGES/gtk30.mo from install of gtk3-3.24.35-1.fc36.i686 confl
icts with file from package gtk3-3.24.34-1.fc36.x86_64
file /usr/share/man/man1/broadwayd.1.gz from install of gtk3-3.24.35-1.fc36.i686 conflicts with
file from package gtk3-3.24.34-1.fc36.x86_64
file /usr/share/man/man1/gtk-launch.1.gz from install of gtk3-3.24.35-1.fc36.i686 conflicts with
file from package gtk3-3.24.34-1.fc36.x86_64
file /usr/share/man/man1/gtk-query-immodules-3.0.1.gz from install of gtk3-3.24.35-1.fc36.i686 c
onflicts with file from package gtk3-3.24.34-1.fc36.x86_64
file /usr/share/doc/libgomp/ChangeLog.bz2 from install of libgomp-12.2.1-4.fc36.i686 conflicts w
ith file from package libgomp-12.2.1-2.fc36.x86_64
I’m not sure if this will make things better or worse, but you could try sudo dnf history redo last to redo the last transaction.
And/or look at dnf history list to get the transaction ID numbers and dnf history info [ID_number] for the details of the specific transaction that had problems.
Again, I’m not sure this will not make things worse, but it might gives some ideas to try.
To be clear, it seems that the package update process has installed newer packages but hasn’t yet removed the old ones. I think this is where the conflicts are coming from.
When I try to remove one of said conflicts, dnf outputs this:
sudo dnf remove libstdc++-12.2.1-4.fc36.i686
No match for argument: libstdc++-12.2.1-4.fc36.i686
No packages marked for removal.
Dependencies resolved.
Nothing to do.
Complete!
file /usr/share/gcc-12/python/libstdcxx/pycache/init.cpython-310.opt-1.pyc from install
of libstdc+±12.2.1-4.fc36.i686 conflicts with file from package libstdc+±12.2.1-2.fc36.x86_64
file /usr/share/gcc-12/python/libstdcxx/pycache/init.cpython-310.pyc from install of lib
stdc+±12.2.1-4.fc36.i686 conflicts with file from package libstdc+±12.2.1-2.fc36.x86_64
file /usr/share/gcc-12/python/libstdcxx/v6/pycache/init.cpython-310.opt-1.pyc from insta
ll of libstdc+±12.2.1-4.fc36.i686 conflicts with file from package libstdc+±12.2.1-2.fc36.x86_64
file /usr/share/gcc-12/python/libstdcxx/v6/pycache/init.cpython-310.pyc from install of
libstdc+±12.2.1-4.fc36.i686 conflicts with file from package libstdc+±12.2.1-2.fc36.x86_64
file /usr/share/gcc-12/python/libstdcxx/v6/pycache/printers.cpython-310.opt-1.pyc from insta
ll of libstdc+±12.2.1-4.fc36.i686 conflicts with file from package libstdc+±12.2.1-2.fc36.x86_64
file /usr/share/gcc-12/python/libstdcxx/v6/pycache/printers.cpython-310.pyc from install of
libstdc+±12.2.1-4.fc36.i686 conflicts with file from package libstdc+±12.2.1-2.fc36.x86_64
file /usr/share/gcc-12/python/libstdcxx/v6/pycache/xmethods.cpython-310.opt-1.pyc from insta
ll of libstdc+±12.2.1-4.fc36.i686 conflicts with file from package libstdc+±12.2.1-2.fc36.x86_64
file /usr/share/gcc-12/python/libstdcxx/v6/pycache/xmethods.cpython-310.pyc from install of
libstdc+±12.2.1-4.fc36.i686 conflicts with file from package libstdc+±12.2.1-2.fc36.x86_64
I suggest that instead of trying to remove the package right away you actually check what is installed. dnf list installed libstdc++ then base the action on that result.
To me your error message indicates that it is trying to update the i686 package before the x86_64 package. One fix may be to do simply dnf upgrade libstdc++ --allowerasing so dnf knows it is allowed to remove conflicting packages as part of the upgrade.
I strongly suggest that you plan in the future so that updates are not interrupted in any way. This is one example of why an interruption is a bad thing.
sudo dnf upgrade libstdc++ --allowerasing
Fedora 36 - x86_64 - Updates 35 kB/s | 24 kB 00:00
Fedora 36 - x86_64 - Updates 467 kB/s | 464 kB 00:00
Last metadata expiration check: 0:00:01 ago on Sat 17 Dec 2022 08:06:31 PM PST.
Dependencies resolved.
==================================================================================================
Package Architecture Version Repository Size
==================================================================================================
Upgrading:
libstdc++ i686 12.2.1-4.fc36 updates 833 k
Transaction Summary
==================================================================================================
Upgrade 1 Package
Total size: 833 k
Is this ok [Y/n]: y
Downloading Packages:
[SKIPPED] libstdc++-12.2.1-4.fc36.i686.rpm: Already downloaded
Running transaction check
Transaction check succeeded.
Running transaction test
Error: Transaction test error:
file /usr/share/gcc-12/python/libstdcxx/__pycache__/__init__.cpython-310.opt-1.pyc from install of libstdc++-12.2.1-4.fc36.i686 conflicts with file from package libstdc++-12.2.1-2.fc36.x86_64
file /usr/share/gcc-12/python/libstdcxx/__pycache__/__init__.cpython-310.pyc from install of libstdc++-12.2.1-4.fc36.i686 conflicts with file from package libstdc++-12.2.1-2.fc36.x86_64
file /usr/share/gcc-12/python/libstdcxx/v6/__pycache__/__init__.cpython-310.opt-1.pyc from install of libstdc++-12.2.1-4.fc36.i686 conflicts with file from package libstdc++-12.2.1-2.fc36.x86_64
file /usr/share/gcc-12/python/libstdcxx/v6/__pycache__/__init__.cpython-310.pyc from install of libstdc++-12.2.1-4.fc36.i686 conflicts with file from package libstdc++-12.2.1-2.fc36.x86_64
file /usr/share/gcc-12/python/libstdcxx/v6/__pycache__/printers.cpython-310.opt-1.pyc from install of libstdc++-12.2.1-4.fc36.i686 conflicts with file from package libstdc++-12.2.1-2.fc36.x86_64
file /usr/share/gcc-12/python/libstdcxx/v6/__pycache__/printers.cpython-310.pyc from install of libstdc++-12.2.1-4.fc36.i686 conflicts with file from package libstdc++-12.2.1-2.fc36.x86_64
file /usr/share/gcc-12/python/libstdcxx/v6/__pycache__/xmethods.cpython-310.opt-1.pyc from install of libstdc++-12.2.1-4.fc36.i686 conflicts with file from package libstdc++-12.2.1-2.fc36.x86_64
file /usr/share/gcc-12/python/libstdcxx/v6/__pycache__/xmethods.cpython-310.pyc from install of libstdc++-12.2.1-4.fc36.i686 conflicts with file from package libstdc++-12.2.1-2.fc36.x86_64