Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Maemo: Developers

cannot resolve repository

 

 

Maemo developers RSS feed   Index | Next | Previous | View Threaded


bkate at fas

Nov 19, 2007, 7:32 PM

Post #1 of 8 (922 views)
Permalink
cannot resolve repository

I know the solution to this problem is all over the net, but I still cannot seem to fix it. I get the following error when I try to run 'apt-get update' on any target in scratchbox.

[sbox-CHINOOK_ARMEL: ~] > apt-get update
Ign file: chinook Release.gpg
Ign file: chinook Release
Err http://repository.maemo.org chinook Release.gpg
Could not resolve 'repository.maemo.org'
Ign http://repository.maemo.org chinook Release
Ign http://repository.maemo.org chinook/free Packages/DiffIndex
Ign http://repository.maemo.org chinook/non-free Packages/DiffIndex
Ign http://repository.maemo.org chinook/free Sources/DiffIndex
Err http://repository.maemo.org chinook/free Packages
Could not resolve 'repository.maemo.org'
Err http://repository.maemo.org chinook/non-free Packages
Could not resolve 'repository.maemo.org'
Err http://repository.maemo.org chinook/free Sources
Could not resolve 'repository.maemo.org'
Failed to fetch http://repository.maemo.org/dists/chinook/Release.gpg Could not resolve 'repository.maemo.org'
Failed to fetch http://repository.maemo.org/dists/chinook/free/binary-armel/Packages.gz Could not resolve 'repository.maemo.org'
Failed to fetch http://repository.maemo.org/dists/chinook/non-free/binary-armel/Packages.gz Could not resolve 'repository.maemo.org'
Failed to fetch http://repository.maemo.org/dists/chinook/free/source/Sources.gz Could not resolve 'repository.maemo.org'
Reading package lists... Done
E: Some index files failed to download, they have been ignored, or old ones used instead.

I checked all of my nsswitch.conf files, and each one is correct (host and each target). This worked when I first installed scratchbox and now it doesn't. Any thoughts?

- Bryan
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


lool at dooz

Nov 20, 2007, 2:23 AM

Post #2 of 8 (887 views)
Permalink
Re: cannot resolve repository [In reply to]

On Mon, Nov 19, 2007, Bryan Kate wrote:
> I know the solution to this problem is all over the net, but I still
> cannot seem to fix it. I get the following error when I try to run
> 'apt-get update' on any target in scratchbox.

You didn't mention checking /etc/resolv.conf, so you might want to try
that (in your rootstrap).

--
Loïc Minier
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


tilman.vogel at web

Nov 20, 2007, 2:32 AM

Post #3 of 8 (895 views)
Permalink
Re: cannot resolve repository [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Did you try this?

http://lists.maemo.org/pipermail//maemo-developers/2007-October/012130.html

Tilman
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFHQre+9ZPu6Yae8lkRArAwAJ0T7fkuP9JcjDxyfOGqUG4LZA6NVwCfS8fk
t1EXnUKNl/UAin0bZBZ6oNM=
=oXFx
-----END PGP SIGNATURE-----
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


bkate at fas

Nov 20, 2007, 5:29 AM

Post #4 of 8 (890 views)
Permalink
Re: cannot resolve repository [In reply to]

Thank you. I checked most of them but I did not realize there were so many copies. Also, the file is fairly dynamic on the host system, so it was not being copied properly when it changed from site to site.

- Bryan


Loïc Minier wrote:
> On Mon, Nov 19, 2007, Bryan Kate wrote:
>> I know the solution to this problem is all over the net, but I still
>> cannot seem to fix it. I get the following error when I try to run
>> 'apt-get update' on any target in scratchbox.
>
> You didn't mention checking /etc/resolv.conf, so you might want to try
> that (in your rootstrap).
>
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


czr at iki

Nov 20, 2007, 7:35 AM

Post #5 of 8 (882 views)
Permalink
Re: cannot resolve repository [In reply to]

Actually what you could/should do, is as follows:

1) Install dnsmasq on your real host. Defaults should be ok, no need to
mess with your real host resolv.conf. Dnsmasq will read that and update
it's own internals when/if necessary automatically. Also, if using
Debian/Ubuntu, you don't need to touch dnsmasq default setup. It will
work out of the box.

