ubuntu22.04安装网易云音乐会报错:
/opt/netease/netease-cloud-music/netease-cloud-music: /opt/netease/netease-cloud-music/libs/libselinux.so.1: no version information available (required by /opt/netease/netease-cloud-music/libs/libgio-2.0.so.0)
/opt/netease/netease-cloud-music/netease-cloud-music: symbol lookup error: /opt/netease/netease-cloud-music/libs/libgio-2.0.so.0: undefined symbol: g_module_open_full
解决方法:
sudo gedit netease-cloud-music.bash
```
#!/bin/sh
HERE="$(dirname "$(readlink -f "${0}")")"
export LD_LIBRARY_PATH=/opt/netease/netease-cloud-music/libs
export QT_PLUGIN_PATH="${HERE}"/plugins
export QT_QPA_PLATFORM_PLUGIN_PATH="${HERE}"/plugins/platforms
cd /lib/x86_64-linux-gnu/
exec "${HERE}"/netease-cloud-music $@
```
上面其实只添加了一行:cd /lib/x86_64-linux-gnu/
/opt/netease/netease-cloud-music/netease-cloud-music: /opt/netease/netease-cloud-music/libs/libselinux.so.1: no version information available (required by /opt/netease/netease-cloud-music/libs/libgio-2.0.so.0)
/opt/netease/netease-cloud-music/netease-cloud-music: symbol lookup error: /opt/netease/netease-cloud-music/libs/libgio-2.0.so.0: undefined symbol: g_module_open_full
解决方法:
sudo gedit netease-cloud-music.bash
```
#!/bin/sh
HERE="$(dirname "$(readlink -f "${0}")")"
export LD_LIBRARY_PATH=/opt/netease/netease-cloud-music/libs
export QT_PLUGIN_PATH="${HERE}"/plugins
export QT_QPA_PLATFORM_PLUGIN_PATH="${HERE}"/plugins/platforms
cd /lib/x86_64-linux-gnu/
exec "${HERE}"/netease-cloud-music $@
```
上面其实只添加了一行:cd /lib/x86_64-linux-gnu/