包packettracer指的是Cisco Packet Tracer 7.3。我的操作系统是 Ubuntu 20.04。
我安装了 packettracer,但该软件包需要一个我在 Ubuntu 20.04 存储库中找不到的qt-at-spi软件包。
$sudo dpkg -i PacketTracer_730_amd64.deb
Selecting previously unselected package packettracer.
(Reading database ... 199702 files and directories currently installed.)
Preparing to unpack .../PacketTracer_730_amd64.deb ...
Unpacking packettracer (7.3.0) ...
dpkg: dependency problems prevent configuration of packettracer:
packettracer depends on qt-at-spi; however:
Package qt-at-spi is not installed.
dpkg: error processing package packettracer (--install):
dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu2) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for shared-mime-info (1.15-1) ...
Errors were encountered while processing:
packettracer
我搜索了那个包,但我发现只有qt-at-spi for ubuntu 18.04。我尝试安装它,但它还需要其他软件包。
$ sudo dpkg -i qt-at-spi_0.4.0-8_amd64.deb
Selecting previously unselected package qt-at-spi:amd64.
(Reading database ... 202991 files and directories currently installed.)
Preparing to unpack .../qt-at-spi_0.4.0-8_amd64.deb ...
Unpacking qt-at-spi:amd64 (0.4.0-8) ...
dpkg: dependency problems prevent configuration of qt-at-spi:amd64:
qt-at-spi:amd64 depends on libqt4-dbus (>= 4:4.8.0); however:
Package libqt4-dbus is not installed.
qt-at-spi:amd64 depends on libqtcore4 (>= 4:4.8~); however:
Package libqtcore4:amd64 is not installed.
qt-at-spi:amd64 depends on libqtgui4 (>= 4:4.8~); however:
Package libqtgui4 is not installed.
dpkg: error processing package qt-at-spi:amd64 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
qt-at-spi:amd64
我再次搜索了其他软件包(libqt4-dbus、libqtcore4、libqtgui4),但我发现仅适用于 20.04 以下的 Ubuntu 版本(即 18.04、19.04、19.10),Ubuntu 20.04 没有。
我一直在尝试安装这些软件包,但它们又依赖于其他不可用的软件包,依此类推。
我试图安装Qt-5。安装了 Qt-5.12.8 但我仍然没有得到qt-at-spi包。
Packettracer 甚至似乎不需要qt-at-spi,因为它运行正常而没有错误。但是,当我尝试安装另一个包(不管它是什么)时,出现依赖错误:
packettracer : Depends: qt-at-spi but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
因此,我必须先运行“apt --fix-broken install”并卸载 packettracer,然后才能安装另一个包。然后,当安装了另一个软件包时,我再次重新安装了 packettracer。这很烦人。
$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
packettracer
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
问题是:
- 你能帮忙找到 ubuntu 20.04 的 qt-at-spi 吗?或者
- 我可以从 apt --fix-broken install 中排除 packettracer 吗?
按着这些次序 :
我还在 YouTube https://www.youtube.com/watch?v=5FuBKG49bIY上放了一段视频,它显示了相同的过程,但可能更有帮助。
在 20.04 焦点上。除了 qt-at-spi 之外没有依赖问题。
在您下载PacketTracer_730_amd64.deb的目录中:
用于
/
搜索,然后键入qt-at-spi
。用于
x
删除“, qt-at-spi”,然后<shift>:wq
写入/保存并退出。sudo apt --fix-broken install
谢谢你们!