file /usr/share/gcc-14/python/libstdcxx/pycache/init.cpython-312.opt-1.pyc from install of libstdc+±14.1.1-7.fc40.i686 conflicts with file from package libstdc+±14.1.1-6.fc40.x86_64
file /usr/share/gcc-14/python/libstdcxx/pycache/init.cpython-312.pyc from install of libstdc+±14.1.1-7.fc40.i686 conflicts with file from package libstdc+±14.1.1-6.fc40.x86_64
file /usr/share/gcc-14/python/libstdcxx/v6/pycache/init.cpython-312.opt-1.pyc from install of libstdc+±14.1.1-7.fc40.i686 conflicts with file from package libstdc+±14.1.1-6.fc40.x86_64
file /usr/share/gcc-14/python/libstdcxx/v6/pycache/init.cpython-312.pyc from install of libstdc+±14.1.1-7.fc40.i686 conflicts with file from package libstdc+±14.1.1-6.fc40.x86_64
file /usr/share/gcc-14/python/libstdcxx/v6/pycache/printers.cpython-312.opt-1.pyc from install of libstdc+±14.1.1-7.fc40.i686 conflicts with file from package libstdc+±14.1.1-6.fc40.x86_64
file /usr/share/gcc-14/python/libstdcxx/v6/pycache/printers.cpython-312.pyc from install of libstdc+±14.1.1-7.fc40.i686 conflicts with file from package libstdc+±14.1.1-6.fc40.x86_64
file /usr/share/gcc-14/python/libstdcxx/v6/pycache/xmethods.cpython-312.opt-1.pyc from install of libstdc+±14.1.1-7.fc40.i686 conflicts with file from package libstdc+±14.1.1-6.fc40.x86_64
file /usr/share/gcc-14/python/libstdcxx/v6/pycache/xmethods.cpython-312.pyc from install of libstdc+±14.1.1-7.fc40.i686 conflicts with file from package libstdc+±14.1.1-6.fc40.x86_64
What command are you using to update your system? It appears that it is trying to update libstdc++.i686 without also updating libstdc++.x86_64. You might try running dnf update libstdc++ first.
tried still that same issue, i tried to update using sudo dnf update libstdc++ and sudo dnf update libstdc++.i686 and sudo dnf update , all of this still same error and other stackoverflow commands too
For some reason, your system is trying to update the i686 version but not the x86_64 version and that combination will not work. Maybe you have something installed that is preventing the x86_64 version from updating. Does dnf --allowerasing update libstdc++.x86_64 cause it to try to remove something so that the x86_64 version of the package will update?
You might want to verify that there are no exclude=... lines in /etc/dnf/dnf.conf or any of the repo files under /etc/yum.repos.d. Those “exclude” lines can cause this sort of problem with DNF’s dependency solving algorithm.
Ah, so you do have a duplicate install of libstdc++. That is the problem. Fixing that could be tricky though. If you try to remove the package, it might remove the files that belong to the newer version. I’d make sure you have a backup of anything important. If you can take a quick snapshot of your rootfs before proceeding, that might also be wise.
You should probably run dnf reinstall libstdc++.x86_64 immediately after you run that rpm --nodeps -e ... command just to be sure that none of the files that actually belong to the newer version end up missing. (And hope that dnf doesn’t depend on libstdc++ if any of the files are missing. In a worst-case scenario, you could fix things up from a Live session.)
Hmm, if I’m reading this correctly, it looks like libstdc++ is in DNF’s dependency chain:
However, the rpm command (from the rpm package) does not appear to depend on libstdc++.
$ dnf rq --whatdepends libstdc++ | grep rpm
Last metadata expiration check: 0:32:30 ago on Sun 07 Jul 2024 08:36:26 PM CDT.
plasma-discover-rpm-ostree-0:5.27.11-3.fc39.i686
plasma-discover-rpm-ostree-0:5.27.11-3.fc39.x86_64
plasma-discover-rpm-ostree-0:5.27.8-1.fc39.i686
plasma-discover-rpm-ostree-0:5.27.8-1.fc39.x86_64
rpm-ostree-0:2023.7-1.fc39.x86_64
rpm-ostree-0:2024.5-1.fc39.x86_64
tiled-plugin-rpmap-0:1.10.2-1.fc39.x86_64
tiled-plugin-rpmap-0:1.11.0-1.fc39.x86_64
You might want to run dnf download libstdc++.x86_64 before running rpm --nodeps -e ... just in case. If you find that you cannot run dnf after you’ve removed that package, you should still be able to run rpm -ivh ./libstdc++* if you have the package downloaded.