Reply
Thread Tools
free's Avatar
Posts: 739 | Thanked: 159 times | Joined on Sep 2007 @ Germany - Munich
#1
Hi I'm trying to apt-get update in my freshly installed scratchbox, I get the error that it cannot resolve the name
The scratchbox's nsswitch.conf file contains
hosts: dns

and my scratchbox's resolv.conf is the same as the host (debian kernel 2.6.21)

Anybody has encountered the problem? I'm stuck on this since 2 hours.. Google didn't help either.
 
Posts: 662 | Thanked: 238 times | Joined on Jul 2007
#2
Did you edit the apt-get source list to point to the maemo version 3.2 repositories instead of the 3.1?
 
free's Avatar
Posts: 739 | Thanked: 159 times | Joined on Sep 2007 @ Germany - Munich
#3
Thanks for your answer.
Wanting to install the Maemo 3.2 sdk I followed the instructions here
http://repository.maemo.org/stable/bora/INSTALL.txt
which says that I first need a 3.1 fully installed env. So I grabbed the 3.1 install script. All when well but not the repo update. Did I miss something? mmmhh
Anyway apt-get is the only app that does not resolve well, wget works to reach repository.maemo.org
The next step would be the 3.2 install script. what is the new source list for 3.2? Isn't it on the same server?
Maybe I just go on but this broken apt-get surpises me..
 
gnuite's Avatar
Posts: 1,245 | Thanked: 421 times | Joined on Dec 2005
#4
I had this problem when I installed the SDK. The problem was in my /etc/resolv.conf file. Try replacing the /etc/resolv.conf in your scratchbox environment (for each target) with the /etc/resolv.conf from outside the scratchbox environment.
 
free's Avatar
Posts: 739 | Thanked: 159 times | Joined on Sep 2007 @ Germany - Munich
#5
Thanks but they were all the same.
I ended up mirroring their repository locally and using file:/// in sources.list and now having a working environment.
 
gnuite's Avatar
Posts: 1,245 | Thanked: 421 times | Joined on Dec 2005
#6
A while back, I also had a problem with my /etc/nsswitch.conf file (in the SDK environments). My memory is a little hazy, but I seem to recall editing the "hosts" line to remove entries that contained the string "mdns4". I think Debian installs with mdns4 by default, and the SDK has a problem with mdns4. Give that a shot.
 
free's Avatar
Posts: 739 | Thanked: 159 times | Joined on Sep 2007 @ Germany - Munich
#7
gnuile YOU ARE DA MAN
I thought I had modified them all but when rechecking I had missed some probably.
Thanks a lot for helping with this
 
Reply


 
Forum Jump


All times are GMT. The time now is 07:53.