我正在尝试使用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.
答案 0 :(得分:1)
/etc/apt/preferences
条目中不应有前导空格。