LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-01-2009, 11:22 AM   #1
dracuss
Member
 
Registered: May 2006
Location: Chisinau, Moldova
Distribution: Gentoo, Debian sid
Posts: 151

Rep: Reputation: 29
APT problem


Hello, everybody! There is a strange bug I get when running apt-get, and there is nothing I can do about it.
My sources.list is very short:
Code:
 deb ftp://ftp.debian.org/debian squeeze main contrib non-free
But when I run apt-get update i see on the screen:
Code:
0% (Working)
0% (Connecting to ftp.debian.org)
after that, this text dissapears and on the screen appears the following error:
Code:
debian:/home/ion# apt-get update
Err ftp://ftp.debian.org squeeze Release.gpg
  Could not resolve 'ftp.debian.org'
Err ftp://ftp.debian.org squeeze/main Translation-en_US
  Could not resolve 'ftp.debian.org'
Err ftp://ftp.debian.org squeeze/contrib Translation-en_US
  Could not resolve 'ftp.debian.org'
Err ftp://ftp.debian.org squeeze/non-free Translation-en_US
  Could not resolve 'ftp.debian.org'
Reading package lists... Done
W: Failed to fetch ftp://ftp.debian.org/debian/dists/squeeze/Release.gpg  Could 
not resolve 'ftp.debian.org'

W: Failed to fetch ftp://ftp.debian.org/debian/dists/squeeze/main/i18n/Translati
on-en_US.bz2  Could not resolve 'ftp.debian.org'

W: Failed to fetch ftp://ftp.debian.org/debian/dists/squeeze/contrib/i18n/Transl
ation-en_US.bz2  Could not resolve 'ftp.debian.org'

W: Failed to fetch ftp://ftp.debian.org/debian/dists/squeeze/non-free/i18n/Trans
lation-en_US.bz2  Could not resolve 'ftp.debian.org'

W: Some index files failed to download, they have been ignored, or old ones used
 instead.
W: You may want to run apt-get update to correct these problems
But the internet connection works fine.
 
Old 04-01-2009, 11:58 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
What's in /etc/resolv.conf and /etc/nsswitch.conf?
 
Old 04-01-2009, 02:46 PM   #3
dracuss
Member
 
Registered: May 2006
Location: Chisinau, Moldova
Distribution: Gentoo, Debian sid
Posts: 151

Original Poster
Rep: Reputation: 29
Resolv.conf:
Code:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 172.27.137.10
nameserver 172.27.137.20
nssswich.conf:
Code:
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         compat
group:          compat
shadow:         compat

hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis
Also I forgotten to mention that i've got this bug once I did a dist-upgrade to squeeze

Last edited by dracuss; 04-01-2009 at 02:48 PM.
 
Old 04-03-2009, 01:45 PM   #4
dracuss
Member
 
Registered: May 2006
Location: Chisinau, Moldova
Distribution: Gentoo, Debian sid
Posts: 151

Original Poster
Rep: Reputation: 29
Solved it . There must be something with glibc, because the browser works well, but other stuff not. I entered the IP of ftp.debian.org, and it works.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt pinning /etc/apt/apt.conf parent's_basement Debian 5 10-26-2008 05:50 PM
apt-get update and apt-get install problem please solve it. regent_royal Linux - Newbie 11 06-26-2008 07:38 AM
Problem with apt-get sumguy231 Debian 2 11-10-2004 05:10 PM
Problem with apt tbalboni Linspire/Freespire 13 04-21-2004 04:05 PM
rh9 xd2 apt apt-get problem fix and solution transeunt Red Hat 0 12-16-2003 10:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration