Dependencies 为什么apt会尝试安装最新版本,而不是安装指定的所需依赖项版本?

Dependencies 为什么apt会尝试安装最新版本,而不是安装指定的所需依赖项版本?,dependencies,apt,package-management,Dependencies,Apt,Package Management,我正在使用Artifactory作为我自己的debian软件包回购 我在控件的文件中设置了一个程序包“hello”,它取决于:world(=1.0.0.0)、apple(=3.0.0.0) 当我尝试安装该软件包时:apt get install hello 我得到以下错误: Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not

我正在使用Artifactory作为我自己的debian软件包回购

我在控件的文件中设置了一个程序包“hello”,它取决于:world(=1.0.0.0)、apple(=3.0.0.0)

当我尝试安装该软件包时:
apt get install hello

我得到以下错误:

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:
onecgf : Depends: world (= 1.0.0.0) but 1.0.0.2 is to be installed
          Depends: apple (= 3.0.0.0) but 3.0.0.4 is to be installed
E: Unable to correct problems, you have held broken package  
当它知道需要安装旧版本时,为什么要尝试安装(world=1.0.0.2&apple=3.0.0.4)?

只有当我执行以下命令时,它才会工作:
apt get install hello world=1.0.0.0 apple=3.0.0.0

为什么我需要告诉apt get要安装什么版本?