截至 2022 年 6 月,Octave 6.2.0 的依赖关系似乎已损坏:
octave
/usr/libexec/octave/6.2.0/exec/x86_64-pc-linux-gnu/octave-gui: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
所以我尝试了以下方法:
sudo apt remove octave
sudo apt upgrade
sudo apt autoremove
sudo apt update
sudo apt upgrade
sudo apt install octave
同样的问题。我认为 Debian Bullseye 仅支持 QT 6。有什么想法吗?我应该提到这是使用 WSL 在 Windows 上运行的 Debian
cat /etc/debian_version
11.3
cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11" VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
最佳答案
好吧,我终于找到了答案。这是 Windows 中 WSL 1 的问题。修复方法是升级到 WSL 2(未经测试)或在 WSL 中发出以下命令:
sudo strip --remove-section=.note.ABI-tag/usr/lib/x86_64-linux-gnu/libQt5Core.so.5
有效!
关于debian - Octave 6.2.0 无法在 WSL1 上运行的 Debian Bullseye 11.3 上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72732302/