Unix 如何强制debian包中的自动升级控制依赖项

Unix 如何强制debian包中的自动升级控制依赖项,unix,debian,Unix,Debian,我正在debian 6机器上安装一个自定义debian包 这是我的控制文件 Package: [[name]] Version: 5.1 Section: hello/world Priority: Optional Architecture: all Essential: no Depends: my-dependent-package (>> 0.2.1) Installed-Size: 1000 Maintainer: Test test@test.com Descriptio

我正在debian 6机器上安装一个自定义debian包

这是我的控制文件

Package: [[name]]
Version: 5.1
Section: hello/world
Priority: Optional
Architecture: all
Essential: no
Depends: my-dependent-package (>> 0.2.1)
Installed-Size: 1000
Maintainer: Test test@test.com
Description: _DESCRIPTION_
在这里,当新版本发布时,我的依赖包不会自动升级

我总是在安装前更新sudo

从内部镜像安装debian并使用 sudo-apt-get-install-mypackage 从属包my dependent package也可在同一内部镜像中使用

内部镜像在/etc/apt/sources.list中定义

两个包来自同一个镜像

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 my-package : Depends: my-dependent-package (>> 0.2.1) but it is not going to be installed
E: Broken packages
当我手动安装我的从属软件包时,安装成功。我希望它能被我的软件包自动安装,正如我在控制文件中提到的


如何启用它?

Debian为套件和软件包分配优先级

您的本地存储库很可能优先级较低,这会导致被排除在自动更新之外

配置apt为您的存储库分配更高的优先级,以便自动选择它

有关更多信息,请参阅


如果没有更多关于实际安装的知识,就无法进行演练

如何安装软件包?通过apt get/aptitude从您的客户存储库或直接通过dpkg-i文件.deb?更新了问题。从内部镜像安装debian并使用sudo apt get install mypackage从属包mydependent包在同一内部镜像中也可用。内部镜像在/etc/apt/sources.list中定义,apt-get-install-mypackage的输出是什么?它显示了什么错误?另外,请尝试apt cache showpkg mypackage和apt cache showpkg my dep PKG。您希望何时升级我的从属软件包?只需安装[[name]]包?我的从属软件包的升级版本应该从哪里来?哪个repo?更新了问题并出现了错误,这两个软件包在同一镜像和单独的安装工程中都可用。