debian-backports 的 pin 优先级在哪里定义?

debian-backports 的 pin 优先级在哪里定义?

在 Debian Jessie 下,我第一次在我的包源中进行了向后移植。

我在 apt 中发生了一些冲突,因为我安装了一些软件包http://www.deb-multimedia.org/向后移植有更高版本。

多媒体的第一个引脚优先级是 100。我尝试将向后移植的优先级设置为 -1,但它不起作用。

LANG=C cat /etc/apt/preferences
Package: *
Pin: origin deb http://http.us.debian.org/debian jessie-backports main
release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=non-free
Pin-Priority: -1

Package: *
Pin: origin deb http://http.us.debian.org/debian jessie-backports main
release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=main
Pin-Priority: -1

Package: *
Pin: origin deb http://http.us.debian.org/debian jessie-backports contrib
release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=contrib
Pin-Priority: -1

Package: *
Pin: origin www.deb-multimedia.org
Pin-Priority: 300 
`

我的怎么了/etc/apt/preferences

     LANG=C apt-cache policy | grep backports | egrep -i -v translat
 100 http://http.us.debian.org/debian/ jessie-backports/non-free i386 Packages
     release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=non-free
 100 http://http.us.debian.org/debian/ jessie-backports/contrib i386 Packages
     release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=contrib
 100 http://http.us.debian.org/debian/ jessie-backports/main i386 Packages
     release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=main
 100 http://http.us.debian.org/debian/ jessie-backports/non-free amd64 Packages
     release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=non-free
 100 http://http.us.debian.org/debian/ jessie-backports/contrib amd64 Packages
     release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=contrib
 100 http://http.us.debian.org/debian/ jessie-backports/main amd64 Packages
     release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=main

文件夹

ls -al /etc/apt/preferences.d/
insgesamt 8
drwxr-xr-x 2 root root 4096 Jan 25  2011 .
drwxr-xr-x 6 root root 4096 Dez 11 11:53 ..

是空的。

答案1

您只需要一个具有适当存档名称的条目:

Package: *
Pin: release a=jessie-backports
Pin-Priority: -1

请注意,向后移植默认固定为 100,因此除非您指定,否则它们不是安装候选者-t jessie-backports。我不知道这如何与其他来源的软件包一起使用,特别是如果它们的版本比稳定软件包更高......

相关内容