我想创建一个 Apt 首选项文件,其引脚定义与源自Google, Inc..
以下定义似乎没有做任何事情:
Package: *
Pin: release o=Google, Inc.
Pin-priority: 900
Run Code Online (Sandbox Code Playgroud)
我怀疑逗号引起了问题。我怎样才能逃脱它?
以下方法均无效:
release o="Google, Inc."release o='Google, Inc.'release o=Google\, Inc.release o=Google\\, Inc.奇怪的是,以下确实匹配Google, Inc.成功:
release o=Google? Inc.但这不是我正在寻找的解决方案。我想知道如何在Google, Inc.不诉诸(不稳定的)通配符的情况下进行匹配。
更多信息:
$ apt-cache policy | grep -C 1 'Google, Inc.'
500 http://dl.google.com/linux/earth/deb/ stable/main amd64 Packages
release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main
origin dl.google.com
500 http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages
release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main
origin dl.google.com
$ grep Origin /var/lib/apt/lists/dl.google.com_*_Release
/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_Release:Origin: Google, Inc.
/var/lib/apt/lists/dl.google.com_linux_earth_deb_dists_stable_Release:Origin: Google, Inc.
Run Code Online (Sandbox Code Playgroud) 这是对这个问题的跟进:在 Synaptic 中“本地或过时”是什么意思。
我没有手动安装 Open Office。我怀疑 Open Office 是否已从存储库中删除。那么为什么 Open Office 软件包在 Synaptic 中被标记为“本地或过时”?

我正在使用 Ubuntu 10.04。
我非常怀疑切换到 LibreOffice 是 Open Office 包被标记为“本地或过时”的原因。
几个原因:
python-uno,scim,和xserver-xorg-input-wacom。