etch apt get error

Discussion in 'HOWTO-Related Questions' started by bennyhill, Aug 10, 2007.

  1. bennyhill

    bennyhill New Member

    im following the guide for the perfect setup debian etch but when i get to apt-get update i get errors. warning - im a bit of a noob. i can ping the server so network is up... im guessing my problem is with how im writing the sources.list file --- please help!!

    during the install process apt configuration stopped at 40%, i found another reference to this on the net which suggested disabling network adapter (i plugged it out) and the installtaion continued.

    my /etc/apt/sources.list looks like this

    #
    deb cdrom:[ not going to type]
    #
    deb cdrom:[ not going to type]
    #deb http://ftp.de.debian.org/ debian/

    deb http://security.debian.org/ ~
    deb-src http://security.debian.org/ ~

    this however gives the error

    apt-get install ssh openssh-server
    reading package list... done
    building dependency tree... done
    package ssh is not available, but is reffered to by another package
    this may mean the package is missing, has been obsoleted, or is only
    available from another source
    however the following packages replace it
    openssh-client openssh-server
    E: package ssh has no installation candidate

    if i uncomment the line deb http://ftp.de.debian.org/ debian/
    i get this error

    same as above but with
    W: couldnt stat source package list http://ftp.de.debian.org/ debian/packages (/var/lib/opt/lists/ftp.de.debian.org_debian_packages) - stat (2 no such file or directory)


    at this point it also suggests running apt-get update but that gives this error

    err http://ftp.de.debian.org/ debian/packages
    404 not found
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Your /etc/apt/sources.list should look like this:

    Code:
    #
    # deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 NETINST Binary-1 20070407-11:29]/ etch contrib main
    
    #deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 NETINST Binary-1 20070407-11:29]/ etch contrib main
    
    deb http://ftp2.de.debian.org/debian/ etch main
    deb-src http://ftp2.de.debian.org/debian/ etch main
    
    deb http://security.debian.org/ etch/updates main contrib
    deb-src http://security.debian.org/ etch/updates main contrib
     
  3. bennyhill

    bennyhill New Member

    im embarrased. :eek: thank you so much for answering that post, if i had looked closer i would not have had a problem. Thank you for your patience
     

Share This Page