我对 Cisco PacketTracer 有疑问
https://www.netacad.com/courses/packet-tracer
wolf@linux:/opt/pt/bin$ ./PacketTracer7
./PacketTracer7: error while loading shared libraries: libQt5WebEngineWidgets.so.5: cannot open shared object file: No such file or directory
wolf@linux:/opt/pt/bin$
事实证明,有些库不存在:
wolf@linux:/opt/pt/bin$ ldd PacketTracer7 | grep not
libQt5WebEngineWidgets.so.5 => not found
libQt5WebEngineCore.so.5 => not found
libQt5Script.so.5 => not found
libQt5ScriptTools.so.5 => not found
wolf@linux:/opt/pt/bin$
我已经尝试安装它,但它没有工作:
wolf@linux:/opt/pt/bin$ sudo apt install libQt5WebEngineWidgets.so.5 libQt5WebEngineCore.so.5 libQt5Script.so.5 libQt5ScriptTools.so.5
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libQt5WebEngineWidgets.so.5
E: Unable to locate package libQt5WebEngineCore.so.5
E: Unable to locate package libQt5Script.so.5
E: Unable to locate package libQt5ScriptTools.so.5
wolf@linux:/opt/pt/bin$
我也尝试将其更改为小写并.so.5
从名称中删除,但它仍然不起作用。
sudo apt install libQt5WebEngineWidgets.so libQt5WebEngineCore.so libQt5Script.so libQt5ScriptTools.so
sudo apt install libQt5WebEngineWidgets libQt5WebEngineCore libQt5Script libQt5ScriptTools
sudo apt install libqt5webenginewidgets libqt5webenginecore libqt5script libqt5scripttools
这样做的正确方法是什么?
更新
这将安装前两个库,即 libQt5WebEngineWidgets.so.5 和 libQt5WebEngineCore.so.5,但不是最后两个:
sudo apt install libqt5webenginewidgets5 libqt5webenginecore5
还要安装两个库:
wolf@linux:/opt/pt/bin$ ldd ./PacketTracer7 | g not
libQt5Script.so.5 => not found
libQt5ScriptTools.so.5 => not found
wolf@linux:/opt/pt/bin$
尝试这个:
它会拉出更多的包裹。
我曾经
apt-cache
找到过这些,例如,这里是前两个...和后两个
您还可以组合两个搜索词
最后,在https://packages.ubuntu.com/有一个可搜索的包数据库。
图书馆名称必须正确;它也区分大小写。尝试这个:
此外,使用提供的 shell 脚本。不要直接运行 ELF 文件。那是行不通的。