Apt-Pinning:将 libboost 从 Jaunty 存储库安装到 Intrepid Ubuntu 中

发布于 2024-08-01 21:53:19 字数 495 浏览 2 评论 0原文

我正在尝试使用 Ubuntu 9.04 存储库在 Ubuntu 8.10 中安装 libboost 1.38,因为它在任何 8.10 存储库中都不可用。 我尝试通过添加以下代码行来使用 Apt-pinning:

/etc/apt/sources.list:
deb http://us.archive.ubuntu.com/ubuntu/ jaunty universe

/etc/apt/preferences (Which I had to create):
 Package: *libboost*
 Pin: release a=jaunty
 Pin-Priority: 900

当我尝试打开 Synaptic 时,出现以下错误:

E: Invalid record in the preferences file, no Package header
E: _cache->open() failed, please report.

I'm trying to install libboost 1.38 in Ubuntu 8.10 using a Ubuntu 9.04 repository since it isn't avalable in any of the 8.10 repositories. I'm trying to use an Apt-pinning by adding the following lines of code:

/etc/apt/sources.list:
deb http://us.archive.ubuntu.com/ubuntu/ jaunty universe

/etc/apt/preferences (Which I had to create):
 Package: *libboost*
 Pin: release a=jaunty
 Pin-Priority: 900

Which gives me the following error when I try to open Synaptic:

E: Invalid record in the preferences file, no Package header
E: _cache->open() failed, please report.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

落墨 2024-08-08 21:53:19

/etc/apt/preferences 条目中不应有前导空格。

There should be no leading space in /etc/apt/preferences entries.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文