GLX error when opening anaconda navigator

I just installed Anaconda and when I try to call anaconda-navigator, I get this;

$ anaconda-navigator
qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlagsQSurfaceFormat::FormatOption(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlagsQSurfaceFormat::FormatOption(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile)
Could not initialize GLX
Aborted (core dumped)

$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 48 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: AuthenticAMD
Model name: AMD Ryzen 7 5700U with Radeon Graphics
CPU family: 23
Model: 104
Thread(s) per core: 2
Core(s) per socket: 8
Socket(s): 1
Stepping: 1
CPU(s) scaling MHz: 25%
CPU max MHz: 4372.0000
CPU min MHz: 400.0000
BogoMIPS: 3593.43
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge m
ca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall
nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep
_good nopl nonstop_tsc cpuid extd_apicid aperfmperf ra
pl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2
movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_leg
acy svm extapic cr8_legacy abm sse4a misalignsse 3dnow
prefetch osvw ibs skinit wdt tce topoext perfctr_core
perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3
hw_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bm
i1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt
clwb sha_ni xsaveopt xsavec xgetbv1 cqm_llc cqm_occup
_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveer
ptr rdpru wbnoinvd cppc arat npt lbrv svm_lock nrip_sa
ve tsc_scale vmcb_clean flushbyasid decodeassists paus
efilter pfthreshold avic v_vmsave_vmload vgif v_spec_c
trl umip rdpid overflow_recov succor smca
Virtualization features:
Virtualization: AMD-V
Caches (sum of all):
L1d: 256 KiB (8 instances)
L1i: 256 KiB (8 instances)
L2: 4 MiB (8 instances)
L3: 8 MiB (2 instances)
NUMA:
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerabilities:
Gather data sampling: Not affected
Itlb multihit: Not affected
L1tf: Not affected
Mds: Not affected
Meltdown: Not affected
Mmio stale data: Not affected
Reg file data sampling: Not affected
Retbleed: Mitigation; untrained return thunk; SMT enabled with S
TIBP protection
Spec rstack overflow: Mitigation; Safe RET
Spec store bypass: Mitigation; Speculative Store Bypass disabled via prct
l
Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointe
r sanitization
Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP always
-on; RSB filling; PBRSB-eIBRS Not affected; BHI Not af
fected
Srbds: Not affected
Tsx async abort: Not affected

$ glxinfo | grep “OpenGL”
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon Graphics (radeonsi, renoir, LLVM 19.1.1, DRM 3.57, 6.8.0-52-generic)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 24.2.8-1ubuntu1~24.04.1
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6 (Compatibility Profile) Mesa 24.2.8-1ubuntu1~24.04.1
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 24.2.8-1ubuntu1~24.04.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:

$ conda list qt
conda list pyqt
conda list mesa
packages in environment at /home/veronica/anaconda3:
Name Version Build Channel
aws-c-mqtt 0.7.13 h5eee18b_0
pyqt 5.15.10 py312h6a678d5_1
pyqt5-sip 12.13.0 py312h5eee18b_1
pyqtwebengine 5.15.10 py312h6a678d5_1
qt 5.15.9 h06a4308_0
qt-main 5.15.2 hb6262e9_11
qt-webengine 5.15.9 h9ab4d14_7
qtawesome 1.3.1 py312h06a4308_0
qtconsole 5.6.1 py312h06a4308_0
qtpy 2.4.1 py312h06a4308_0
sphinxcontrib-qthelp 1.0.3 pyhd3eb1b0_0
superqt 0.6.7 py312he106c6f_0
packages in environment at /home/veronica/anaconda3:
Name Version Build Channel
pyqt 5.15.10 py312h6a678d5_1
pyqt5-sip 12.13.0 py312h5eee18b_1
pyqtwebengine 5.15.10 py312h6a678d5_1
packages in environment at /home/veronica/anaconda3:
Name Version Build Channel

I have updated and upgraded everything including anaconda-navigator, qt, pyqt, and libglx-mesa0.

I dont understand what the problem is.

Got the same error. Problem for me was that anaconda tried to run with intel
instead of nvidia.
If
prime-select query
returns “on-demand” it might be the same for you.

Solved it this way:
sudo apt install nvidia-prime

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia anaconda-navigator
this does the same as prime-run anaconda-navigator in manjaro.

if this works, then create an alias. Beyond example is for bash with “an” instead of anaconda-navigator

touch ~/.bash_aliases
echo 'alias an="__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia anaconda-navigator"' >> ~/.bash_aliases
source ~/.bash_aliases

@Veronica We have launched an update with a fix today, you can apply it by running this command:

conda update -n base conda

The installer with the fix will be launched on the 18 of February.

The installer that will be available tomorrow will work with NVIDIA GFX cards correct? I’ve run sudo apt install nvidia-prime along with the other commands above and keep getting the same error as the OP.