View Single Post
horus's Avatar
Posts: 190 | Thanked: 101 times | Joined on Oct 2009
#1
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.

Last edited by horus; 2009-11-09 at 22:20.
 

The Following 2 Users Say Thank You to horus For This Useful Post: