How to install a Debian package from internet?

6,337

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:
6,337

Related videos on Youtube

Benny Abramovici
Author by

Benny Abramovici

Developer who enjoys sharing knowledge. https://ksharma.dev Open source projects: Github

Updated on September 18, 2022

Comments

  • Benny Abramovici
    Benny Abramovici over 1 year

    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?

    • sr_
      sr_ almost 12 years
      Check /etc/apt/sources.list and change the entries to point to some mirror. (See also man 5 sources.list)
    • Benny Abramovici
      Benny Abramovici almost 12 years
      @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?
    • sr_
      sr_ almost 12 years
    • Benny Abramovici
      Benny Abramovici almost 12 years
      @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? :-)