我正在使用 Ubuntu 桌面(Linux 版本 3.11.0-15-generic (buildd@allspice))。我试图通过命令获取linux源代码:
sudo apt-get source linux-image-3.11.0-15-generic
Run Code Online (Sandbox Code Playgroud)
然后我看到了这个错误:
home@ubuntu:~$ sudo apt-get source linux-image-3.11.0-15-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: You must put some 'source' URIs in your sources.list
Run Code Online (Sandbox Code Playgroud)
我找不到合适的 URI 链接来添加/etc/apt/sources.list.
使用
sudo software-properties-gtk
Run Code Online (Sandbox Code Playgroud)

启用“Ubuntu 软件”选项卡上的“源代码”复选框。然后运行
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)
获取源列表。
| 归档时间: |
|
| 查看次数: |
4628 次 |
| 最近记录: |