如何从apt --fix-broken安装中排除软件包(不要将其标记为重复)

My last post tagged as duplicate, and I don't know how to delete that duplicate mark. If you think this is duplicate or already answered please comment first, don't immediately mark as duplicate. Because these threads are not resolved my problem and I can't comment on these threads:

  1. Unable to install Cisco Packet Tracer 7.3 on Ubuntu 20.04.
  2. Can't install libdouble-conversion1 on Ubuntu-19.10

因为我可以安装并且packettracer可以正常工作,但是程序包管理器检测到packettracer有依赖项错误(at-at-spi)。因此,当我想安装另一个软件包时,软件包管理器要求我删除packettracer(--fix-broken)。在这种情况下,我使用ubuntu 20.04和Packet Tracer 7.3。

Package packettracer is refer to Cisco Packet Tracer 7.3. My OS is ubuntu 20.04.

我有一个没有明确安装的包packettracer,但是该包正在工作。

$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

即使packettacer也需要qt-at-spi,但packettracer仍在运行,可以正常运行而不会出错。但是,当我尝试安装另一个软件包(无论它是什么)时,存在依赖项错误:

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.

Why I didn't fix the dependency qt-at-spi? Because there is no official package qt-at-spi for ubuntu 20.04 repository. I just found package for ubuntu 19.10 it requires many more packages that I have to install one by one. See details explanation about this on my another thread: Looking for qt-at-spi for ubuntu 20.04

问题是: 我可以从apt --fix-broken安装中排除packettracer吗?因此,当我运行该命令时,packagetracer软件包不会被卸载。

谢谢。