如何取消固定由 apt-listbugs 固定的软件包

如何取消固定由 apt-listbugs 固定的软件包

我已经通过 apt-listbugs 固定了 binutils -

/etc/apt/preferences.d$ cat apt-listbugs

Explanation: Pinned by apt-listbugs at 2018-03-25 06:42:33 +0530
Explanation:   #852035: binutils: bfd stumbles over duplicated symbols generated by gold
Explanation:   #852671: libkf5kipi: FTBFS (linking error)
Explanation:   #852672: libqapt: FTBFS (linking error)
Explanation:   #852899: libkf5kipi: FTBFS: libQt5Gui.so.5.7.1:(*IND*+0x0): multiple definition of `__bss_start'
Explanation:   #852909: libqapt: FTBFS: libQt5Gui.so.5.7.1:(*IND*+0x0): multiple definition of `__bss_start'
Package: binutils
Pin: version *
Pin-Priority: -30000

现在我尝试了列出的其中一种方法,该方法应该取消固定优先级,或者我想但它没有 -

 /etc/apt/listbugs$ cat ignore_bugs
    # List of packages or bug numbers to be ignored.
    852035
    852671
    852672
    852899
    852909

这是 apt-cache 策略的完整输出 -

 $ apt-cache policy
    Package files:
     100 /var/lib/dpkg/status
         release a=now
     500 https://riot.im/packages/debian stretch/main amd64 Packages
         release o=riot.im,a=testing,n=stretch,c=main,b=amd64
         origin riot.im
     100 http://debug.mirrors.debian.org/debian-debug experimental-debug/main amd64 Packages
         release o=Debian,a=experimental-debug,n=rc-buggy-debug,l=Debian debug,c=main,b=amd64
         origin debug.mirrors.debian.org
     100 http://debug.mirrors.debian.org/debian-debug unstable-debug/main amd64 Packages
         release o=Debian,a=unstable-debug,n=sid-debug,l=Debian debug,c=main,b=amd64
         origin debug.mirrors.debian.org
     500 http://debug.mirrors.debian.org/debian-debug buster-debug/main amd64 Packages
         release o=Debian,a=testing-debug,n=buster-debug,l=Debian debug,c=main,b=amd64
         origin debug.mirrors.debian.org
     100 http://deb.debian.org/debian experimental/contrib amd64 Packages
         release o=Debian,a=experimental,n=experimental,l=Debian,c=contrib,b=amd64
         origin deb.debian.org
     100 http://deb.debian.org/debian experimental/main amd64 Packages
         release o=Debian,a=experimental,n=experimental,l=Debian,c=main,b=amd64
         origin deb.debian.org
     100 http://deb.debian.org/debian unstable/non-free amd64 Packages
         release o=Debian,a=unstable,n=sid,l=Debian,c=non-free,b=amd64
         origin deb.debian.org
     100 http://deb.debian.org/debian unstable/contrib amd64 Packages
         release o=Debian,a=unstable,n=sid,l=Debian,c=contrib,b=amd64
         origin deb.debian.org
     100 http://deb.debian.org/debian unstable/main amd64 Packages
         release o=Debian,a=unstable,n=sid,l=Debian,c=main,b=amd64
         origin deb.debian.org
     500 http://deb.debian.org/debian buster/non-free amd64 Packages
         release o=Debian,a=testing,n=buster,l=Debian,c=non-free,b=amd64
         origin deb.debian.org
     500 http://deb.debian.org/debian buster/contrib amd64 Packages
         release o=Debian,a=testing,n=buster,l=Debian,c=contrib,b=amd64
         origin deb.debian.org
     500 http://deb.debian.org/debian buster/main amd64 Packages
         release o=Debian,a=testing,n=buster,l=Debian,c=main,b=amd64
         origin deb.debian.org
    Pinned packages:
         binutils -> 2.31-1 with priority -30000
         binutils -> 2.30.90.20180710-1 with priority -30000

最有趣的部分在于最后两行。

我使用的唯一的引脚优先级是 -

$ cat /etc/apt/preferences
Package: *
Pin: release a=buster
Pin-Priority: 900

Package: *
Pin: release a=buster-debug
Pin-Priority: 900

Package: *
Pin: release a=unstable
Pin-Priority: 100

Package: *
Pin: release a=unstable-debug
Pin-Priority:100

Package: *
Pin: release a=experimental
Pin-Priority: 100

Package: *
Pin: release a=experimental-debug
Pin-Priority:100

因此,除了浏览器和一些我需要站在工作前沿的其他实用程序之外,我尝试尽可能多地发布测试版本。

期待如何取消 binutils 的固定。我知道 apt-listbugs 有它自己的自动化处理方式。我不想打扰这个。

答案1

手动删除封装引脚的最佳方法apt-listbugs是将其从/etc/apt/preferences.d/apt-listbugs.这是唯一apt-listbugs存储其 PIN 信息的位置,因此不存在因删除此处的 PIN 而导致不一致的风险。确保删除PackagePin、 和Pin-Priority行以及所有相应的Explanation行。

apt-listbugsignore_bugs在询问用户如何处理要安装(或升级)的软件包中存在的错误之前会考虑到这一点。在检查固定程序包中的错误是否仍然适用时,它不会考虑ignore_bugs:如果导致固定程序包的所有错误均已修复,则程序包将被取消固定,无论错误是否在 中列出ignore_bugs,并将错误添加到ignore_bugswon'不要apt-listbugs认为它是固定的。

相关内容