[maemo-users] Problems with maemo and apt-get

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sebas,

I have fixed the problem. An strace of the ssh agent inside scratchbox
brought me to this:

>From the host system point of view there are 2 files wich hold the
configuration for the name service switching:

/scratchbox/users/<user>/targets/<target>/etc/nsswitch.conf (inside sb:
/etc/nsswitch.conf)
/scratchbox/etc/nsswitch.conf (inside sb: /scratchbox/etc/nsswitch.conf)

I think the first one is the nsswitch.conf provided by the
maemo-sdk-rootstrap and the last one is the config file provided by
scratchbox (maybe copied from the host system, during scratchbox
installation?).
So when Iam logged into the target and try to execute apt-get, sb uses
the last config file listed above, which for me was not quit clear. This
had the following entry:
    hosts:    files mdns4_minimal [NOTFOUND=return] dns mdns4
But on my scratchbox there is no library libnss_mdns4_minimal.so (only
libnss_dns.so is provided), which can be used by apt or ssh for name
resolution, and as a result the name lookup went  wrong.

So I changed the entry
    hosts:    files mdns4_minimal [NOTFOUND=return] dns mdns4
into
    hosts:    files dns
in /scratchbox/etc/nsswitch.conf and now it works.

I think this should be noted in the maemo INSTALL.txt, since I have
exactly execute the steps mentioned there.

Thank you,
Steve

Sebas wrote:
> Maybe I'm wrong, but I'd say you've momentarily lost your internet connection. Have you tried a simple ping to a remote server? What's the result of "ip route"?
>
> ----- Mensaje original -----
> De: Steve Kreyer <steve.kreyer at web.de>
>
> Iam new to maemo. I have installed Maemo 3.0 bora, but the installer
> script terminates with the following
> error:
>     Err file: bora/explicit Packages
>       File not found
>     Ign file: bora/explicit Release
>     Err http://repository.maemo.org bora/free Packages
>       Could not resolve 'repository.maemo.org'
>     Err http://repository.maemo.org bora/free Release
>       Could not resolve 'repository.maemo.org'
>     Err http://repository.maemo.org bora/non-free Packages
>       Could not resolve 'repository.maemo.org'
>     Err http://repository.maemo.org bora/non-free Release
>       Could not resolve 'repository.maemo.org'
>     Err http://repository.maemo.org bora/extras Packages
>       Could not resolve 'repository.maemo.org'
>     Err http://repository.maemo.org bora/extras Release
>       Could not resolve 'repository.maemo.org'
>     Err http://repository.maemo.org bora/free Sources
>       Could not resolve 'repository.maemo.org'
>     Err http://repository.maemo.org bora/free Release
>       Could not resolve 'repository.maemo.org'
>     Err http://repository.maemo.org bora/non-free Sources
>       Could not resolve 'repository.maemo.org'
>     Err http://repository.maemo.org bora/non-free Release
>       Could not resolve 'repository.maemo.org'
>     Err http://repository.maemo.org bora/extras Sources
>       Could not resolve 'repository.maemo.org'
>     Err http://repository.maemo.org bora/extras Release
>       Could not resolve 'repository.maemo.org'
>     Failed to fetch
> http://repository.maemo.org/dists/bora/free/binary-armel/Packages.gz 
> Could not resolve '   repository.maemo.org'
>     Failed to fetch
> http://repository.maemo.org/dists/bora/free/binary-armel/Release  Could
> not resolve 'repository.maemo.org'
>     Failed to fetch
> http://repository.maemo.org/dists/bora/non-free/binary-armel/Packages.gz 
> Could not resolve 'repository.maemo.org'
>     Failed to fetch
> http://repository.maemo.org/dists/bora/non-free/binary-armel/Release 
> Could not resolve 'repository.maemo.org'
>     Failed to fetch
> http://repository.maemo.org/dists/bora/extras/binary-armel/Packages.gz 
> Could not resolve 'repository.maemo.org'
>     Failed to fetch
> http://repository.maemo.org/dists/bora/extras/binary-armel/Release 
> Could not resolve 'repository.maemo.org'
>     Failed to fetch
> http://repository.maemo.org/dists/bora/free/source/Sources.gz  Could not
> resolve 'repository.maemo.org'
>     Failed to fetch
> http://repository.maemo.org/dists/bora/free/source/Release  Could not
> resolve 'repository.maemo.org'
>     Failed to fetch
> http://repository.maemo.org/dists/bora/non-free/source/Sources.gz  Could
> not resolve 'repository.maemo.org'
>     Failed to fetch
> http://repository.maemo.org/dists/bora/non-free/source/Release  Could
> not resolve 'repository.maemo.org'
>     Failed to fetch
> http://repository.maemo.org/dists/bora/extras/source/Sources.gz  Could
> not resolve 'repository.maemo.org'
>     Failed to fetch
> http://repository.maemo.org/dists/bora/extras/source/Release  Could not
> resolve 'repository.maemo.org'
>     Failed to fetch
> file:/home/redwing/maemo-sdk-nokia-binaries_3.0/dists/bora/explicit/binary-armel/Packages.gz 
> File not found
>
>
> I first guessed that something with the dns resolution is broken, but
> the config files seems to look ok:
>
>      [sbox-aristoteles: ~] > cat /etc/resolv.conf
>      nameserver 195.50.140.252
>      nameserver 195.50.140.114
>
>      [sbox-aristoteles: ~] > cat /etc/nsswitch.conf | grep -v '#'
>
>
>      passwd:     files
>      shadow:     compat
>      group:      compat
>
>      hosts:      files dns
>
>
>      bootparams: nisplus [NOTFOUND=return] files
>
>      ethers:     files
>      netmasks:   files
>      networks:   files
>      protocols:  db files
>      rpc:        files
>      services:   files
>
>      netgroup:   files
>
>      publickey:  nisplus
>
>      automount:  files
>      aliases:    files nisplus
>
> Also "wget www.google.de" or "wget repository.maemo.org" inside
> scratchbox work like expected.
>
> Can anybody help me try to figure out the problem?
>
> Thanks in advance,
> Steve
> _______________________________________________
> maemo-users mailing list
> maemo-users at maemo.org
> https://maemo.org/mailman/listinfo/maemo-users
>
>   

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.maemo.org/pipermail/maemo-users/attachments/20070212/08a6be7a/attachment.bin 


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Big List of Linux Books]    

  Powered by Linux