私のDebianテストボックスには次のものがあります/etc/apt/sources.list
。
deb http://ftp.us.debian.org/debian/ testing main contrib non-free
deb-src http://ftp.us.debian.org/debian/ testing main contrib non-free
deb http://security.debian.org/ testing/updates main contrib non-free
deb-src http://security.debian.org/ testing/updates main contrib non-free
deb http://ftp.us.debian.org/debian/ testing-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian/ testing-updates main contrib non-free
deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse proposed partner
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse proposed partner
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
そして私が逃げたとしましょうsudo apt install libre-office
。でいくつかの必須パッケージを選択しftp.us.debian.org
、いくつかはから選択することを確認しましたus.archive.ubuntu.com
。 APTは各パッケージをインポートするソースをどのように決定しますか?
ベストアンサー1
アルゴリズムはマニュアルページで詳しく説明されていますapt_preferences
。つまり、aptは、コマンドラインオプション、設定、およびインストールされたパッケージに基づいて、認識している各バージョンのスコアを計算します。次に、スコアが最も高いバージョンをインストールします。
同じマニュアルページに記載されているように、明示的なソースの明示的なスコアを指定して内容を調整できます。
しかし、このようにDebianとUbuntuのバージョンを混在させることはうまくいきません。私はそれに反対することをお勧めします。