Find the answer to your Linux question:
Results 1 to 6 of 6
Hello, I've contacted my local datacenter, and they have set me up with some nice servers, but the problem is, they have no experience with Debian, but I requested that ...
  1. #1
    Just Joined!
    Join Date
    Aug 2006
    Posts
    3

    apt-get + CD problems

    Hello,

    I've contacted my local datacenter, and they have set me up with some nice servers, but the problem is, they have no experience with Debian, but I requested that OS.

    I've logged into root, and went to install some packages, and I get the following error:

    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0B/233kB of archives.
    After unpacking 516kB of additional disk space will be used.
    Media Change: Please insert the disc labelled
    'Debian GNU/Linux 3.1 r0 _Sarge_ - Official i386 Binary-1 (20050605)'
    in the drive '/cdrom/' and press enter
    What I really need to know, is how can I change it from wanting the CD, or getting the packages from the internet?

    Thanks so much,
    Richard.

  2. #2
    Linux Newbie
    Join Date
    Aug 2006
    Posts
    107
    edit the /etc/apt/sources.list file and comment out the line that lists the cd then make sure the appropriate sources are listed for debian.
    Than do a
    apt-get update
    and then start installing all you want!

  3. #3
    Just Joined!
    Join Date
    Aug 2006
    Posts
    3
    Quote Originally Posted by deanlinkous
    edit the /etc/apt/sources.list file and comment out the line that lists the cd then make sure the appropriate sources are listed for debian.
    Than do a
    apt-get update
    and then start installing all you want!
    thanks for the info. But in my /etc/apt/sources.list file all I see is the cd's. What are the appropriate sources that I should add?

  4. #4
    Linux Newbie
    Join Date
    Aug 2006
    Posts
    107
    Something like...
    deb http://ftp.debian.org/debian/ sarge main contrib non-free
    deb http://security.debian.org/ sarge/updates main contrib
    is the basic debian repo and security repo

  5. #5
    Linux Engineer Zelmo's Avatar
    Join Date
    Jan 2006
    Location
    Riverton, UT, USA
    Posts
    1,001
    Try some of the mirrors nearest you, from this list.
    Stand up and be counted as a Linux user!

  6. #6
    Just Joined!
    Join Date
    Aug 2006
    Location
    Central NewYork state, USA
    Posts
    3

    Apt sources

    Quote Originally Posted by GS-Richard
    thanks for the info. But in my /etc/apt/sources.list file all I see is the cd's. What are the appropriate sources that I should add?
    Try these out. Shortcut from figuring them out on your own, but these work well for what I do lately. Not sure where you are located, I am in central NY state and mirrors.kernel.org is pretty quick for me.

    /etc/apt/sources.list:

    # Main Debian packages
    deb http://mirrors.kernel.org/debian stable main
    deb-src http://mirrors.kernel.org/debian stable main

    # Security update packages
    deb http://security.debian.org/ stable/updates main contrib
    deb-src http://security.debian.org/ stable/updates main

    # BOINC - seti@home
    deb http://pkg-boinc.alioth.debian.org/debian sarge main
    deb-src http://pkg-boinc.alioth.debian.org/debian sarge main

    # MythTV, mplayer, lame
    deb http://www.debian-multimedia.org stable main
    deb-src http://www.debian-multimedia.org stable main


    You can leave out the BOINC one if you don't use seti@home. Make sure you comment out the instances of CD reference then run: apt-get update.
    I would then go and run: apt-get upgrade
    then: apt-get dist-upgrade

    That will update what you have installed now to latest versions. Now you can go ahead and have fun installing some new packages.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •