boost - Apt-Pinning : Installing libboost from Jaunty repository into Intrepid Ubuntu

标签 boost ubuntu apt ubuntu-8.10

我正在尝试使用 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.

最佳答案

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

关于boost - Apt-Pinning : Installing libboost from Jaunty repository into Intrepid Ubuntu,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1255808/

相关文章:

c++ - boost 异步操作不起作用(对我来说)

postgresql - 如何在 ubuntu 14.04 中安装 postgis 1.5?

linux - 无法在 Debian : ModuleNotFoundError: No module named 'apt_pkg' 上安装 Telegram

c++ - 将字符串转换为 GUID 不会给出正确的结果

c++ - 防止 Boost Spirit Symbol 解析器过早接受关键字

c++ - Boost Fusion 变换类型操作和 as_vector

带有源代码操作的 Java 注释处理

python - 找不到 kernprof 命令 - Ubuntu

mysql - 如何监控 MYSQL 的变化

ruby - 在 Emacs 的 eshell 中使用 RVM