在尝试更新单个软件包时,我无意中将自己设置为升级到固件的“测试”版本而不是稳定版本。如何恢复我的广泛“更新”并为 --allow-releaseinfo-change 指定一个存储库?
在尝试将软件包“unifi”从 5.13 更新到 5.14 时,我是如何到达现在的位置的:
$ sudo apt-get update
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Get:2 https://dl.ubnt.com/unifi/debian stable InRelease [3024 B]
Get:3 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Get:4 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB]
Reading package lists... Done
E: Repository 'https://dl.ubnt.com/unifi/debian stable InRelease' changed its 'Codename' value from 'unifi-5.13' to 'unifi-5.14'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
好吧,如果没有明确的 ok,它不会允许 unifi 版本从 5.13 更改为 5.14,所以:
$ sudo apt-get update --allow-releaseinfo-change
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Get:3 https://dl.ubnt.com/unifi/debian stable InRelease [3024 B]
Get:4 https://dl.ubnt.com/unifi/debian stable/ubiquiti armhf Packages [713 B]
Fetched 3737 B in 1s (2885 B/s)
Reading package lists... Done
N: Repository 'https://dl.ubnt.com/unifi/debian stable InRelease' changed its 'Codename' value from 'unifi-5.13' to 'unifi-5.14'
呃哦,我不想从其他存储库测试固件版本......
$ sudo apt-get --dry-run upgrade unifi
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
bluez-firmware firmware-atheros firmware-brcm80211 firmware-libertas firmware-misc-nonfree firmware-realtek libgs9 libgs9-common libraspberrypi-bin libraspberrypi-dev libraspberrypi-doc libraspberrypi0
pi-bluetooth raspberrypi-bootloader raspberrypi-kernel raspi-config rpd-plym-splash unifi
18 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Inst unifi [5.13.32-13646-1] (5.14.23-13880-1 Ubiquiti Networks, Inc.:stable [all])
Inst bluez-firmware [1.2-4+rpt3] (1.2-4+rpt4 Raspberry Pi Foundation:testing [all])
Inst firmware-atheros [1:20190114-1+rpt7] (1:20190114-1+rpt8 Raspberry Pi Foundation:testing [all])
Inst firmware-brcm80211 [1:20190114-1+rpt7] (1:20190114-1+rpt8 Raspberry Pi Foundation:testing [all])
Inst firmware-libertas [1:20190114-1+rpt7] (1:20190114-1+rpt8 Raspberry Pi Foundation:testing [all])
Inst firmware-misc-nonfree [1:20190114-1+rpt7] (1:20190114-1+rpt8 Raspberry Pi Foundation:testing [all])
Inst firmware-realtek [1:20190114-1+rpt7] (1:20190114-1+rpt8 Raspberry Pi Foundation:testing [all])
Inst libgs9 [9.27~dfsg-2+deb10u3] (9.27~dfsg-2+deb10u4 Raspbian:stable [armhf]) []
Inst libgs9-common [9.27~dfsg-2+deb10u3] (9.27~dfsg-2+deb10u4 Raspbian:stable [all])
Inst libraspberrypi-doc [1.20200811-1] (1.20200819-1 Raspberry Pi Foundation:testing [armhf]) []
Inst libraspberrypi-dev [1.20200811-1] (1.20200819-1 Raspberry Pi Foundation:testing [armhf]) []
Inst raspberrypi-kernel [1.20200811-1] (1.20200819-1 Raspberry Pi Foundation:testing [armhf]) []
Inst libraspberrypi-bin [1.20200811-1] (1.20200819-1 Raspberry Pi Foundation:testing [armhf]) []
Inst libraspberrypi0 [1.20200811-1] (1.20200819-1 Raspberry Pi Foundation:testing [armhf]) []
Inst raspberrypi-bootloader [1.20200811-1] (1.20200819-1 Raspberry Pi Foundation:testing [armhf])
Inst pi-bluetooth [0.1.14] (0.1.15 Raspberry Pi Foundation:testing [all])
Inst raspi-config [20200727] (20200817 Raspberry Pi Foundation:testing [all])
Inst rpd-plym-splash [0.23] (0.24 Raspberry Pi Foundation:testing [armhf])
Conf unifi (5.14.23-13880-1 Ubiquiti Networks, Inc.:stable [all])
Conf bluez-firmware (1.2-4+rpt4 Raspberry Pi Foundation:testing [all])
Conf firmware-atheros (1:20190114-1+rpt8 Raspberry Pi Foundation:testing [all])
Conf firmware-brcm80211 (1:20190114-1+rpt8 Raspberry Pi Foundation:testing [all])
Conf firmware-libertas (1:20190114-1+rpt8 Raspberry Pi Foundation:testing [all])
Conf firmware-misc-nonfree (1:20190114-1+rpt8 Raspberry Pi Foundation:testing [all])
Conf firmware-realtek (1:20190114-1+rpt8 Raspberry Pi Foundation:testing [all])
Conf libgs9 (9.27~dfsg-2+deb10u4 Raspbian:stable [armhf])
Conf libgs9-common (9.27~dfsg-2+deb10u4 Raspbian:stable [all])
Conf libraspberrypi-doc (1.20200819-1 Raspberry Pi Foundation:testing [armhf])
Conf libraspberrypi-dev (1.20200819-1 Raspberry Pi Foundation:testing [armhf])
Conf raspberrypi-kernel (1.20200819-1 Raspberry Pi Foundation:testing [armhf])
Conf libraspberrypi-bin (1.20200819-1 Raspberry Pi Foundation:testing [armhf])
Conf libraspberrypi0 (1.20200819-1 Raspberry Pi Foundation:testing [armhf])
Conf raspberrypi-bootloader (1.20200819-1 Raspberry Pi Foundation:testing [armhf])
Conf pi-bluetooth (0.1.15 Raspberry Pi Foundation:testing [all])
Conf raspi-config (20200817 Raspberry Pi Foundation:testing [all])
Conf rpd-plym-splash (0.24 Raspberry Pi Foundation:testing [armhf])
现在:
$ sudo apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
500 http://archive.raspberrypi.org/debian buster/main armhf Packages
release o=Raspberry Pi Foundation,a=testing,n=buster,l=Raspberry Pi Foundation,c=main,b=armhf
origin archive.raspberrypi.org
500 https://www.ui.com/downloads/unifi/debian stable/ubiquiti armhf Packages
release o=Ubiquiti Networks, Inc.,a=stable,n=unifi-5.14,l=Ubiquiti Networks, Inc.,c=ubiquiti,b=armhf
origin www.ui.com
500 http://raspbian.raspberrypi.org/raspbian buster/rpi armhf Packages
release o=Raspbian,a=stable,n=buster,l=Raspbian,c=rpi,b=armhf
origin raspbian.raspberrypi.org
500 http://raspbian.raspberrypi.org/raspbian buster/non-free armhf Packages
release o=Raspbian,a=stable,n=buster,l=Raspbian,c=non-free,b=armhf
origin raspbian.raspberrypi.org
500 http://raspbian.raspberrypi.org/raspbian buster/contrib armhf Packages
release o=Raspbian,a=stable,n=buster,l=Raspbian,c=contrib,b=armhf
origin raspbian.raspberrypi.org
500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
release o=Raspbian,a=stable,n=buster,l=Raspbian,c=main,b=armhf
origin raspbian.raspberrypi.org
Pinned packages:
那么我如何恢复我的“更新”,这样就不会威胁升级到“测试”版本。我应该怎么做才能只获取 unifi 升级?