2) Modify the /etc/resolv.conf in your sbox targets to read:
nameserver 127.0.0.1

This way sbox name resolution will use the dnsmasq that is running on
your real host, and you'll never have to touch your sbox resolv.conf again.

Very useful when using the machine in dhcp environments and/or traveling
around.

ak.

Bryan Kate wrote:
> Thank you. I checked most of them but I did not realize there were so many copies. Also, the file is fairly dynamic on the host system, so it was not being copied properly when it changed from site to site.
>
> - Bryan
>
>
> Loïc Minier wrote:
>> On Mon, Nov 19, 2007, Bryan Kate wrote:
>>> I know the solution to this problem is all over the net, but I still
>>> cannot seem to fix it. I get the following error when I try to run
>>> 'apt-get update' on any target in scratchbox.
>> You didn't mention checking /etc/resolv.conf, so you might want to try
>> that (in your rootstrap).
>>
> _______________________________________________
> maemo-developers mailing list
> maemo-developers [at] maemo
> https://lists.maemo.org/mailman/listinfo/maemo-developers

_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


marius at pov

Nov 20, 2007, 7:43 AM

Post #6 of 8 (892 views)
Permalink
Re: cannot resolve repository [In reply to]

On Tue, Nov 20, 2007 at 05:35:24PM +0200, Aleksandr Koltsoff wrote:
> Actually what you could/should do, is as follows:
>
> 1) Install dnsmasq on your real host. Defaults should be ok, no need to
> mess with your real host resolv.conf. Dnsmasq will read that and update
> it's own internals when/if necessary automatically. Also, if using
> Debian/Ubuntu, you don't need to touch dnsmasq default setup. It will
> work out of the box.
>
> 2) Modify the /etc/resolv.conf in your sbox targets to read:
> nameserver 127.0.0.1

And also /scratchbox/etc/resolv.conf.

> This way sbox name resolution will use the dnsmasq that is running on
> your real host, and you'll never have to touch your sbox resolv.conf again.
>
> Very useful when using the machine in dhcp environments and/or traveling
> around.

Marius Gedminas
--
Attempts to stick to simple on-or-off options lead to monsters like gcc, which
now has so many flags that programmers are using genetic algorithms to explore
them.
-- http://www.third-bit.com/~gvwilson/xmlprog.html
Attachments: signature.asc (0.18 KB)


inz at inz

Nov 20, 2007, 10:04 AM

Post #7 of 8 (894 views)
Permalink
Re: cannot resolve repository [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Aleksandr Koltsoff wrote:
> This way sbox name resolution will use the dnsmasq that is running on
> your real host, and you'll never have to touch your sbox resolv.conf again.
>
> Very useful when using the machine in dhcp environments and/or traveling
> around.

Another way (which I use) is to have a pre-up.d -script that copies
/etc/resolv.conf to /scratchbox/etc. I also have sb-conf in -e in
.bashrc in scratchbox so the file gets copied to rootstrap too. This way
I can use the "short names" for the boxen in my LAN. ;)

- --
Santtu Lakkala
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFHQyHBX9Rc0+po4p0RAqt8AKCvk8kN8uFSnjuGTSu5eNe52kunwgCfSypV
wtyeM0trGLkGIOrZuGg3UhI=
=M9fW
-----END PGP SIGNATURE-----
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


inz at inz

Nov 21, 2007, 4:26 AM

Post #8 of 8 (891 views)
Permalink
Re: cannot resolve repository [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Santtu Lakkala wrote:
> Another way (which I use) is to have a pre-up.d -script that copies

Oops, make that a if-up.d -script.

- --
Santtu Lakkala
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFHRCP6X9Rc0+po4p0RAs9KAJ9F6gf3K7SBsP3IMKDAwxBbYafoxQCgkv2/
E/sgnNLBQ5n8Fg4OiDTSzC0=
=ZxM4
-----END PGP SIGNATURE-----
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers

Maemo developers RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.