寻找适用于 ubuntu 20.04 的 qt-at-spi

寻找适用于 ubuntu 20.04 的 qt-at-spi

包裹数据包追踪器指的是Cisco Packet Tracer 7.3。我的操作系统是 Ubuntu 20.04。

我安装了 packettracer,但是该软件包需要一个qt-在spi我在 Ubuntu 20.04 存储库中找不到该软件包。

$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-在spi对于 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-在spi包裹。

Packettracer 似乎甚至不需要qt-在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 吗?

答案1

按着这些次序 :

cd Desktop
mkdir working-dir
cd working-dir
cp ~/Downloads/PacketTracer_730_amd64.deb .
ls
wget http://ftp.br.debian.org/debian/pool/main/d/double-conversion/libdouble-conversion1_3.1.0-3_amd64.deb http://archive.ubuntu.com/ubuntu/pool/main/libj/libjpeg-turbo/libjpeg-turbo8_2.0.3-0ubuntu1_amd64.deb http://archive.ubuntu.com/ubuntu/pool/main/libj/libjpeg8-empty/libjpeg8_8c-2ubuntu8_amd64.deb
ls -l
chmod +x *
ls -l
sudo dpkg -i *
sudo featherpad /var/lib/dpkg/status #featherpad here, is my text editor
    #ctrl+f (search) > Depends: libdouble-conversion1, qt-at-spi > (delete-this-line) > save & close
sudo apt --fix-broken install
packettracer

我还在 YouTube 上发布了一个视频https://www.youtube.com/watch?v=5FuBKG49bIY它展示了相同的过程但可能会更有帮助。

答案2

在 20.04 focus 上。除 qt-at-spi 外,没有依赖性问题。

在下载的目录中PacketTracer_730_amd64.deb

sudo dpkg -i *
sudo vi /var/lib/dpkg/status

使用/搜索,然后输入qt-at-spi

使用x删除“,qt-at-spi”,然后<shift>:wq写入/保存并退出。

sudo apt --fix-broken install

谢谢你们!

相关内容