相关疑难解决方法(0)

如何在 Apt 引脚定义中包含逗号?

我想创建一个 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)

configuration special-characters pinning

8
推荐指数
2
解决办法
378
查看次数

为什么某些 Open Office 软件包在 Synaptic 中被标记为“本地或过时”

这是对这个问题的跟进:在 Synaptic 中“本地或过时”是什么意思

我没有手动安装 Open Office。我怀疑 Open Office 是否已从存储库中删除。那么为什么 Open Office 软件包在 Synaptic 中被标记为“本地或过时”?

Synaptic 显示已安装(本地或过时)

我正在使用 Ubuntu 10.04。


更新

我非常怀疑切换到 LibreOffice 是 Open Office 包被标记为“本地或过时”的原因。

几个原因:

  • 不仅仅是标记为“本地或过时”的 Open Office 软件包。例如:python-unoscim,和xserver-xorg-input-wacom
  • ubuntu wiki 页面明确指出 ubuntu 10.04 仍然使用 Open Office。(链接现在重定向到另一个页面。链接是:https://help.ubuntu.com/community/OfficeApplications/DefaultPackages
  • Ubuntu 10.04 存储库中没有 LibreOffice 软件包。正如上面的链接所说,必须使用 PPA 才能获得 LibreOffice。我很确定 Ubuntu 不会在官方存储库中没有替换的情况下丢弃 Open Office 软件包。
  • Ubuntu 10.04 是 LTS(长期支持)版本。Canonical 对 LTS 版本的升级非常保守。Ubuntu 10.04 甚至仍然使用 Firefox 3.6。
  • 通常,当他们进行此类更新时,会有一个与旧软件包冲突的过渡软件包,因此它们会被卸载。旧的 adobe flash 插件包也是如此。

10.04 package-management synaptic

5
推荐指数
1
解决办法
643
查看次数