当前位置: 首页 > news >正文

Ubuntu-25.04 Wayland桌面环境安装Anaconda3之后无法启动anaconda-navigator问题解决

目录

  • 1. 问题描述
  • 2. 解决方案
  • 3. References

1. 问题描述

在命令行中尝试启动anaconda-navigator图形界面,报错:

albertqee@ZBG7W:~$ anaconda-navigator 
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::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 QFlags<QSurfaceFormat::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)
albertqee@ZBG7W:~$

上述报错提示桌面环境为Wayland,且无法完成GLX初始化操作。

检查GLX信息如下:

albertqee@ZBG7W:~$ glxinfo | egrep -i opengl
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics (CML GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 25.0.3-1ubuntu2
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 25.0.3-1ubuntu2
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 25.0.3-1ubuntu2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:
albertqee@ZBG7W:~$ 

并无异常,查看conda的QT信息:

albertqee@ZBG7W:~$ conda list | egrep -i qt
aws-c-mqtt                0.7.13               h5eee18b_0  
pyqt                      5.15.10         py312h6a678d5_0  
pyqt5-sip                 12.13.0         py312h5eee18b_0  
pyqtwebengine             5.15.10         py312h6a678d5_0  
qt-main                   5.15.2              h53bd1ea_10  
qt-webengine              5.15.9               h9ab4d14_7  
qtawesome                 1.3.1           py312h06a4308_0  
qtconsole                 5.5.1           py312h06a4308_0  
qtpy                      2.4.1           py312h06a4308_0  
sphinxcontrib-qthelp      1.0.3              pyhd3eb1b0_0  
albertqee@ZBG7W:~$ conda list pyqt
# packages in environment at /home/albertqee/anaconda3:
#
# Name                    Version                   Build  Channel
pyqt                      5.15.10         py312h6a678d5_0  
pyqt5-sip                 12.13.0         py312h5eee18b_0  
pyqtwebengine             5.15.10         py312h6a678d5_0  
albertqee@ZBG7W:~$

2. 解决方案

使用conda命令安装Wayland渲染架构的基础库[1],具体如下:

albertqee@ZBG7W:~$  conda install conda-forge::wayland 
Retrieving notices: done
Channels:- conda-forge- defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done## Package Plan ##environment location: /home/albertqee/anaconda3added / updated specs:- conda-forge::waylandThe following packages will be downloaded:package                    |            build---------------------------|-----------------expat-2.7.0                |       h5888daf_0         137 KB  conda-forgelibexpat-2.7.0             |       h5888daf_0          73 KB  conda-forgelibffi-3.4.6               |       h2dba641_1          56 KB  conda-forgelibstdcxx-15.1.0           |       h8f9b012_3         3.7 MB  conda-forgewayland-1.24.0             |       h3e06ad9_0         323 KB  conda-forge------------------------------------------------------------Total:         4.3 MBThe following NEW packages will be INSTALLED:libstdcxx          conda-forge/linux-64::libstdcxx-15.1.0-h8f9b012_3 wayland            conda-forge/linux-64::wayland-1.24.0-h3e06ad9_0 The following packages will be UPDATED:expat                   pkgs/main::expat-2.6.3-h6a678d5_0 --> conda-forge::expat-2.7.0-h5888daf_0 libexpat                                 2.6.3-h5888daf_0 --> 2.7.0-h5888daf_0 libffi                 pkgs/main::libffi-3.4.4-h6a678d5_1 --> conda-forge::libffi-3.4.6-h2dba641_1 Proceed ([y]/n)? yDownloading and Extracting Packages:Preparing transaction: done                                                                                                                                                                   
Verifying transaction: done                                                                                                                                                                   
Executing transaction: done                                                                                                                                                                   
albertqee@ZBG7W:~$             

安装完成之后,再次启动anaconda-navigator即可。

albertqee@ZBG7W:anaconda3$ source ~/anaconda3/bin/activate
(base) albertqee@ZBG7W:anaconda3$ anaconda-navigator
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.

界面如下图:
在这里插入图片描述

3. References

[1]. conda-forge/wayland

http://www.lryc.cn/news/587878.html

相关文章:

  • Can201-Introduction to Networking:Data Plane数据平面
  • vue2/3生命周期使用建议
  • hive的相关的优化
  • Linux 系统管理基础教程
  • 图像分割论文中的评价指标
  • 从零实现一个基于 mem0的具有长期记忆的Text2SQL代理
  • R 语言科研绘图第 64 期 --- 哑铃图
  • 当前(2024-07-14)视频插帧(VFI)方向的 SOTA 基本被三篇顶会工作占据,按“精度-速度-感知质量”三条线总结如下,供你快速定位最新范式
  • 设计模式》》门面模式 适配器模式 区别
  • js与vue基础学习
  • Linux 基础命令详解:从入门到实践(1)
  • 基于Hadoop的竞赛网站日志数据分析与可视化(上)
  • STM32介绍和GPIO
  • Spring Boot启动原理:从main方法到内嵌Tomcat的全过程
  • Datawhale AI夏令营-基于带货视频评论的用户洞察挑战赛
  • [Python] -实用技巧4-Python中浅拷贝与深拷贝的区别详解
  • 工业软件加密锁复制:一场技术与安全的博弈
  • 借助DeepSeek编写输出漂亮表格的chdb客户端
  • 终端安全最佳实践
  • IIS错误:Service Unavailable HTTP Error 503. The service is unavailable.
  • SpringAi笔记
  • OpenCV 视频处理与摄像头操作详解
  • MySQL Innodb Cluster配置
  • 【CV综合实战】基于深度学习的工业压力表智能检测与读数系统【3】使用OpenCV读取分割后的压力表读数
  • DiffDet4SAR——首次将扩散模型用于SAR图像目标检测,来自2024 GRSL(ESI高被引1%论文)
  • vue-v-model进阶-ref-nextTick
  • 网络安全核心定律
  • 5G 到 6G通信技术的革新在哪里?
  • libimagequant windows 编译
  • 基于Python的就业数据获取与分析预测系统的设计与实现