在 Ubuntu 23.1 上安装 Cisco Packet Tracer 时出现一系列错误

问题描述 投票:0回答:1

我正在尝试在我的 ubuntu 23 操作系统上安装 CiscoPacketTracer。但它一直给我错误。

thejas@thejas:~/Downloads$ sudo dpkg -i Packet_Tracer821_amd64_signed.deb
Selecting previously unselected package packettracer.
(Reading database ... 229598 files and directories currently installed.)
Preparing to unpack Packet_Tracer821_amd64_signed.deb ...
Unpacking packettracer (8.2.1) ...
dpkg: dependency problems prevent configuration of packettracer:
 packettracer depends on libgl1-mesa-glx; however:
  Package libgl1-mesa-glx is not installed.
 packettracer depends on libxcb-xinerama0-dev; however:
  Package libxcb-xinerama0-dev is not installed.

dpkg: error processing package packettracer (--install):
 dependency problems - leaving unconfigured
Processing triggers for shared-mime-info (2.2-1) ...
Errors were encountered while processing:
 packettracer



我尝试安装所需的依赖项。但它说 libgl1-mesa-glx 没有安装候选者。

thejas@thejas:~/Downloads$ sudo apt-get install libgl1-mesa-glx libxcb-xinerama0-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libgl1-mesa-glx 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 'libgl1-mesa-glx' has no installation candidate
ubuntu dependencies debian cisco packet-sniffers
1个回答
0
投票

解决了。问题是找不到该库所需的存储库。首先进入 https://packages.ubuntu.com/lunar-updates/amd64/libgl1-mesa-glx/download,因为我有 amd64 架构和 Ubuntu mantic 23.1 版本。 然后选择您喜欢的镜子。替换下面的链接。

deb http://<preferred mirror> lunar-updates main universe

然后将该行添加到您的

/etc/apt/sources.list
。您可以参考此社区帖子。 https://askubuntu.com/questions/197564/how-do-i-add-a-line-to-my-etc-apt-sources-list .

然后运行命令,

sudo apt-get update

刷新本地包索引。然后使用安装 Cisco Packet Tracer,

sudo apt install <absolute file path>
© www.soinside.com 2019 - 2024. All rights reserved.