无论包的顺序如何,apt 都必须以相同的方式运行吗?

无论包的顺序如何,apt 都必须以相同的方式运行吗?

恕我直言,软件包的顺序不应与 apt 相关。
它应该始终是确定性的。

但我发现普通 debian12 docker 镜像上的三个软件包存在差异

docker run --rm -ti debian:12.1
apt update
apt install lxde-core xterm chromium # Fails
apt install lxde-core chromium xterm # works

它仅取决于 xterm 和 chromium 包的顺序,但如果我删除这三个包之一,它总是可以工作(与顺序无关)。

如果失败,错误是

Reading package lists... Done  
Building dependency tree... Done  
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:  
 luit : Breaks: x11-utils (< 7.7+6) but 7.7+5 is to be installed  
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.  

如果我安装了软件包,则apt install lxde-core chromium xterm # works根本luit没有安装该软件包。
dpkg -l luit x11-utils

un  luit           <none>       <none>       (no description available)  
ii  x11-utils      7.7+5        amd64        X11 utilities  

luit 仅在 xterm 包中推荐

这是 apt 中的错误还是软件包依赖项之一中的错误?
应该检测到缺点包中的依赖?

相关内容