Steam installation failure

Installing steam from rpmfusion-nonfree-steam repo using dnf failed with below error:

Error: Transaction test error:
  file /usr/share/gcc-11/python/libstdcxx/__pycache__/__init__.cpython-310.opt-1.pyc from install of libstdc++-11.2.1-7.fc35.i686 conflicts with file from package libstdc++-11.2.1-1.fc35.x86_64
  file /usr/share/gcc-11/python/libstdcxx/__pycache__/__init__.cpython-310.pyc from install of libstdc++-11.2.1-7.fc35.i686 conflicts with file from package libstdc++-11.2.1-1.fc35.x86_64
  file /usr/share/gcc-11/python/libstdcxx/v6/__pycache__/__init__.cpython-310.opt-1.pyc from install of libstdc++-11.2.1-7.fc35.i686 conflicts with file from package libstdc++-11.2.1-1.fc35.x86_64
  file /usr/share/gcc-11/python/libstdcxx/v6/__pycache__/__init__.cpython-310.pyc from install of libstdc++-11.2.1-7.fc35.i686 conflicts with file from package libstdc++-11.2.1-1.fc35.x86_64
  file /usr/share/gcc-11/python/libstdcxx/v6/__pycache__/printers.cpython-310.opt-1.pyc from install of libstdc++-11.2.1-7.fc35.i686 conflicts with file from package libstdc++-11.2.1-1.fc35.x86_64
  file /usr/share/gcc-11/python/libstdcxx/v6/__pycache__/printers.cpython-310.pyc from install of libstdc++-11.2.1-7.fc35.i686 conflicts with file from package libstdc++-11.2.1-1.fc35.x86_64
  file /usr/share/gcc-11/python/libstdcxx/v6/__pycache__/xmethods.cpython-310.opt-1.pyc from install of libstdc++-11.2.1-7.fc35.i686 conflicts with file from package libstdc++-11.2.1-1.fc35.x86_64
  file /usr/share/gcc-11/python/libstdcxx/v6/__pycache__/xmethods.cpython-310.pyc from install of libstdc++-11.2.1-7.fc35.i686 conflicts with file from package libstdc++-11.2.1-1.fc35.x86_64
  file /usr/share/gcc-11/python/libstdcxx/v6/printers.py from install of libstdc++-11.2.1-7.fc35.i686 conflicts with file from package libstdc++-11.2.1-1.fc35.x86_64
  file /usr/share/gcc-11/python/libstdcxx/v6/xmethods.py from install of libstdc++-11.2.1-7.fc35.i686 conflicts with file from package libstdc++-11.2.1-1.fc35.x86_64
  file /usr/share/locale/en@boldquot/LC_MESSAGES/elfutils.mo from install of elfutils-libelf-0.186-1.fc35.i686 conflicts with file from package elfutils-libelf-0.185-5.fc35.x86_64
  file /usr/share/locale/en@quot/LC_MESSAGES/elfutils.mo from install of elfutils-libelf-0.186-1.fc35.i686 conflicts with file from package elfutils-libelf-0.185-5.fc35.x86_64
  file /usr/share/locale/ja/LC_MESSAGES/elfutils.mo from install of elfutils-libelf-0.186-1.fc35.i686 conflicts with file from package elfutils-libelf-0.185-5.fc35.x86_64
  file /usr/share/locale/pl/LC_MESSAGES/elfutils.mo from install of elfutils-libelf-0.186-1.fc35.i686 conflicts with file from package elfutils-libelf-0.185-5.fc35.x86_64
  file /usr/share/locale/uk/LC_MESSAGES/elfutils.mo from install of elfutils-libelf-0.186-1.fc35.i686 conflicts with file from package elfutils-libelf-0.185-5.fc35.x86_64
  file /usr/share/doc/libxcrypt/NEWS from install of libxcrypt-4.4.27-1.fc35.i686 conflicts with file from package libxcrypt-4.4.26-4.fc35.x86_64
  file /usr/share/man/man5/crypt.5.gz from install of libxcrypt-4.4.27-1.fc35.i686 conflicts with file from package libxcrypt-4.4.26-4.fc35.x86_64
  file /usr/share/libdrm/amdgpu.ids from install of libdrm-2.4.109-1.fc35.i686 conflicts with file from package libdrm-2.4.107-2.fc35.x86_64
  file /usr/share/doc/libgpg-error/NEWS from install of libgpg-error-1.43-1.fc35.i686 conflicts with file from package libgpg-error-1.42-3.fc35.x86_64
  file /usr/share/libgpg-error/errorref.txt from install of libgpg-error-1.43-1.fc35.i686 conflicts with file from package libgpg-error-1.42-3.fc35.x86_64
  file /usr/share/locale/cs/LC_MESSAGES/libgpg-error.mo from install of libgpg-error-1.43-1.fc35.i686 conflicts with file from package libgpg-error-1.42-3.fc35.x86_64
  file /usr/share/locale/ru/LC_MESSAGES/libgpg-error.mo from install of libgpg-error-1.43-1.fc35.i686 conflicts with file from package libgpg-error-1.42-3.fc35.x86_64
  file /usr/share/doc/glib2/NEWS from install of glib2-2.70.2-1.fc35.i686 conflicts with file from package glib2-2.70.0-5.fc35.x86_64
  file /usr/share/locale/hr/LC_MESSAGES/glib20.mo from install of glib2-2.70.2-1.fc35.i686 conflicts with file from package glib2-2.70.0-5.fc35.x86_64
  file /usr/share/locale/it/LC_MESSAGES/glib20.mo from install of glib2-2.70.2-1.fc35.i686 conflicts with file from package glib2-2.70.0-5.fc35.x86_64
  file /usr/share/locale/oc/LC_MESSAGES/glib20.mo from install of glib2-2.70.2-1.fc35.i686 conflicts with file from package glib2-2.70.0-5.fc35.x86_64
  file /usr/share/locale/pl/LC_MESSAGES/glib20.mo from install of glib2-2.70.2-1.fc35.i686 conflicts with file from package glib2-2.70.0-5.fc35.x86_64
  file /usr/share/locale/pt/LC_MESSAGES/glib20.mo from install of glib2-2.70.2-1.fc35.i686 conflicts with file from package glib2-2.70.0-5.fc35.x86_64
  file /usr/share/locale/pt_BR/LC_MESSAGES/glib20.mo from install of glib2-2.70.2-1.fc35.i686 conflicts with file from package glib2-2.70.0-5.fc35.x86_64
  file /usr/share/locale/ru/LC_MESSAGES/glib20.mo from install of glib2-2.70.2-1.fc35.i686 conflicts with file from package glib2-2.70.0-5.fc35.x86_64
  file /usr/share/locale/sv/LC_MESSAGES/glib20.mo from install of glib2-2.70.2-1.fc35.i686 conflicts with file from package glib2-2.70.0-5.fc35.x86_64
  file /usr/share/locale/uk/LC_MESSAGES/glib20.mo from install of glib2-2.70.2-1.fc35.i686 conflicts with file from package glib2-2.70.0-5.fc35.x86_64
  file /usr/share/man/man1/gapplication.1.gz from install of glib2-2.70.2-1.fc35.i686 conflicts with file from package glib2-2.70.0-5.fc35.x86_64
  file /usr/share/man/man1/gdbus.1.gz from install of glib2-2.70.2-1.fc35.i686 conflicts with file from package glib2-2.70.0-5.fc35.x86_64
  file /usr/share/man/man1/gio-querymodules.1.gz from install of glib2-2.70.2-1.fc35.i686 conflicts with file from package glib2-2.70.0-5.fc35.x86_64
  file /usr/share/man/man1/gio.1.gz from install of glib2-2.70.2-1.fc35.i686 conflicts with file from package glib2-2.70.0-5.fc35.x86_64
  file /usr/share/man/man1/glib-compile-schemas.1.gz from install of glib2-2.70.2-1.fc35.i686 conflicts with file from package glib2-2.70.0-5.fc35.x86_64
  file /usr/share/man/man1/gsettings.1.gz from install of glib2-2.70.2-1.fc35.i686 conflicts with file from package glib2-2.70.0-5.fc35.x86_64

You are missing the exact command you have used to install steam.

When using fedora, everything should be fine, please use yum update first.

If using ostree (silverblue/ostree), you will likely need an updated ostree system. Please rebase on current before installing steam as it needs the same 32bit library counterpart as used by ostree.

Thanks for your reply, I used sudo dnf install steam -y and the details above are the error output from this command.

As @kwizart says, you need to update your system first.

What happens is steam needs a 32 bit version of many packages, e.g. libstdc++. You already have the 64 bit version of libstdc++ installed, but not the latest version of it. The 32 and 64 bit versions of a package should be able to coexist, but only if they are of the same version.

So try dnf upgrade first, and then run your dnf install steam.

1 Like

There are also some options with dnf that can help, such as --allowerasing, --refresh, --skip-broken, --best, etc.
Whenever you get errors about package mismatches, the first response should always be that you do a full system upgrade, and the best way to do that is with dnf --refresh upgrade. Once the upgrade completes then try the install again, and it often will work.

1 Like