Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

share|improve this question
    
Check /etc/apt/sources.list and change the entries to point to some mirror. (See also man 5 sources.list) –  sr_ Jun 4 '12 at 11:10
    
@sr_ You mean I need to configure the mirrors manually? But with yum install kernel-devel one doesn't need to do it. What is the difference here? –  Kshitiz Sharma Jun 4 '12 at 11:56
    
@sr_ Alternatively is it possible to use yum as a package manager with Debian? –  Kshitiz Sharma Jun 4 '12 at 11:56
    
    
@sr_ Perhaps you should've put in your suggestions as an answer so that I could select it. Or do you think you have too many points already? :-) –  Kshitiz Sharma Jun 4 '12 at 13:30

1 Answer 1

up vote 2 down vote accepted

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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