PDA

View Full Version : Sandbox cannot connect to repositories but Vm image can


lorddct
2009-12-30, 06:06
Hi,

Iḿ having a problem with getting the libhildon packages to install. It seems the problem is that the sandbox cannot connect to the repositories. Is there any additional setup in the sandbox that needs to be done so this error will go away?

[sbox-FREMANTLE_X86: /etc/apt] > fakeroot apt-get update
Err http://repository.maemo.org fremantle/sdk Release.gpg
Temporary failure resolving 'repository.maemo.org'
Err http://repository.maemo.org fremantle/tools Release.gpg
Temporary failure resolving 'repository.maemo.org'
Err http://repository.maemo.org fremantle Release.gpg
Temporary failure resolving 'repository.maemo.org'
Err http://repository.maemo.org fremantle Release.gpg
Temporary failure resolving 'repository.maemo.org'
Err http://repository.maemo.org fremantle/******************************** Release.gpg
Temporary failure resolving 'repository.maemo.org'
Failed to fetch http://repository.maemo.org/dists/fremantle/sdk/Release.gpg Temporary failure resolving 'repository.maemo.org'
Failed to fetch http://repository.maemo.org/dists/fremantle/tools/Release.gpg Temporary failure resolving 'repository.maemo.org'
Failed to fetch http://repository.maemo.org/extras/dists/fremantle/Release.gpg Temporary failure resolving 'repository.maemo.org'
Failed to fetch http://repository.maemo.org/extras-devel/dists/fremantle/Release.gpg Temporary failure resolving 'repository.maemo.org'
Failed to fetch http://repository.maemo.org/dists/fremantle/********************************/Release.gpg Temporary failure resolving 'repository.maemo.org'
Reading package lists... Done
W: Couldn't stat source package list http://repository.maemo.org fremantle/sdk/free Packages (/var/lib/apt/lists/repository.maemo.org_dists_fremantle_sdk_free_bina ry-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://repository.maemo.org fremantle/sdk/non-free Packages (/var/lib/apt/lists/repository.maemo.org_dists_fremantle_sdk_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://repository.maemo.org fremantle/tools/free Packages (/var/lib/apt/lists/repository.maemo.org_dists_fremantle_tools_free_bi nary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://repository.maemo.org fremantle/tools/non-free Packages (/var/lib/apt/lists/repository.maemo.org_dists_fremantle_tools_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://repository.maemo.org fremantle/free Packages (/var/lib/apt/lists/repository.maemo.org_extras_dists_fremantle_free_b inary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://repository.maemo.org fremantle/non-free Packages (/var/lib/apt/lists/repository.maemo.org_extras_dists_fremantle_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://repository.maemo.org fremantle/free Packages (/var/lib/apt/lists/repository.maemo.org_extras-devel_dists_fremantle_free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://repository.maemo.org fremantle/non-free Packages (/var/lib/apt/lists/repository.maemo.org_extras-devel_dists_fremantle_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://repository.maemo.org fremantle/********************************/nokia-binaries Packages (/var/lib/apt/lists/repository.maemo.org_dists_fremantle_************* *******************_nokia-binaries_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.
[sbox-FREMANTLE_X86: /etc/apt] >

Flandry
2009-12-30, 06:17
It might be your /etc/resolv.conf files. I believe there's a different one for each target AND for scratchbox as a whole and they aren't all synched up out of the box with your system's version.

lorddct
2009-12-30, 06:39
Ie tried to modify the /etc/resolv.conf in scratchbox to match ubuntuś but still gives me problems any other ides?

I use 192.168.1.1 as the nameserver address. Should I use a different one instead?

Thanks

Flandry
2009-12-30, 06:45
That's on your LAN (your router, obviously). Without knowing the setup, i couldn't say. Comcast (my ISP) has such flaky DNS servers that i finally just put in google's, i think.

See this thread:
http://talk.maemo.org/showthread.php?t=33929

lorddct
2009-12-30, 06:48
Iḿ tried it with google public DNS and it still does not work.

Thanks

lorddct
2009-12-30, 06:57
Answering my own question again:
For reasons obscure to me, there is a separate /etc/resolv.conf for scratchbox (in /scratchbox/etc) and for each of the targets (which is what you'll see if you check /etc/resolv.conf inside scratchbox). In my case, the scratchbox one didn't have the extra nameserver info, just the target resolv.conf. Changing that made the repo domain resolve after a few tries.

Horus: you certainly could do it from http://maemo.org/packages (download the deb) but installing things that way with dpkg is not really "the right way" and may lead to confusion in apt.

That one from you worked. I was editting the wrong resolv.conf file which MAKES no sense. I was editting inside the sandbox instead of /scratchbox/etc/resolv.conf

Thanks for your help.

jebba
2009-12-30, 15:07
There's actually more than one resolv.conf. Perhaps check them all. I see:



/targets/FREMANTLE_X86/etc/resolv.conf

/targets/FREMANTLE_ARMEL/etc/resolv.conf

/targets/MaemoKernel/etc/resolv.conf

/scratchbox/etc/resolv.conf

ArnimS
2009-12-30, 15:24
Hi,

Iḿ having a problem with getting the libhildon packages to install. It seems the problem is that the sandbox cannot connect to the repositories.
...
E: Some index files failed to download, they have been ignored, or old ones used instead.
[sbox-FREMANTLE_X86: /etc/apt] >

1) Are you using maemo vmware sdk?
2) Is your host system Ubuntu or another distro which generates resolv.conf dynamically?

If so, the following may apply to you:
from: http://maemovmware.garage.maemo.org/2nd_edition/documentation.html
Scratchbox does not initialize resolv.conf properly. Such file defines DNS servers. Whenever Scratchbox is started, it copies /etc/resolv.conf from host PC BEFORE such file is created by NetworkManager. In order to solve this problem, restart Scratchbox using the following command line

$ sudo /scratchbox/sbin/sbox_ctl restart

hope this helps. some older scratchbox installs had issues with nsswitch.conf, also, iirc.