我Pin-Priority
设置了几个文件,/etc/apt/preferences.d/
但它们的设置没有反映在apt-cache policy
例子:
avery@ChubbyChipmunk:/etc/apt/preferences.d$ ls -la
total 23
drwxr-xr-x 2 root root 7 Oct 22 08:25 .
drwxr-xr-x 7 root root 11 Oct 22 08:13 ..
-rw-r--r-- 1 root root 61 Oct 22 08:19 all-i386
-rw-r--r-- 1 root root 72 Oct 22 08:20 groovy-proposed
-rw-r--r-- 1 root root 59 Oct 22 08:19 origin-pop-os
-rw-r--r-- 1 root root 62 Oct 22 08:20 origin-ppa
-rw-r--r-- 1 root root 66 Oct 22 08:25 origin-ppa-launchpad-net-system76-pop-ubuntu
avery@ChubbyChipmunk:/etc/apt/preferences.d$ cat *
Package: *
Pin: release o=Ubuntu,b=i386
Pin-Priority: 50
Package: *
Pin: release o=Ubuntu,a=groovy-proposed
Pin-Priority: 50
Package: *
Pin: origin apt.pop-os.org
Pin-Priority: 50
Package: *
Pin: origin ppa.launchpad.net
Pin-Priority: 50
Package: *
Pin: release o=LP-PPA-system76-pop
Pin-Priority: 1
avery@ChubbyChipmunk:/etc/apt/preferences.d$ sudo apt update
Hit:1 http://apt.pop-os.org/proprietary groovy InRelease
Hit:2 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:3 https://download.mono-project.com/repo/ubuntu stable-focal InRelease
Hit:4 http://packages.microsoft.com/ubuntu/18.04/mssql-server-2019 bionic InRelease
Hit:5 http://ppa.launchpad.net/linuxuprising/shutter/ubuntu groovy InRelease
Hit:6 https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04 InRelease
Hit:7 http://ppa.launchpad.net/system76/pop/ubuntu groovy InRelease
Hit:8 http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu focal InRelease
Get:9 http://ppa.launchpad.net/system76/pop/ubuntu groovy/main amd64 Packages [44.4 kB]
Get:10 http://ppa.launchpad.net/system76/pop/ubuntu groovy/main Translation-en [18.1 kB]
Hit:11 http://mirrors.vcea.wsu.edu/ubuntu groovy InRelease
Hit:12 http://mirrors.vcea.wsu.edu/ubuntu groovy-updates InRelease
Hit:13 http://mirrors.vcea.wsu.edu/ubuntu groovy-backports InRelease
Get:14 http://mirrors.vcea.wsu.edu/ubuntu groovy-security InRelease [88.4 kB]
Hit:15 http://mirrors.vcea.wsu.edu/ubuntu groovy-proposed InRelease
Hit:17 https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease
Hit:18 http://archive.canonical.com/ubuntu groovy InRelease
Hit:16 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease
Fetched 151 kB in 6s (26.2 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
26 packages can be upgraded. Run 'apt list --upgradable' to see them.
avery@ChubbyChipmunk:/etc/apt/preferences.d$ apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu focal/main amd64 Packages
release v=20.04,o=LP-PPA-webupd8team-y-ppa-manager,a=focal,n=focal,l=Y PPA Manager,c=main,b=amd64
origin ppa.launchpad.net
500 http://ppa.launchpad.net/system76/pop/ubuntu groovy/main amd64 Packages
release v=20.10,o=LP-PPA-system76-pop,a=groovy,n=groovy,l=Pop!_OS PPA,c=main,b=amd64
origin ppa.launchpad.net
500 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 Packages
release v=1,o=packagecloud.io/slacktechnologies/slack,a=jessie,n=jessie,l=slack,c=main,b=amd64
origin packagecloud.io
500 http://apt.pop-os.org/proprietary groovy/main amd64 Packages
release v=20.10,o=system76,a=groovy,n=groovy,l=System76,c=main,b=amd64
origin apt.pop-os.org
500 https://download.mono-project.com/repo/ubuntu stable-focal/main amd64 Packages
release v=20.04,o=XamarinFocal,a=stable-focal,n=focal,l=Xamarin-Stable-Focal,c=main,b=amd64
origin download.mono-project.com
500 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages
release o=microsoft-ubuntu-bionic-prod bionic,a=bionic,n=bionic,l=microsoft-ubuntu-bionic-prod bionic,c=main,b=amd64
origin packages.microsoft.com
500 http://ppa.launchpad.net/linuxuprising/shutter/ubuntu groovy/main amd64 Packages
release v=20.10,o=LP-PPA-linuxuprising-shutter,a=groovy,n=groovy,l=Shutter screenshot tool and dependencies,c=main,b=amd64
origin ppa.launchpad.net
500 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages
release v=1.0,o=Google LLC,a=stable,n=stable,l=Google,c=main,b=amd64
origin dl.google.com
500 https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04 Packages
release o=obs://build.opensuse.org/devel:kubic:libcontainers:stable/xUbuntu_20.04,n=xUbuntu_20.04,l=devel:kubic:libcontainers:stable,c=
origin download.opensuse.org
500 http://packages.microsoft.com/ubuntu/18.04/mssql-server-2019 bionic/main amd64 Packages
release o=mssql-server-2019-bionic bionic,a=bionic,n=bionic,l=mssql-server-2019-bionic bionic,c=main,b=amd64
origin packages.microsoft.com
500 http://mirrors.vcea.wsu.edu/ubuntu groovy-proposed/main i386 Packages
release v=20.10,o=Ubuntu,a=groovy-proposed,n=groovy,l=Ubuntu,c=main,b=i386
origin mirrors.vcea.wsu.edu
500 http://mirrors.vcea.wsu.edu/ubuntu groovy-proposed/main amd64 Packages
release v=20.10,o=Ubuntu,a=groovy-proposed,n=groovy,l=Ubuntu,c=main,b=amd64
origin mirrors.vcea.wsu.edu
500 http://mirrors.vcea.wsu.edu/ubuntu groovy-proposed/multiverse i386 Packages
release v=20.10,o=Ubuntu,a=groovy-proposed,n=groovy,l=Ubuntu,c=multiverse,b=i386
origin mirrors.vcea.wsu.edu
500 http://mirrors.vcea.wsu.edu/ubuntu groovy-proposed/multiverse amd64 Packages
release v=20.10,o=Ubuntu,a=groovy-proposed,n=groovy,l=Ubuntu,c=multiverse,b=amd64
origin mirrors.vcea.wsu.edu
500 http://mirrors.vcea.wsu.edu/ubuntu groovy-proposed/restricted i386 Packages
release v=20.10,o=Ubuntu,a=groovy-proposed,n=groovy,l=Ubuntu,c=restricted,b=i386
origin mirrors.vcea.wsu.edu
500 http://mirrors.vcea.wsu.edu/ubuntu groovy-proposed/restricted amd64 Packages
release v=20.10,o=Ubuntu,a=groovy-proposed,n=groovy,l=Ubuntu,c=restricted,b=amd64
origin mirrors.vcea.wsu.edu
500 http://mirrors.vcea.wsu.edu/ubuntu groovy-proposed/universe i386 Packages
release v=20.10,o=Ubuntu,a=groovy-proposed,n=groovy,l=Ubuntu,c=universe,b=i386
origin mirrors.vcea.wsu.edu
500 http://mirrors.vcea.wsu.edu/ubuntu groovy-proposed/universe amd64 Packages
release v=20.10,o=Ubuntu,a=groovy-proposed,n=groovy,l=Ubuntu,c=universe,b=amd64
origin mirrors.vcea.wsu.edu
500 http://mirrors.vcea.wsu.edu/ubuntu groovy-security/universe i386 Packages
release v=20.10,o=Ubuntu,a=groovy-security,n=groovy,l=Ubuntu,c=universe,b=i386
origin mirrors.vcea.wsu.edu
500 http://mirrors.vcea.wsu.edu/ubuntu groovy-security/universe amd64 Packages
release v=20.10,o=Ubuntu,a=groovy-security,n=groovy,l=Ubuntu,c=universe,b=amd64
origin mirrors.vcea.wsu.edu
500 http://mirrors.vcea.wsu.edu/ubuntu groovy-security/main i386 Packages
release v=20.10,o=Ubuntu,a=groovy-security,n=groovy,l=Ubuntu,c=main,b=i386
origin mirrors.vcea.wsu.edu
500 http://mirrors.vcea.wsu.edu/ubuntu groovy-security/main amd64 Packages
release v=20.10,o=Ubuntu,a=groovy-security,n=groovy,l=Ubuntu,c=main,b=amd64
origin mirrors.vcea.wsu.edu
500 http://archive.canonical.com/ubuntu groovy/partner amd64 Packages
release v=20.10,o=Canonical,a=groovy,n=groovy,l=Partner archive,c=partner,b=amd64
origin archive.canonical.com
500 http://mirrors.vcea.wsu.edu/ubuntu groovy/multiverse i386 Packages
release v=20.10,o=Ubuntu,a=groovy,n=groovy,l=Ubuntu,c=multiverse,b=i386
origin mirrors.vcea.wsu.edu
500 http://mirrors.vcea.wsu.edu/ubuntu groovy/multiverse amd64 Packages
release v=20.10,o=Ubuntu,a=groovy,n=groovy,l=Ubuntu,c=multiverse,b=amd64
origin mirrors.vcea.wsu.edu
500 http://mirrors.vcea.wsu.edu/ubuntu groovy/universe i386 Packages
release v=20.10,o=Ubuntu,a=groovy,n=groovy,l=Ubuntu,c=universe,b=i386
origin mirrors.vcea.wsu.edu
500 http://mirrors.vcea.wsu.edu/ubuntu groovy/universe amd64 Packages
release v=20.10,o=Ubuntu,a=groovy,n=groovy,l=Ubuntu,c=universe,b=amd64
origin mirrors.vcea.wsu.edu
500 http://mirrors.vcea.wsu.edu/ubuntu groovy/restricted i386 Packages
release v=20.10,o=Ubuntu,a=groovy,n=groovy,l=Ubuntu,c=restricted,b=i386
origin mirrors.vcea.wsu.edu
500 http://mirrors.vcea.wsu.edu/ubuntu groovy/restricted amd64 Packages
release v=20.10,o=Ubuntu,a=groovy,n=groovy,l=Ubuntu,c=restricted,b=amd64
origin mirrors.vcea.wsu.edu
500 http://mirrors.vcea.wsu.edu/ubuntu groovy/main i386 Packages
release v=20.10,o=Ubuntu,a=groovy,n=groovy,l=Ubuntu,c=main,b=i386
origin mirrors.vcea.wsu.edu
500 http://mirrors.vcea.wsu.edu/ubuntu groovy/main amd64 Packages
release v=20.10,o=Ubuntu,a=groovy,n=groovy,l=Ubuntu,c=main,b=amd64
origin mirrors.vcea.wsu.edu
Pinned packages:
以前可以Pin-Priority
上班,不知道怎么回事。我已经花了两个小时试图弄清楚,我只需要注释掉.list
文件中的 repos。
我想我要在启动板中提交错误报告。
有任何想法吗?
尝试丢失压痕。我用缩进进行了测试,偏好没有生效。没有任何缩进,偏好就起作用了。在每个文件的末尾有一个空行也可能会有所帮助,因为这样可以分隔记录。
例如