【问题标题】:Apt-Pinning: Installing libboost from Jaunty repository into Intrepid UbuntuApt-Pinning:将 Jaunty 存储库中的 libboost 安装到 Intrepid Ubuntu 中
【发布时间】:2009-08-10 16:15:26
【问题描述】:

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

【问题讨论】:

    标签: boost ubuntu apt ubuntu-8.10


    【解决方案1】:

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

    【讨论】:

    • 哇...比我想象的要简单得多。谢谢!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-02-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多