Gå til innhold

[Løst]Problemer med apt-get


Anbefalte innlegg

Jeg driver å leker med med debian, som en inngang til min linux server verden, og ønsket å få installert samba. Keg skrev "apt-get install samba" og fikk en feilmelding. Denne feilmeldingen kommer også når jeg skriver "apt-get update". Kan noen snille forumsjeler prøve å hjelpe meg til å løse dette problemet?

 

Her er feilmeldingen (alt som kommer opp i putty):

debian:~# apt-get update
Err http://ftp.no.debian.org etch Release.gpg
 Cannot initiate the connection to ftp.no.debian.org:80 (158.36.2.10). - connect (101 Network is unreachable)
Ign cdrom://[Debian GNU/Linux 4.0 r4a _Etch_ - Official i386 NETINST Binary-1 20080804-15:10] etch Release.gpg
Ign http://ftp.no.debian.org etch Release
Ign http://ftp.no.debian.org etch/main Packages/DiffIndex
Ign http://ftp.no.debian.org etch/main Sources/DiffIndex
Err http://ftp.no.debian.org etch/main Packages
 Cannot initiate the connection to ftp.no.debian.org:80 (158.36.2.10). - connect (101 Network is unreachable)
Err http://ftp.no.debian.org etch/main Sources
 Cannot initiate the connection to ftp.no.debian.org:80 (158.36.2.10). - connect (101 Network is unreachable)
Ign cdrom://[Debian GNU/Linux 4.0 r4a _Etch_ - Official i386 NETINST Binary-1 20080804-15:10] etch Release
Ign cdrom://[Debian GNU/Linux 4.0 r4a _Etch_ - Official i386 NETINST Binary-1 20080804-15:10] etch/contrib Packages/DiffIndex
Ign cdrom://[Debian GNU/Linux 4.0 r4a _Etch_ - Official i386 NETINST Binary-1 20080804-15:10] etch/main Packages/DiffIndex
Err http://security.debian.org etch/updates Release.gpg
 Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (101 Network is unreachable) [IP: 128.31.0.36 80]
Ign http://security.debian.org etch/updates Release
Ign http://security.debian.org etch/updates/main Packages/DiffIndex
Ign http://security.debian.org etch/updates/contrib Packages/DiffIndex
Ign http://security.debian.org etch/updates/main Sources/DiffIndex
Ign http://security.debian.org etch/updates/contrib Sources/DiffIndex
Ign http://security.debian.org etch/updates/main Packages/DiffIndex
Ign http://security.debian.org etch/updates/main Sources/DiffIndex
Err http://security.debian.org etch/updates/main Packages
 Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (101 Network is unreachable) [IP: 128.31.0.36 80]
Err http://security.debian.org etch/updates/contrib Packages
 Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (101 Network is unreachable) [IP: 128.31.0.36 80]
Err http://security.debian.org etch/updates/main Sources
 Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (101 Network is unreachable) [IP: 128.31.0.36 80]
Err http://security.debian.org etch/updates/contrib Sources
 Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (101 Network is unreachable) [IP: 128.31.0.36 80]
Err http://security.debian.org etch/updates/main Packages
 Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (101 Network is unreachable) [IP: 128.31.0.36 80]
Err http://security.debian.org etch/updates/main Sources
 Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (101 Network is unreachable) [IP: 128.31.0.36 80]
Err http://ftp.de.debian.org etch Release.gpg
 Cannot initiate the connection to ftp.de.debian.org:80 (141.76.2.4). - connect (101 Network is unreachable)
Ign http://ftp.de.debian.org etch Release
Err http://ftp.de.debian.org etch/main Packages
 Cannot initiate the connection to ftp.de.debian.org:80 (141.76.2.4). - connect (101 Network is unreachable)
Failed to fetch http://ftp.no.debian.org/debian/dists/etch/Release.gpg  Cannot initiate the connection to ftp.no.debian.org:80 (158.36.2.10). - connect (101 Network is unreachable)
Failed to fetch http://security.debian.org/dists/etch/updates/Release.gpg  Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (101 Network is unreachable) [IP: 128.31.0.36 80]
Failed to fetch http://ftp.de.debian.org/debian/dists/etch/Release.gpg  Cannot initiate the connection to ftp.de.debian.org:80 (141.76.2.4). - connect (101 Network is unreachable)
Failed to fetch http://ftp.no.debian.org/debian/dists/etch/main/binary-i386/Packages.gz  Cannot initiate the connection to ftp.no.debian.org:80 (158.36.2.10). - connect (101 Network is unreachable)
Failed to fetch http://ftp.no.debian.org/debian/dists/etch/main/source/Sources.gz  Cannot initiate the connection to ftp.no.debian.org:80 (158.36.2.10). - connect (101 Network is unreachable)
Failed to fetch http://security.debian.org/dists/etch/updates/main/binary-i386/Packages.gz  Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (101 Network is unreachable) [IP: 128.31.0.36 80]
Failed to fetch http://security.debian.org/dists/etch/updates/contrib/binary-i386/Packages.gz  Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (101 Network is unreachable) [IP: 128.31.0.36 80]
Failed to fetch http://security.debian.org/dists/etch/updates/main/source/Sources.gz  Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (101 Network is unreachable) [IP: 128.31.0.36 80]
Failed to fetch http://security.debian.org/dists/etch/updates/contrib/source/Sources.gz  Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (101 Network is unreachable) [IP: 128.31.0.36 80]
Failed to fetch http://security.debian.org/dists/etch/updates/main/binary-i386/Packages.gz  Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (101 Network is unreachable) [IP: 128.31.0.36 80]
Failed to fetch http://security.debian.org/dists/etch/updates/main/source/Sources.gz  Cannot initiate the connection to security.debian.org:80 (128.31.0.36). - connect (101 Network is unreachable) [IP: 128.31.0.36 80]
Failed to fetch http://ftp.de.debian.org/debian/dists/etch/main/binary-i386/Packages.gz  Cannot initiate the connection to ftp.de.debian.org:80 (141.76.2.4). - connect (101 Network is unreachable)
Reading package lists... Done
W: Couldn't stat source package list http://ftp.de.debian.org etch/main Packages (/var/lib/apt/lists/ftp.de.debian.org_debian_dists_etch_main_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones used instead.

Lenke til kommentar
Videoannonse
Annonse
Funket når jeg skrev "route add default gw *ip til routeren din*" uten sudo.

Skrev jeg sudop fikk jeg vite at det var en komando som ikke ble igjenkjent...

 

Takk for hjelpa :D

 

 

Har du satt opp /etc/network/interfaces rett da?

 

Der konfigurerer du IP, gateway og nettmaske for hvert nettverkskort, evt setter det til DHCP. I /etc/resolv.conf putter du IP-er til DNS-serverne du bruker.

Lenke til kommentar

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
  • Hvem er aktive   0 medlemmer

    • Ingen innloggede medlemmer aktive
×
×
  • Opprett ny...