aptはパッケージの順序に関係なく同じ方法で実行する必要がありますか?

aptはパッケージの順序に関係なく同じ方法で実行する必要がありますか?

IMHO、パッケージの順序はaptに関連してはいけません。
常に決定的でなければなりません。

しかし、通常のdebian12ドッカーイメージでは、3つのパッケージに違いがあることがわかりました。

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パッケージの順序にのみ依存しますが、これら3つのパッケージのいずれかを削除すると、順序に関係なく常に機能します。

失敗した場合、エラーは次のようになります。

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 パッケージでのみ推奨されます。

これは適切なバグですか、それともパッケージの依存関係の1つですか?
検出されなければならない欠点パッケージの依存関係?

ベストアンサー1

おすすめ記事