LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-29-2010, 12:35 PM   #1
Draylath
Member
 
Registered: May 2004
Location: Great Paxton
Distribution: Debian
Posts: 112

Rep: Reputation: 15
aptitude and source list problems


Hi,

I have just started out with debian and I'm having a few problems.

I installed my amd64 lenny using a network instalation cd. As I expected it didn't have a lot on there when installed so I started to try and get kde using aptitude. During the instal I was prompted to use the ftp from debian in the uk as my repository source.

The problem is that when I try to download, update or do anything in aptitude there is no network activity and the thing eventually times out. I have pinged websites and I get no problems there so I think it might be something to do with the package lists or something. I'm not very experienced at using command lines so I'm finding it all abit daunting, so any help would be appreiceated.

EDIT: in case it is relevent I am conecting to the internet using a netgear router through usb. I tried using aptitude with it conected to ether net as well but both didn't work

Thanks

Last edited by Draylath; 03-29-2010 at 01:11 PM.
 
Old 03-29-2010, 01:15 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
If you can ping stuff, you should try using an http repository. Can you post your /etc/apt/sources.list file?
 
Old 03-29-2010, 01:28 PM   #3
Draylath
Member
 
Registered: May 2004
Location: Great Paxton
Distribution: Debian
Posts: 112

Original Poster
Rep: Reputation: 15
I have to browse on a different pc so this might have typos in it but this is what I have from the initial instalation: (I missed the stuff with the CD out):

deb http://ftp.uk.debian.org/debian/ lenny main
deb-src http://ftp.uk.debian.org/debian/ lenny main

deb http://security.debian.org/ lenny/updates main
deb-src http://security.debian.org /lenny/updates main

#Line commented out by installer because it failed to initialse
#deb http://voletile.debian.org/debian-volatile lenny/volatile main
#Line commented out by installer because it failed to initialse
deb-src http://voletile.debian.org/debian-volatile lenny/volatile main
 
Old 03-29-2010, 01:49 PM   #4
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
Make sure you comment out the CD if it's still listed. I'd probably comment out volatile for now also.

You might want to try a different mirror for now. Here's a list of all the available mirrors.

Don't forget to run as root or sudo. Run sudo aptitude update and post the response.
 
Old 03-29-2010, 02:22 PM   #5
Draylath
Member
 
Registered: May 2004
Location: Great Paxton
Distribution: Debian
Posts: 112

Original Poster
Rep: Reputation: 15
ok

the volatile stuff was already commented out by the instaler so I left that alone.

I tried the last thing first (sudo aptitude update)

I get :

Connecting to ftp.uk.debian.org (1.0.0.0) the nothing happens for ages, no activity on the router light then a message about timing out.

I also think I need some help on how to add the repository entries in the sources.list file. Everything I try makes aptitude say that it is a malformed line and it can't read it

Thankyou for your time on this
 
Old 03-29-2010, 03:11 PM   #6
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
clearly there is a routing problem because ftp.uk.debian.org should be 83.142.228.128.

What happens when you ping google from the linux box?
 
Old 03-29-2010, 03:14 PM   #7
Draylath
Member
 
Registered: May 2004
Location: Great Paxton
Distribution: Debian
Posts: 112

Original Poster
Rep: Reputation: 15
100% packages recived 0% lost, about 42ms delay
64 bytes from www.google.com (216.239.59.10.4)
 
Old 03-29-2010, 03:16 PM   #8
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
Try pinging ftp.uk.debian.org.

Also, can you post the contents of /etc/resolv.conf?
 
Old 03-29-2010, 03:22 PM   #9
Draylath
Member
 
Registered: May 2004
Location: Great Paxton
Distribution: Debian
Posts: 112

Original Poster
Rep: Reputation: 15
The ping was again succesfull 32ms average time

file etc/resolv.conf as follows:

nmaeserver 192.168.0.1

Ah! now that is the ip number for my router. I have a feeling it should be something else but not sure what
 
Old 03-29-2010, 03:29 PM   #10
Draylath
Member
 
Registered: May 2004
Location: Great Paxton
Distribution: Debian
Posts: 112

Original Poster
Rep: Reputation: 15
Fixed it,

Bloody thing just neede a proper DNS server to call its own. As soon as I put that in started gobbling up files from the repositories.

Many thanks for your help
 
Old 03-29-2010, 03:31 PM   #11
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
Correct, the /etc/resolv.conf file is basically your local DNS address book. The nameserver entry points your local machine to your local router. So if you can ping it, it's weird that aptitude is looking for 1.0.0.0 which is a broken route.

Edit: Glad you got it working. I always like having a real nameserver in there just in case.
 
  


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
Aptitude and source packages parent's_basement Debian 1 05-13-2009 04:03 PM
aptitude- list/grab package for another debian release aquaboot Debian 4 06-06-2008 06:30 PM
Reconfig my aptitude list file? NeoNmaN Ubuntu 12 08-14-2006 04:11 PM
[aptitude] How to get a list of all installed packages? coralsaw Debian 5 06-30-2006 08:05 PM
Is it possible to build packages from source with aptitude? Akhran Debian 1 02-13-2006 11:41 AM


All times are GMT -5. The time now is 07:04 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration