Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    List of Repository Fixes

    Reply
    horus | # 1 | 2009-11-08, 22:51 | Report

    This is a List of Fixes that can be tried when having problems downloading from repository.maemo.org. This is a situation often experienced when using "apt-get update" to download the nokia-binaries package.

    In my own diggings I found several different methods for trying to correct these errors. These methods were found through digging the forums as well as forum.nokia.com and serveral other sites.

    I did not write these and there is little to no official documentation supporting them. Alas these are the solutions that I found that worked for some people. They might work for you, they might not. Good luck.

    If I have made any errors here, PLEASE correct me.


    1. Correcting your /etc/apt/sources.list

    This must be done Inside of Scratchbox. We are checking here that your token string is added correctly to each Target (A target is FREMANTLE_ARMEL and FREMANTLE_X86).

    Complete the following.
    Code:
    /scratchbox/login
    sb-conf se FREMANTLE_ARMEL
    nano /etc/apt/sources.list

    This will bring up your sources.list.
    Ensure that your token string is on the last line in the sources.list

    To navigate in Nano use your Arrow Keys to move up and down lines. Use your backspace / delete keys to remove certain data. If you wish to exit and save Press Ctrl + X and hit Yes, and Enter.

    Rules for this:
    - Make sure there are no Blank Lines between the other strings.
    - Ensure that there is a single Blank Line at the end of the text. I read that apt-get is "picky" over this.

    Now, redo this for your FREMANTLE_X86 target. Such that;
    Code:
    /scratchbox/login
    sb-conf se FREMANTLE_X86
    nano /etc/apt/sources.list
    Hopefully that was your correction. If not, lets dig further!


    2. Fixing your /etc/resolv.conf

    This one is an easy fix for most. We are changing your resolv.conf so that it matches the ones on your computer.

    Make sure you are Logged Out of Scratchbox or haven't started it yet.

    Type into your terminal ~
    Code:
    sudo cp /etc/resolv.conf /scratchbox/etc/resolv.conf
    This will prompt you for your password. Enter it!

    Now try updating again. If that didn't work lets delve deeper into your resolv.conf dilemma.

    This part we are Checking to make sure your resolv.conf Actually Matches!

    Outside of scratchbox, do the follow
    Code:
    nano /etc/resolv.conf
    Take note of the following details whether you save them to a notepad or write them down. Then exit (Ctrl + X).

    Now, do the follow;
    Code:
    /scratchbox/login
    sb-conf se FREMANTLE_ARMEL
    nano /etc/resolv.conf
    Check that they match your other settings.

    Do the same for X86.
    Code:
    /scratchbox/login
    sb-conf se FREMANTLE_X86
    nano /etc/resolv.conf
    If they are correct and your updating still doesn't work, the problem might lie elsewhere. Lets continue!


    3. Fixing nsswitch.conf

    This part we are fixing your nsswitch.conf to make sure it matches the correct path.

    Do this for Armel Target.
    Code:
    /scratchbox/login
    sb-conf se FREMANTLE_Armel
    nano /etc/nsswitch.conf
    Scroll down and you will see your Hosts line. Make sure this is set as
    Code:
    hosts:      files dns
    Do this for your X86 Target.
    Code:
    /scratchbox/login
    sb-conf se FREMANTLE_Armel
    nano /etc/nsswitch.conf
    Scroll down and you will see your Hosts line. Make sure this is set as
    Code:
    hosts:      files dns
    If not change them. Try updating again.


    4. 99Proxy Fix, Untried.

    I have not tried this fix as I believe it is only necessary if you are behind a proxy and you setup your system that way. Nevertheless this is a fix noted by Cocayden.

    In File Browser first navigate to
    /scratchbox/users/<user>/targets/<target>/etc/apt/apt.conf.d

    Note that;
    <user> is the username specified during your scratchbox installation.
    <target> will be either FREMANTLE_ARMEL or FREMANTLE_X86.

    In Ubuntu this is done through pressing System at the top then Computer. Click Filesystem > Scratchbox > and so forth.

    Once inside the apt.conf.d Folder open the apparent file named as 99proxy and delete everything inside. If this is unaccessible via file browser use your terminal to open the file. For ubuntu this would be gksudo gedit, for debian I believe it's otherwise.

    Save and try updating again.



    I hope some of these helped, if you have any more solutions PLEASE add them or if I have made ANY mistakes PLEASE correct me.

    Thanks.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by horus; 2009-11-09 at 22:20.
    The Following 2 Users Say Thank You to horus For This Useful Post:
    khg, litus

     
    Andre Klapper | # 2 | 2009-11-09, 14:13 | Report

    It would be helpful to explain when this stuff is needed.
    Also, fixing the typo in the summary line (repistory) and explaining a bit more makes it easier to find this when searching in the forum.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    horus | # 3 | 2009-11-09, 22:21 | Report

    Thanks for the correction Andre! I added a bit of a summary to the top, I'll fix it up properly when I have more time tomorrow.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    germaike | # 4 | 2009-11-19, 23:55 | Report

    Thx horus this is a good explanation what could go wrong with the scratchbox dns. I had the same problem and the proxy fix did it for me!

    i had downloaded the vmware image with everything installed. It appears they didn't remove these lines

    grtz

    Edit | Forward | Quote | Quick Reply | Thanks

     
    lma | # 5 | 2009-11-20, 01:06 | Report

    Originally Posted by horus View Post
    if you have any more solutions PLEASE add them
    Fix curl and a few unimportant things that use it (like git) to work with https URLs:

    Code:
    mkdir /usr/share/curl
    ln -s /scratchbox/devkits/git/share/curl/curl-ca-bundle.crt /usr/share/curl/

    Edit | Forward | Quote | Quick Reply | Thanks

     
    danielwilms | # 6 | 2009-11-20, 09:28 | Report

    Hi,

    there is as well a developer FAQ. It would be nice if you could extend it, with the stuff, which is not already mentioned there. Would be nice to collect this kind of information in a central place.

    Cheers Daniel

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to danielwilms For This Useful Post:
    Andre Klapper, lma

     
    horus | # 7 | 2009-12-08, 20:09 | Report

    Finally finished uni, have the time now. I shall do Daniel.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to horus For This Useful Post:
    danielwilms

     
vBulletin® Version 3.8.8
Normal Logout