I am getting the following error
Loaded SDL version 2.0.15-6655637
Gtk-Message: Failed to load module "gail"
Gtk-Message: Failed to load module "atk-bridge"
(steam:2906): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",
/usr/share/themes/Yaru/gtk-2.0/main.rc:775: error: unexpected identifier `direction', expected character `}'
(steam:2906): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",
/usr/share/themes/Yaru/gtk-2.0/hacks.rc:28: error: invalid string constant "normal_entry", expected valid string constant
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Steam: An X Error occurred
X Error of failed request: GLXBadContext
Major opcode of failed request: 151
Serial number of failed request: 46
xerror_handler: X failed, continuing
Steam: An X Error occurred
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 151
Value in failed request: 0x0
Serial number of failed request: 45
xerror_handler: X failed, continuing
Steam: An X Error occurred
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 151
Serial number of failed request: 47
xerror_handler: X failed, continuing
assert_20210727110139_1.dmp[2969]: Uploading dump (out-of-process)
/tmp/dumps/assert_20210727110139_1.dmp
/home/indranilrnr/.steam/debian-installation/steam.sh: line 772: 2906 Segmentation fault (core dumped) $STEAM_DEBUGGER $DEBUGGER_ARGS "$STEAMROOT/$STEAMEXEPATH" "$@"
I have already tried to install the 1386 version of nvdia-driver-470 but it kind of takes the nvidia graphics card away and uses llvm pipe but steam runs with the amd gpu, but while I try to get the nvidia gpu back using nvidia-driver-470 with
sudo apt-get install nvidia-driver-470
then steam fails again on launch with the above mentioned error.
How can I fix it?