安装 .deb 文件后,以下软件包存在未满足的依赖关系

安装 .deb 文件后,以下软件包存在未满足的依赖关系

我正在尝试学习如何创建和使用 .deb 文件。我将这些库作为依赖项添加到 DEBIAN/control 文件下的 .deb 文件中

Package: mydeb
Version: 1.0-1
Section: base
Priority: optional
Architecture: amd64
Depends: ipython (>= 2.4.1-1), decorator (>= 4.0.10), cycler (>= 0.10.0), Cython (>= 0.25.1), dask (>= 0.12.0), imageio (>= 1.6), matplotlib (>= 1.5.3), networkx (>= 1.11), numpy (>= 1.11.2), Pillow (>= 3.4.2), pip (>= 9.0.1), pyglet (>= 1.2.4), pymongo (>= 3.4.0), pyparsing (>= 2.1.10), python-dateutil (>= 2.6.0), pytz (>= 2016.7), requests (>= 2.12.1), scikit-image (>= 0.12.3), scipy (>= 0.18.1), setuptools (>= 28.8.0), six (>= 1.10.0), toolz (>= 0.8.0), wheel (>= 0.30.0a0)         
Maintainer: xxx
Description: xxx

但在我安装了该示例 .deb 文件之后,我开始在这些命令中看到该错误

sudo apt-get update & upgrade

我得到的错误是

username@ubuntu:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
                   <my deb file > : Depends: decorator (>= 4.0.10) but it is not installable
                   Depends: cycler (>= 0.10.0) but it is not installable
                   Depends: cython (>= 0.25.1) but 0.23.4-0ubuntu5 is installed
                   Depends: dask (>= 0.12.0) but it is not installable
                   Depends: imageio (>= 1.6) but it is not installable
                   Depends: matplotlib (>= 1.5.3) but it is not installable
                   Depends: networkx (>= 1.11) but it is not installable
                   Depends: numpy (>= 1.11.2) but it is not installable
                   Depends: pillow (>= 3.4.2) but it is not installable
                   Depends: pip (>= 9.0.1) but it is not installable
                   Depends: pyglet (>= 1.2.4) but it is not installable
                   Depends: pymongo (>= 3.4.0) but it is not installable
                   Depends: pyparsing (>= 2.1.10) but it is not installable
                   Depends: python-dateutil (>= 2.6.0) but 2.4.2-1 is installed
                   Depends: pytz (>= 2016.7) but it is not installable
                   Depends: requests (>= 2.12.1) but it is not installable
                   Depends: scikit-image (>= 0.12.3) but it is not installable
                   Depends: scipy (>= 0.18.1) but it is not installable
                   Depends: setuptools (>= 28.8.0) but it is not installable
                   Depends: six (>= 1.10.0) but it is not installable
                   Depends: toolz (>= 0.8.0) but it is not installable
                   Depends: wheel (>= 0.30.0a0) but it is not installable

不知何故,这些库集成到了包管理器中,这在安装我的 .deb 包后开始成为问题。这些库已安装在我的系统上。

我该如何重置我的包管理器或者解决这个问题?

谢谢

答案1

sudo apt-get -f install

这个命令解决了问题!谢谢@George

相关内容