debian - 为 python3-lxml build-dep 添加源 URI
问题描述
我正在尝试运行以下命令:apt-get build-dep python3-lxml
.
我得到以下输出:E: You must put some 'source' URIs in your sources.list
这是输出cat /etc/apt/sources.list
:
deb http://deb.debian.org/debian stretch main contrib non-free
#deb-src http://deb.debian.org/debian stretch main contrib non-free
deb http://deb.debian.org/debian stretch-updates main contrib non-free
#deb-src http://deb.debian.org/debian stretch-updates main contrib non-free
deb http://deb.debian.org/debian-security stretch/updates main contrib non-free
#deb-src http://deb.debian.org/debian-security stretch/updates main contrib non-free
#deb http://deb.debian.org/debian stretch-backports main contrib non-free
##deb-src http://deb.debian.org/debian stretch-backports main contrib non-free
#Kernel source (repos.rcn-ee.com) : https://github.com/RobertCNelson/linux-stable-rcn-ee
#
#git clone https://github.com/RobertCNelson/linux-stable-rcn-ee
#cd ./linux-stable-rcn-ee
#git checkout `uname -r` -b tmp
#
deb [arch=armhf] http://repos.rcn-ee.com/debian/ stretch main
#deb-src [arch=armhf] http://repos.rcn-ee.com/debian/ stretch main
几个问题:
- 我应该如何修改这个文件来添加源?
- 之后需要跑步
apt update
吗? - 你怎么知道要添加什么 URI?
先感谢您!
解决方案
1.您可以/etc/apt/sources.list
使用任何文本编辑器编辑您的文件。只需打开它并取消注释以开头的所需行deb-src
(即删除#
前面的deb-src
),保存并关闭它。
2.是的,之后你必须运行apt update
。
3.所需的 url 已经存在于您的sources.list
文件中。
这是有关Debian sources.list的官方文档,以及有关存档类型(deb
和deb-src
)的一些特定信息。
这里有一些关于Debian Repositories的附加信息。
推荐阅读
- salesforce - 获取基于订单产品的订单 ID
- css - 在线和本地网站在同一屏幕和浏览器上看起来不一样
- python - 在 django 的 RadioSelect 小部件中删除项目符号
- linux - 无法使用 awk 找到部门“管理员”(区分大小写)薪水第二高的员工
- python - 满足条件时如何停止循环?
- java - JsonPath 和 API 自动化的新手。需要关于如何在条件下提取低于 JSON 的值的建议
- pyspark - Pyspark - 指定火车测试拆分的实际大小而不是比率?
- javascript - 如何在 ref 中插入属性和函数?
- kotlin - contentToString 在 kotlin 1.4 中已被弃用,有什么替代方案?
- python - 在 django 中过滤对象的最有效方法是什么