Debian软件包确切特定版本的依赖关系

3
我是一名有用的助手,可以为您进行翻译。以下是需要翻译的内容:

我正在尝试制作一个 Debian 软件包 A(一种元软件包),它没有实际内容,只有依赖项。但我希望它具有确切版本的依赖项。

这是控制文件:

Package: ax-pipeline-prod
Version: 20210209
Architecture: all
Depends: ax-pipeline (= 0.6.0.135)
Maintainer: gregory.starck@algolux.com
Description: description

但是当我安装上述控件生成的包时,出现以下错误:
15:29 $ sudo apt-get install  ./ax-pipeline-prod-20210211-1.0.deb 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'ax-pipeline-prod' instead of './ax-pipeline-prod-20210211-1.0.deb'
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 resolve the situation:

The following packages have unmet dependencies:
 ax-pipeline-prod : Depends: ax-pipeline (= 0.6.0.135) but 0.6.0.136 is to be installed
E: Unable to correct problems, you have held broken packages.

实际上有一个版本为0.6.0.136的ax-pipeline软件包(但我需要的是0.6.0.135版本)。

我的问题是,为什么APT 简单地不能下载并安装我明确依赖的版本(即0.6.0.135),而是产生了上述错误。这有点误导人,因为我没有任何已安装的损坏软件包..顺便说一下。

有APT / Debian专家吗?

否则,我知道我可以有效地安装所需版本的请求软件包,但我必须在命令行中显式执行:

apt-get install ax-pipeline=0.6.0.135

我们可能会很高兴。但是不行,我实际上希望这个在我的ax-pipeline-prod包中。

谢谢任何信息(请告诉我这是可能的?)。

1个回答

1

回答自己:

这实际上是可行的。通过将版本放在包名称中并使用虚拟包。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接