Reply
Thread Tools
Posts: 187 | Thanked: 162 times | Joined on May 2010 @ Sunny Woollahra
#1
Hi,

I've been trying to update my N900 for a while, to no avail. It isn't my daily phone, thats an N9, so this isn't urgent.

Firstly, last year, I tried to update a program, I don't remember which, which didn't show as an update waiting - although I knew there was because there was a thread here (tmo) saying "new version, update". Suffice to say the update didn't work (& I don't remember the error messages).

So I didn't worry, and my N900 went back in the drawer.

___

I then thought I'd update the os to CSSU

___

This is where the story goes to poo. Firstly - and I think the problem revolves around this, HAM wouldn't open any of the "click this" in the CSSU wiki page... Extras appears to be enabled, however when I click on download, (no applications available) is all HAM shows.

What do I need to do? Thank you in advance.
__________________
I think there should be another word for mondegreen
 
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#2
Please post the result of (in terminal)...
Code:
sudo gainroot
apt-get update
 
Posts: 187 | Thanked: 162 times | Joined on May 2010 @ Sunny Woollahra
#3
~ $ sudo gainroot
Enable RD mode if you want to break your device
~ $ apt-get update
E: Could not open lock file /var/lib/lists/lock - open (3 Permission denied)
E: Unable to lock the list directory
As well as this the connection seems extraordinarily slow. Whether this is related I don't know but suspect it is.

Thanks again
__________________
I think there should be another word for mondegreen
 
Posts: 567 | Thanked: 2,965 times | Joined on Oct 2009
#4
you shouldn't be using apt-get update or apt-get dist-update on the N900 if I remember correctly.
 
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#5
Originally Posted by jonwil View Post
you shouldn't be using apt-get update or apt-get dist-update on the N900 if I remember correctly.
If that were the case then at least half the threads would have to be discarded


Originally Posted by rfa View Post
Enable RD mode if you want to break your device
You got this from an N900? Not something I would expect...

I should have realized, you need a root access to use apt-get and you can get it the easiest by installing rootsh from extras - which will not work for you of course - but even so I would not expect the above response. Although I admit I have never tried it before installing rootsh.

You can get rootsh here. Download the armel.deb file to your device (you can use the PC and copy to MyDocs via USB), then tap on it in File Manager. HAM will start and install it. Then repeat the terminal commands.
 

The Following User Says Thank You to pichlo For This Useful Post:
Posts: 187 | Thanked: 162 times | Joined on May 2010 @ Sunny Woollahra
#6
Connecting to talk.maemo.org isn't happening from my N900 - it connects to "everything else" slowly - and I think this is the root cause of the issues I'm experienceing.

ok, rootsh installed, thank you for the link pichlo.

apt-get update returns
Get:1 https://downloads.maemo.nokia.com ./ Release.gpg [198B]
Ign https://downloads.maemo.nokia.com ./ Translation-en_GB
Get:2 https://downloads.maemo.nokia.com ./ Release.gpg [198B]
Hit http://repository.maemo.org fremantle-1.3 Release.gpg
Ign http://repository.maemo.org fremantle-1.3/free Translation-en_GB
Ign http://repository.maemo.org fremantle-1.3/non-free Translation-en_GB
Ign https://downloads.maemo.nokia.com ./ Translation-en_GB
Hit http://repository.maemo.org fremantle-1.3 Release
Get:3 https://downloads.maemo.nokia.com ./ Releasegpg [198B]
Ign https://downloads.maemo.nokia.com ./ Translation-en_GB
Hit https://downloads.maemo.nokia.com ./ Release
Hit https://downloads.maemo.nokia.com ./ Release
Hit https://downloads.maemo.nokia.com ./ Release
Err https://downloads.maemo.nokia.com ./ Release

Get:4 https://downloads.maemo.nokia.com ./ Release [507B]
Err https://downloads.maemo.nokia.com ./ Release

Get:5 https://downloads.maemo.nokia.com ./ Release [507B]
Get:6 http://repository.maemo.org fremantle-1.3/free Packages [3403kB]
Err https://downloads.maemo.nokia.com ./ Release

