Apt-Pinning:将 libboost 从 Jaunty 存储库安装到 Intrepid Ubuntu 中
我正在尝试使用 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.
I'm trying to install libboost 1.38 in Ubuntu 8.10 using a Ubuntu 9.04 repository since it isn't avalable in any of the 8.10 repositories. I'm trying to use an Apt-pinning by adding the following lines of code:
/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
Which gives me the following error when I try to open Synaptic:
E: Invalid record in the preferences file, no Package header
E: _cache->open() failed, please report.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
/etc/apt/preferences
条目中不应有前导空格。There should be no leading space in
/etc/apt/preferences
entries.