![无法在 Ubuntu-19.10 上安装 libdouble-conversion1](https://linux22.com/image/920298/%E6%97%A0%E6%B3%95%E5%9C%A8%20Ubuntu-19.10%20%E4%B8%8A%E5%AE%89%E8%A3%85%20libdouble-conversion1.png)
当我尝试从deb
文件安装 Cisco 数据包跟踪器时出现以下错误:
Unpacking packettracer (7.3.0) ...
dpkg: dependency problems prevent configuration of packettracer:
packettracer depends on libdouble-conversion1; however:
Package libdouble-conversion1 is not installed.
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.32.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu1) ...
Processing triggers for mime-support (3.63ubuntu1) ...
Processing triggers for shared-mime-info (1.10-1) ...
Errors were encountered while processing:
packettracer
然后我尝试libdouble-conversion1
使用命令进行安装sudo apt-get install libdouble-conversion1
。它给出了以下错误
Package libdouble-conversion1 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 'libdouble-conversion1' has no installation candidate
答案1
首先下载这些软件包:
- libdouble-转换1 (http://ftp.br.debian.org/debian/pool/main/d/double-conversion/libdouble-conversion1_3.1.0-3_amd64.deb)
- qt-在-spi(http://ftp.br.debian.org/debian/pool/main/q/qt-at-spi/qt-at-spi_0.4.0-9_amd64.deb)
- libjpeg-turbo8(http://archive.ubuntu.com/ubuntu/pool/main/libj/libjpeg-turbo/libjpeg-turbo8_2.0.3-0ubuntu1_amd64.deb)
- libjpeg8(http://archive.ubuntu.com/ubuntu/pool/main/libj/libjpeg8-empty/libjpeg8_8c-2ubuntu8_amd64.deb)
- 数据包追踪器 7.3
打开终端并将目录更改为下载(下载的软件包所在的位置)
使所有下载的软件包均可执行(
chmod +x packagename
)复制
/home/username/.config/mimeapps.list
到/root/.config/
安装 libdouble-conversion1 和 qt-at-spi 包(
sudo dpkg -i packagename
)安装 libjpeg-turbo8 包。在这里,您可能会发现库冲突错误。如果是这样,请删除旧的(
sudo apt purge packagename
)。会有一些警告。只需输入此命令(sudo apt --fix-broken install
)。然后再次删除。现在,您可以再次安装 libjpeg-turbo8 包。安装 libjpeg8 包。
最后,您可以安装 Packet Tracer 7.3 包。\
祝你好运
答案2
您可以使用其他版本的软件包:
wget http://mirrors.kernel.org/ubuntu/pool/main/d/double-conversion/libdouble-conversion1_2.0.1-4ubuntu1_amd64.deb
sudo apt install ./libdouble-conversion1_2.0.1-4ubuntu1_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/main/q/qt-at-spi/qt-at-spi_0.4.0-3_amd64.deb
sudo apt install ./qt-at-spi_0.4.0-3_amd64.deb
然后,从终端安装 Packet Tracer:
sudo apt-get install <absolute/path/to/your/package>
答案3
下载数据包跟踪器后,我尝试安装它sudo dpkg -i PacketTracer_730_amd64.deb
并得到以下结果:
dpkg: dependency problems prevent configuration of packettracer:
packettracer depends on qt-at-spi; however:
Package qt-at-spi is not installed.
当我尝试安装时qt-at-spi
收到此消息
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
qt-at-spi : Depends: libqt4-dbus (>= 4:4.8.0) but it is not going to be installed
Depends: libqtcore4 (>= 4:4.8~) but it is not going to be installed
Depends: libqtgui4 (>= 4:4.8~) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
运行sudo apt --fix-broken install
解决了我的所有问题,数据包跟踪器已安装。