1

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

1 回答 1

2

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

于 2009-08-10T16:26:56.357 回答