ソースの個々のパケットの適切なピン優先順位

ソースの個々のパケットの適切なピン優先順位

私はDebian Repoを通してDebian wheezyでミントが働くようにFirefoxを手に入れようとしています。
私は次のソースラインを使用しています:

deb http://packages.linuxmint.com debian import

ファイルを作成しました。

/etc/apt/preferences.d/

ミントと呼ばれるこの形は次のとおりです。

Package: *
Pin: release a=debian
Pin-Priority: 1

次のディレクトリにfirefoxという2番目のファイルがあります。

Package: firefox
Pin: release a=debian
Pin-Priority: 900

最後に、iceweaselの優先順位を最小限に抑えるための3番目のファイル ./iceweasel:

Package: iceweasel
Pin: release a=stable
Pin-Priority: 1

私はミントリポジトリだけを追加すると、bashはミントリポジトリの結果に応じてアップグレードが必要だと思うことに気づきました。私の目標は、Debian Mintソースの各個々のパッケージの優先順位を下げることではありません。私はそれらすべてを最小限に抑え、Firefoxに高い優先順位を与えたいと思います。適切なピン優先順位を初めて使用します。構文についてアドバイスしてください。事前にありがとう

以下の出力を参照してください。

apt-cache policy firefox

firefox:
  Installed: 34.0.5~linuxmint1+betsy
  Candidate: 34.0.5~linuxmint1+betsy
  Package pin: 34.0.5~linuxmint1+betsy
  Version table:
 *** 34.0.5~linuxmint1+betsy 900
          1 http://packages.linuxmint.com/ debian/import amd64 Packages
        100 /var/lib/dpkg/status


apt-cache policy iceweasel
iceweasel:
  Installed: 31.3.0esr-1~deb7u1
  Candidate: 31.3.0esr-1~deb7u1
  Package pin: (not found)
  Version table:
 *** 31.3.0esr-1~deb7u1 1
        500 http://security.debian.org/ wheezy/updates/main amd64 Packages
        100 /var/lib/dpkg/status
     24.4.0esr-1~deb7u2 1
        500 http://ftp.us.debian.org/debian/ wheezy/main amd64 Packages

apt-cache policy bash
bash:
  Installed: 4.2+dfsg-0.1+deb7u3
  Candidate: 4.2+dfsg-0.1+deb7u3
  Version table:
     4.3-9.2 0
          1 http://packages.linuxmint.com/ debian/import amd64 Packages
 *** 4.2+dfsg-0.1+deb7u3 0
        500 http://ftp.us.debian.org/debian/ wheezy/main amd64 Packages
        500 http://security.debian.org/ wheezy/updates/main amd64 Packages
        100 /var/lib/dpkg/status

ベストアンサー1

ファイルを作成して名前を付けてみましょう。/etc/apt/apt.conf.d/01stable、内容は次のとおりです。

 APT::Default-Release "stable";

次に、次のファイルを作成します。/etc/apt/デフォルト設定次のコンテンツが含まれています。

 Package: firefox*
 Pin: release n=stable
 Pin-Priority: -10

 Package: firefox*
 Pin: release n=debian
 Pin-Priority: 900 

おすすめ記事