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

时间:2009-08-10 16:15:26

标签: 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.

1 个答案:

答案 0 :(得分:1)

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