PDA

View Full Version : maemo update in scratchbox


jesus1710
2007-02-02, 08:40
Hi!!!

i have a debian with scratchbox installed. I have to recompile the kernel into the scratchbox in order to run an SCTP aplication. So i need to update the package list, but when i type:

[sbox- MAEMO_KERNEL: ~] > apt-get update

i obtain this:

Failed to fetch http://catalogue.tableteer.nokia.com/certified/dists/mistral/user/binary-arm/Packages.gz 404 Not Found [IP: 212.170.238.81 80]
Failed to fetch http://repository.maemo.org/contrib/dists/mistral/free/binary-arm/Packages.gz 404 Not Found [IP: 212.170.238.10 80]
Failed to fetch http://repository.maemo.org/contrib/dists/mistral/non-free/binary-arm/Packages.gz 404 Not Found [IP: 212.170.238.10 80]
Reading Package Lists... Done
W: Couldn't stat source package list http://catalogue.tableteer.nokia.com mistral/user Packages (/var/lib/apt/lists/catalogue.tableteer.nokia.com_certified_dists_mist ral_user_binary-arm_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://repository.maemo.org mistral/free Packages (/var/lib/apt/lists/repository.maemo.org_contrib_dists_mistral_free_bi nary-arm_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://repository.maemo.org mistral/non-free Packages (/var/lib/apt/lists/repository.maemo.org_contrib_dists_mistral_non-free_binary-arm_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.

My /etc/apt/sources.list is like that:

#maemo:essential
deb http://catalogue.tableteer.nokia.com/certified/ mistral user
deb http://catalogue.tableteer.nokia.com/non-certified/ mistral user
deb http://repository.maemo.org/contrib/ mistral free non-free
deb-src http://repository.maemo.org/contrib/ mistral free non-free
deb http://repository.maemo.org/ mistral free non-free
deb-src http://repository.maemo.org/ mistral free non-free

network is working OK.

can you help me?

Thanks

ITom
2007-02-02, 12:17
You must close Application Manager BEFOR apt-get start. In your case it is looking like shared access to sources.list, bbut it's not possible.

jesus1710
2007-02-02, 12:22
how can i close Application manager?

sorry, but i'm noob.

penguinbait
2007-02-02, 12:38
I may have had a similar problem, network was working, but not dns. Look for resolv.conf,, and setup DNS, inside scratchbox

find / -name resolv.conf


edit it, and add valid DNS servers, instead of 127.0.0.1

jesus1710
2007-02-02, 12:49
resolv.conf is OK :(

jesus1710
2007-02-05, 08:25
above i have observed errors like that:

W: Couldn't stat source package list http://catalogue.tableteer.nokia.com mistral/user Packages (/var/lib/apt/lists/catalogue.tableteer.nokia.com_certified_dists_mist ral_user_binary-arm_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://repository.maemo.org mistral/free Packages (/var/lib/apt/lists/repository.maemo.org_contrib_dists_mistral_free_bi nary-arm_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://repository.maemo.org mistral/non-free Packages (/var/lib/apt/lists/repository.maemo.org_contrib_dists_mistral_non-free_binary-arm_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems

in my folder (in sratchbox) /var/lib/apt/lists :

es
lock
partial
repository.maemo.org_contrib_dists_mistral_free_so urce_Sources
repository.maemo.org_contrib_dists_mistral_non-free_source_Sources
repository.maemo.org_dists_mistral_free_binary-arm_Packages
repository.maemo.org_dists_mistral_free_binary-arm_Release
repository.maemo.org_dists_mistral_free_source_Sou rces
repository.maemo.org_dists_mistral_non-free_binary-arm_Packages
repository.maemo.org_dists_mistral_non-free_binary-arm_Release
repository.maemo.org_dists_mistral_non-free_source_Sources


these files doesn't exists.

:(

megabyte405
2008-01-21, 14:37
This last error is saying (couldn't stat means they aren't there) that you don't have the info from the sources. You need to run apt-get update, and if the network isn't working, you need to fix it, so that apt-get update works. Looks like DNS might be something to think about.

tz1
2008-07-05, 18:19
I ran into the same problem and solved it.

/scratchbox/etc/resolv.conf wasn't symlinked, so it picked up a DNS server I only can access from one system. And it wasn't clear that it was reading it from anything I was doing.

I could fix the symlink or whatever, but instead I moved to opendns.com nameservers, replacing the file with:

nameserver 208.67.222.222
nameserver 208.67.220.220