I am trying to install Debian kernel sources using the following commands -

sudo apt-get install linux-headers-$(uname -r)

It prompts me to insert the Debian disk to continue the installation.

Why is this so? I have used other Linux Distros and the default behavior seems to be to install from an internet repository.

How should I change the default repository location? i.e. configure online repo for Debian and offline one for Ubuntu?


Afaik you end up having no mirrors configured in your /etc/apt/sources.list if you skipped the corresponding questions during system setup. As already pointed out, you just have to edit your sources.list file, followed by apt-get update to update your local package index.

  • why not write an example entry to sources.list that people can just go and use? – erikbwork Mar 22 '17 at 8:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.