5

I'm using Ubuntu desktop (Linux version 3.11.0-15-generic (buildd@allspice)). I tried to get linux source code by command:

sudo apt-get source linux-image-3.11.0-15-generic

Then I saw this error:

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

I can't find the suitable URI link to add in /etc/apt/sources.list.

Alvar
  • 17,038

1 Answers1

4

Use

sudo software-properties-gtk

Software sources

Enable "Source code" checkbox on tab "Ubuntu Software". Then run

sudo apt-get update

to get sources lists.

Danatela
  • 13,384