Debian:APT pin 中的转义空格

Debian:APT pin 中的转义空格

我在 Raspberry Pi 上运行 Debian Wheezy,并且希望同时拥有 Raspbian 存储库http://mirrordirector.raspbian.org/raspbian/(用于操作系统)和 RPi Foundation 存储库http://archive.raspberrypi.org/debian/(用于内核和固件)。

问题是 Foundation 仓库发布了 的新版本libpixman-1-0,这会破坏 VLC 构建 - 因此我想使用 APT 固定来固定 Foundation 仓库中除raspberrypi-bootloaderrpi-update和 之外的所有包raspi-config。在 中apt-cache policy libpixman-1-0,输出如下:

libpixman-1-0:
  Installed: 0.32.6-3
  Candidate: 0.33.1+git20140627-c37ff5-rpi1rpi1
  Version table:
     0.33.1+git20140627-c37ff5-rpi1rpi1 0
        500 http://archive.raspberrypi.org/debian/ wheezy/main armhf Packages
 *** 0.32.6-3 0
        500 http://mirrordirector.raspbian.org/raspbian/ testing/main armhf Packages
        100 /var/lib/dpkg/status

输出apt-cache policy为(截断):

 500 http://archive.raspberrypi.org/debian/ wheezy/main armhf Packages
     release o=Raspberry Pi Foundation,n=wheezy,l=Raspberry Pi Foundation,c=main
     origin archive.raspberrypi.org
 500 http://mirrordirector.raspbian.org/raspbian/ testing/main armhf Packages
     release o=Raspbian,a=testing,n=jessie,l=Raspbian,c=main
     origin mirrordirector.raspbian.org

理论上,这个阻止/etc/apt/preferences.d/01-rpi应该禁用除上述三个包之外的所有包:

Package: *
Pin: o=Raspberry Pi Foundation,n=wheezy,l=Raspberry Pi Foundation,c=main
Pin-Priority: -1
Package: raspberrypi-bootloader
Pin: o=Raspberry Pi Foundation,n=wheezy,l=Raspberry Pi Foundation,c=main
Pin-Priority: 999
Package: raspi-config
Pin: o=Raspberry Pi Foundation,n=wheezy,l=Raspberry Pi Foundation,c=main
Pin-Priority: 999
Package: rpi-update
Pin: o=Raspberry Pi Foundation,n=wheezy,l=Raspberry Pi Foundation,c=main
Pin-Priority: 999

问题是由于引脚名称中的空格导致此方法不起作用 -apt-cache policy并发出警告:

W: Did not understand pin type o=Raspberry

我该如何转义这个空格?我已经尝试用单引号和双引号括起来,并在前面加上反斜杠,但没有用。

答案1

您的别针形状好像不正确。

Pin: o=Raspberry Pi Foundation,n=wheezy,l=Raspberry Pi Foundation,c=main

尝试一下这个。

Pin: release o=Raspberry Pi Foundation,n=wheezy,l=Raspberry Pi Foundation,c=main

相关内容