我正在尝试在 Ubuntu 19.04 上安装 Packet Tracer,但是当我尝试启动它时出现以下错误:
./PacketTracer7: ./libcrypto.so.1.0.0: no version information available (required by ./PacketTracer7)
但是当我尝试安装时libssl1.0.0
出现以下错误:
**Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libssl1.0.0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source**
**E: Package 'libssl1.0.0' has no installation candidate**
我还收集了此的调试:
Reading symbols from PacketTracer7...
(No debugging symbols found in PacketTracer7)
(gdb) run
Starting program: /opt/pt/bin/PacketTracer7
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffeda96700 (LWP 2775)]
[New Thread 0x7fffece7a700 (LWP 2776)]
[New Thread 0x7fffa7ffd700 (LWP 2778)]
Thread 1 "PacketTracer7" received signal SIGSEGV, Segmentation fault.
0x00000000034602dc in CDeviceTypesBox::CDeviceTypesBox(QVector<SDeviceTypes_t*>, QWidget*, char const*, QFlags<Qt::WindowType>) ()
(gdb) where
#0 0x00000000034602dc in CDeviceTypesBox::CDeviceTypesBox(QVector<SDeviceTypes_t*>, QWidget*, char const*, QFlags<Qt::WindowType>) ()
#1 0x0000000003473201 in CNetworkComponentBox::CNetworkComponentBox(QWidget*, char const*, QFlags<Qt::WindowType>) ()
#2 0x0000000002e9ba0a in Ui_CAppWindowBase::setupUi(QMainWindow*) ()
#3 0x0000000002e96b26 in CAppWindow::CAppWindow(QWidget*, char const*, QFlags<Qt::WindowType>) ()
#4 0x000000000341c801 in oldMain(int, char**) ()
#5 0x00007ffff406cb6b in __libc_start_main (main=0x541620 <main>, argc=1,
argv=0x7fffffffdf48, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7fffffffdf38)
at ../csu/libc-start.c:308
#6 0x000000000054ad79 in _start ()
提前感谢你的帮助。再次抱歉,我缺乏技术知识来解释这个问题。
答案1
您可以尝试从下载18.10 存储库,因为它在 19.04 还不可用。
wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu6.2_amd64.deb
sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu6.2_amd64.deb
答案2
我在让 PT 在 Ubuntu 19.04 上运行时遇到了一些麻烦,经过一番研究,我发现不仅需要 libpng12 包,而且由于 /lib 现在是 /usr/lib 的符号链接,因此需要进一步自定义。虽然我很感谢大家提供自定义 .deb 包的链接,但我想自己动手
假设 PacketTracer 7.2.2 已安装到 /opt/pt
#create dir to hold libpng12
sudo mkdir /opt/pt/libpng
cd /opt/pt/libpng
#obtain official package
sudo wget http://security.ubuntu.com/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb .
#extract package
sudo dpkg-deb -x libpng12-0_1.2.54-1ubuntu1.1_amd64.deb ./libpng12
#Original package structure
libpng12/
├── lib
│ └── x86_64-linux-gnu
│ ├── libpng12.so.0 -> libpng12.so.0.54.0
│ └── libpng12.so.0.54.0
└── usr
├── lib
│ └── x86_64-linux-gnu
│ └── libpng12.so.0 -> /lib/x86_64-linux-gnu/libpng12.so.0
└── share
└── doc
└── libpng12-0
├── ANNOUNCE
├── changelog.Debian.gz
├── copyright
├── KNOWNBUG
├── libpng-1.2.54.txt.gz
├── README.Debian
├── README.gz
└── TODO
#export package detail
sudo dpkg-deb -e libpng12-0_1.2.54-1ubuntu1.1_amd64.deb ./libpng12/DEBIAN
#remove symlink from /usr/lib
sudo rm ./libpng12/usr/lib/x86_64-linux-gnu/libpng12.so.0
#move all contents from /lib to /usr/lib
sudo mv ./libpng12/lib/x86_64-linux-gnu/* ./libpng12/usr/lib/x86_64-linux-gnu/
#build package
sudo dpkg-deb -b ./libpng12 libpng12-0_1.2.54_amd64_custom.deb
#install custom package
sudo apt install ./libpng12-0_1.2.54_amd64_custom.deb