Ign https://downloads.maemo.nokia.com ./ Release
Get:7 https://downloads.maemo.nokia.com ./ Release [507B]
Ign https://downloads.maemo.nokia.com ./ Release
Ign https://downloads.maemo.nokia.com ./ Release
Ign https://downloads.maemo.nokia.com ./ Packages/DiffIndex
Ign https://downloads.maemo.nokia.com ./ Packages/DiffIndex
Ign https://downloads.maemo.nokia.com ./ Packages/DiffIndex
Hit https://downloads.maemo.nokia.com ./ Packages
Hit https://downloads.maemo.nokia.com ./ Packages
Hit https://downloads.maemo.nokia.com ./ Packages
Get:8 http://repository.maemo.org fremantle-1.3/free Packages [3403kB]
Ign http://repository.maemo.org fremantle-1.3/free Packages
Ign http://repository.maemo.org fremantle-1.3/non-free Packages
Err http://repository.maemo.org fremantle-1.3/free Packages
Unable to connect to repository.maemo.org http:
Err http://repository.maemo.org fremantle-1.3/non-free Packages
Unable to connect to repository.maemo.org http:
Fetched 2115B in 13min45s(3B/s)
W: GPG error: https://downloads.maemo.nokia.com ./ Release: The following signatures were invalid: KEYEXPIRED 1349249546 KEYEXPIRED 1349249546 KEYEXPIRED 1349249546
W: GPG error: https://downloads.maemo.nokia.com ./ Release: The following signatures were invalid: KEYEXPIRED 1349249546 KEYEXPIRED 1349249546 KEYEXPIRED 1349249546
W: GPG error: https://downloads.maemo.nokia.com ./ Release: The following signatures were invalid: KEYEXPIRED 1349249546 KEYEXPIRED 1349249546 KEYEXPIRED 1349249546
W: Failed to fetch http://repository.maemo.org/extras/d...armel/Packages Unable to connect to repository.maemo.org http:

E: Some index files failed to download, they have been ignored, or old ones used instead.

As my N900 isn't connecting to tmo I'm typing all this stuff in, so thanks for your patience
__________________
I think there should be another word for mondegreen
 
Posts: 187 | Thanked: 162 times | Joined on May 2010 @ Sunny Woollahra
#7


is the error HAM returns
__________________
I think there should be another word for mondegreen
 
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#8
Originally Posted by rfa View Post
Connecting to talk.maemo.org isn't happening from my N900 - it connects to "everything else" slowly - and I think this is the root cause of the issues I'm experienceing.
Yes, that is indeed the root cause of your problem. And the root cause of your root cause may be one or a combination of -
  • Your phone blocking the access (please paste your /etc/hosts)
  • A certificate problem (sorry, don't know how to debug those off the top of my head, will have to look it up)
  • Something along the way causing connection issue (have you tried different connections? 3G, WiFi, different networks...?)

As my N900 isn't connecting to tmo I'm typing all this stuff in, so thanks for your patience
Gasp!
You are not supposed to do that! There are MUCH better ways. Connect to your phone from your PC via SSH and copy'n'paste from the screen, redirect the output to a text file and paste the file...
 
Posts: 187 | Thanked: 162 times | Joined on May 2010 @ Sunny Woollahra
#9
Originally Posted by pichlo View Post
Yes, that is indeed the root cause of your problem. And the root cause of your root cause may be one or a combination of -
  • Your phone blocking the access (please paste your /etc/hosts)
  • A certificate problem (sorry, don't know how to debug those off the top of my head, will have to look it up)
  • Something along the way causing connection issue (have you tried different connections? 3G, WiFi, different networks...?)



Gasp!
You are not supposed to do that! There are MUCH better ways. Connect to your phone from your PC via SSH and copy'n'paste from the screen, redirect the output to a text file and paste the file...
Ok For all of my questions feel free to put links.

Where do I find / what are /etc/hosts?

I'm using home wifi (my sim card is in my N9) - I do strongly suspect the router may be involved, as I frequently need to reboot it (the router) for my N9 to be able to access the internet...

And what is SSH?


Thanks again
__________________
I think there should be another word for mondegreen
 
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#10
OK, so first things first. I forgot to mention that your copying the output was not entirely pointless, it proved that you are using the correct repositories and are indeed experiencing connection issues.

/ is your root directory ("folder").
/etc/hosts is a file. You can dump it from the terminal by typing...
Code:
cat /etc/hosts
Or, to be able to access it from your PC...
Code:
cp /etc/hosts /home/user/MyDocs
SSH is a communication protocol for logging into a Linux machine remotely. It exposes the command-line interface ("shell"). Indeed, SSH stands for "secure shell" since it uses the public key infrastructure.. You need another Linux machine to use SSH, or something like PuTTY on Windows. It might be a bit involved if this is completely new to you but it is worth having a go and learning a new skill.

As I mentioned, another way of copying the results of a terminal command is redirecting the output into a file. This is done the same way in Linux as in MS-DOS (actually, dating back to CP/M times). The generic format is...
Code:
command > file.txt
Doing that will redirect the output from the screen to file.txt. You will not see anything on the screen until the command execution has finished and it returns back to the prompt, all the output will be in the file. You can then grab the file in USB mass storage mode and copy it here.
To see the file in mass storage mode you need to create it somewhere under MyDocs. So, for example, run...
Code:
sudo gainroot
apt-get update >/home/user/MyDocs/apt.txt
Once done, attach the phone to the USB in mass storage mode (make sure it was not attached while you ran the above command!) and you should see a file apt.txt in your phone's root directory.

Regarding your connection/router issues, could you try connecting to TMO and/or updating somewhere else? Take your phone to a cafe with free WiFi and try there.
 
Reply


 
Forum Jump


All times are GMT. The time now is 04:25.