基本APTソースを設定する方法

基本APTソースを設定する方法

ランニングは以下cat /etc/apt/apt.confを提供します:

APT::Default-Release "stable";

apt-get install wajigこれにより、どこでも利用可能な最新バージョンがある場合、コマンドが機能しなくなると思います。安定

このようなバージョンをインストールするには、ストレージ名を指定する必要があるようにAPTを設定するにはどうすればよいですか(例:)apt-get --target-release testing wajig

[修正する]私の質問がそれほど明確ではないかどうかわかりません。これが特定のパッケージではなく、アーカイブ全体の設定(つまり、安定したアーカイブのすべてのパッケージに適用する必要がある)であれば幸いです。

ベストアンサー1

これを」/etc/apt/デフォルト設定":

Package: *
Pin: release a=stable
Pin-Priority: 900

Package: *
Pin: release o=Debian
Pin-Priority: -10

man apt_preferencesこれはどこPから来るかPin-Priority

500 < P <=990
   causes a version to be installed unless there is a version available belonging to the target release or the installed version is more recent

P < 0
   prevents the version from being installed

バラよりこの Debian Wiki ページマニュアルページよりもスムーズです。

おすすめ記事