Cobra Forum

Linux => New to Ubuntu => Topic started by: mahesh on Aug 14, 2023, 03:09 AM

Title: You must put some 'deb-src' URIs in your sources.list
Post by: mahesh on Aug 14, 2023, 03:09 AM
I am new here I need to get the Linux kernel source. following link https://askubuntu.com/questions/159833/how-do-i-get-the-kernel-source-code

i tried below command

     Code:
ruday@Hruday:~/Desktop$ apt-get source linux-source
Reading package lists... Done
E: You must put some 'deb-src' URIs in your sources.list
hruday@Hruday:~/Desktop$ sudo apt-get source linux-source
[sudo] password for hruday:
Reading package lists... Done
E: You must put some 'deb-src' URIs in your sources.list

what's error message and how to get kernel source code ?