解决anaconda启动的错误

安装好的anaconda启动报错如下:

anaconda-navigator 
2021-12-02 20:57:12,833 - WARNING linux_scaling.get_scaling_factor_using_dbus:31
An exception occurred during fetching list of system display settings.

libGL error: MESA-LOADER: failed to open iris: /home/nication/anaconda3/lib/python3.9/site-packages/PyQt5/../../../libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/iris_dri.so) (search paths /usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris: /home/nication/anaconda3/lib/python3.9/site-packages/PyQt5/../../../libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/iris_dri.so) (search paths /usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /home/nication/anaconda3/lib/python3.9/site-packages/PyQt5/../../../libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/swrast_dri.so) (search paths /usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
2021-12-02 20:57:55,550 - ERROR download_api._download:228
HTTPSConnectionPool(host='optimise2.assets-servd.host', port=443): Read timed out. (read timeout=5)

QXcbConnection: XCB error: 3 (BadWindow), sequence: 3225, resource id: 14878253, major code: 40 (TranslateCoords), minor code: 0

后来发现是系统下的/usr/lib/libstdc++.so.6.0.29, anaconda下的/lib/libstdc++.so.6.0.28两个版本居然不一致,那就采用偷天换日的方法吧。

mv ~/anaconda3/lib/libstdc++.so.6.0.28 ~/anaconda3/lib/libstdc++.so.6.0.28bake

cp /usr/lib/libstdc++.so.6.0.29  ~/anaconda3/lib/libstdc++.so.6.0.28

现在启动就没有什么问题了:

anaconda-navigator 
2021-12-02 21:34:56,159 - WARNING linux_scaling.get_scaling_factor_using_dbus:31
An exception occurred during fetching list of system display settings.

2021-12-02 21:35:31,590 - ERROR download_api._download:228
HTTPSConnectionPool(host='optimise2.assets-servd.host', port=443): Read timed out. (read timeout=5)

2021-12-02 21:35:31,921 - ERROR download_api._download:228
HTTPSConnectionPool(host='optimise2.assets-servd.host', port=443): Read timed out. (read timeout=5)

差不多算是正常了吧

 

上一篇:CrossOver for Mac v18.5 中文破解版下载-可以安装Windows软件


下一篇:解决类似运行报错: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21‘ not found 的问题