在 Jessie 上,根据man 5 sources.list
,我可以sources.list
以受 RFC822 启发的格式编写我的文件:
Types: deb deb-src
URIs: http://http.us.debian.org/debian/
Suites: jessie
Sections: main contrib non-free
Run Code Online (Sandbox Code Playgroud)
不幸的是,这会产生一个错误:
root@Zia:~# apt-get update
E: Type 'Types:' is not known on line 1 in source list /etc/apt/sources.list
E: The list of sources could not be read.
Run Code Online (Sandbox Code Playgroud)
为什么记录在案的 RFC822 格式不起作用?
查看apt 更改日志在 0.9.14.3~exp5 下找到了这个条目:
- 设置
APT::Sources::Use-Deb822=false
直到格式完全确定[格式添加]
所以看起来他们只是忘记在手册页中记录有一个选项可以打开或关闭支持,并且默认情况下它是禁用的。文档问题已报告为错误 736710。
要使其工作,请添加APT::Sources::Use-Deb822 true;
到/etc/apt/apt.conf
(或 中的文件/etc/apt/apt.conf.d/
)。
实验 apt 不再使用上述选项。相反,您必须将 deb822 样式的源放在/etc/apt/sources.list.d/
匹配的文件名下*.sources
(传统样式的源放在下*.list
)。此外,Sections:
已重命名Components:
。
归档时间: |
|
查看次数: |
356 次 |
最近记录: |