maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   n900 is dead-failed installing app and cant reboot anymore (https://talk.maemo.org/showthread.php?t=65900)

delbana 2010-11-19 19:22

n900 is dead-failed installing app and cant reboot anymore
 
hi folks
ive got a prob with my nokia n900-i was installing one application <nokia gathering or something like that> everything was fine till moment when the installation got stuck.than I turn off the phone hoping to reboot it and forget the problem.but when I ahave done so the nokia screen came out and following message:
installing software update,please do not interrupt 4 %....and nothing happen onwards.I can use phone....someone know any idea how to fix it or my phone is dead forever?

Ele-Mental 2010-11-19 19:41

Re: n900 is dead-failed installing app and cant reboot anymore
 
Quote:

Originally Posted by delbana (Post 878220)
hi folks
ive got a prob with my nokia n900-i was installing one application <nokia gathering or something like that> everything was fine till moment when the installation got stuck.than I turn off the phone hoping to reboot it and forget the problem.but when I ahave done so the nokia screen came out and following message:
installing software update,please do not interrupt 4 %....and nothing happen onwards.I can use phone....someone know any idea how to fix it or my phone is dead forever?

Do you want power user advice, or simple non-root or commands advice?

mornage 2010-11-19 19:45

Re: n900 is dead-failed installing app and cant reboot anymore
 
http://wiki.maemo.org/Updating_the_tablet_firmware

Have a look at the updating & flashing section.

ossipena 2010-11-19 19:51

Re: n900 is dead-failed installing app and cant reboot anymore
 
a bit late for this, but never ever interrupt application installation process..

Ele-Mental 2010-11-19 19:58

Re: n900 is dead-failed installing app and cant reboot anymore
 
Quote:

Originally Posted by ossipena (Post 878257)
a bit late for this, but never ever interrupt application installation process..

The installation sometimes hangs.

gabby131 2010-11-19 20:06

Re: n900 is dead-failed installing app and cant reboot anymore
 
Quote:

Originally Posted by Ele-Mental (Post 878266)
The installation sometimes hangs.

yup! it always hangs on my case when a jumbo app is being installed. it freezes like its always winter. at first time, the battery went out and the n900 turned of resulting for errors that a reflash was suggested for me to do.

most of the time when apps are being installed (specially with appman) there is a slight freeze which i believe is normal.

sometimes the "wait and see" option is needed, even if it seems like forever.

Ele-Mental 2010-11-19 20:12

Re: n900 is dead-failed installing app and cant reboot anymore
 
Quote:

Originally Posted by gabby131 (Post 878271)
yup! it always hangs on my case when a jumbo app is being installed. it freezes like its always winter. at first time, the battery went out and the n900 turned of resulting for errors that a reflash was suggested for me to do.

most of the time when apps are being installed (specially with appman) there is a slight freeze which i believe is normal.

sometimes the "wait and see" option is needed, even if it seems like forever.

That is the safest option. But installing something like Nitdroid where you know so many things can go wrong, i always flip a coin after every hour. Heads keep installing, tails restart and try again

delbana 2010-11-20 04:46

Re: n900 is dead-failed installing app and cant reboot anymore
 
ok thanks but still I dont know what I have to do on my own or the only option I have is to go to the service?

fasza2 2010-11-20 05:14

Re: n900 is dead-failed installing app and cant reboot anymore
 
Quote:

Originally Posted by delbana (Post 878516)
ok thanks but still I dont know what I have to do on my own or the only option I have is to go to the service?

Nah, just follow the instructions here:http://wiki.maemo.org/Updating_the_tablet_firmware

It shouldn't take more then half an hour and it's not that hard to do as it first seems. If you can't get into flashing mode, don't worry it will be done anyway.

ossipena 2010-11-20 07:42

Re: n900 is dead-failed installing app and cant reboot anymore
 
Quote:

Originally Posted by Ele-Mental (Post 878266)
The installation sometimes hangs.

then the package is somewhat broken. but interrupting installation with pwr key could mess system files pretty badly (power off while writing modifications to bootup scripts for example)

RobbieThe1st 2010-11-20 07:53

Re: n900 is dead-failed installing app and cant reboot anymore
 
I suspect you may end up needing to reflash. Fortunately, it's not too big of a problem - I've got a link to a video in my signature on a foolproof way of doing it.

uhbhatti88 2010-12-06 07:55

Re: n900 is dead-failed installing app and cant reboot anymore
 
hey. i was installing this very app <Nokia Data Gathering> and the same stuff as described by OP happened to me. Thanks a lot to the guys who posted the helpful notes!

cd0 2010-12-25 18:24

Re: n900 is dead-failed installing app and cant reboot anymore
 
Yes, Nokia Data Gathering did it to me too. The MySQL install script was taking more than 20 minutes and I had enough. I didn't realize it would jam up the boot process if I turned it off. I am irritated that it does since if this were a debian computer, shutting it off during an application installation would not cause it to fail to boot. Of course, if you were installing a kernel or bootloader it might but NOT an application.

I guess I have no choice now, it's been sitting at 3% for quite some time. Anyone know what it is actually doing? Is it trying to complete the aborted installation? Is there no way of telling it to skip it?

cd0 2010-12-25 18:44

Re: n900 is dead-failed installing app and cant reboot anymore
 
VERY IMPORTANT NEWS EVERYONE
YOU DO NOT NEED TO REFLASH

I just hit CTRL+C a couple times and it will kill that script (the one which prints "Installing updates do not interrupt" to the console) and allow the phone to continue booting!! (I also hit 'u' a couple times because thats the bootloader key but I doubt that did anything.)

You don't need a new battery or a flasher or anything, just Ctrl-C.

Once you've rebooted you will need to repair the packaging system state with dpkg from the command line (I haven't done that yet but it should be easy, I've done it several times on a full debian box, and once on the phone.)

cd0 2010-12-25 19:04

Re: n900 is dead-failed installing app and cant reboot anymore
 
(If you are already familiar with debian package administration this post will not be of much use to you.)

You will need to run from the Terminal app:
Code:

sudo gainroot
If you don't have gainroot installed then you are probably in trouble.
Then:
Code:

dpkg --reconfigure -a
This told me that "ndg" is in an inconsistent state and that I must continue installing it in order to remove it.
So run:
Code:

apt-get install ndg
Answer all the inane mysql prompts, it doesn't matter what answers you give we are just going to remove it in a moment:
Code:

apt-get purge ndg mysql-server
There are probably several other dependencies that should be removed but mysql will likely slow down your phone if it is not removed.

ConsultPlus 2010-12-29 09:46

[USE * CONTROL -C * ] Re: n900 is dead-failed installing app and cant reboot anymore
 
Quote:

Originally Posted by cd0 (Post 904165)
VERY IMPORTANT NEWS EVERYONE
YOU DO NOT NEED TO REFLASH

I just hit CTRL+C a couple times and it will kill that script (the one which prints "Installing updates do not interrupt" to the console) and allow the phone to continue booting!! (I also hit 'u' a couple times because thats the bootloader key but I doubt that did anything.)

You don't need a new battery or a flasher or anything, just Ctrl-C.

Once you've rebooted you will need to repair the packaging system state with dpkg from the command line (I haven't done that yet but it should be easy, I've done it several times on a full debian box, and once on the phone.)

:):):):):):):):)

Thanks a LOT !!!

You really made my day - had everyhting in place again for a reflash - untill I saw you message !

It's up again now !! That saved me a lot of hassle & stress.

:):):):):):):):)

The cause probably is Nokia Data Gathering

:mad::mad:


Thanks again !

ConsultPlus 2010-12-29 09:51

Re: n900 is dead-failed installing app and cant reboot anymore
 
Quote:

Originally Posted by cd0 (Post 904171)
Code:

dpkg --reconfigure -a

I get as response:

Code:

dpkg: unknown option --reconfigure
Any ideas what to do next?

michaaa62 2010-12-29 11:24

Re: n900 is dead-failed installing app and cant reboot anymore
 
Try
Code:

dpkg --configure -a

ConsultPlus 2010-12-29 11:30

Re: n900 is dead-failed installing app and cant reboot anymore
 
Thanks for you reply.

I did issue that command.

And followed the instructions to (re)install & then uninstall/remove NDG.

But I get stuck again ;-)

See:

Quote:

/home/user # apt-get install ndg
Reading package lists... 0%
Reading package lists... Done
Building dependency tree
Reading state information... Done
ndg is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up ndg (2.0.1-5) ...
Downloading jboss-4.2.2.GA.zip... This can take a long time depending on your internet connection. cp: cannot stat 'jboss-4.2.2.GA.zip': No such file or directory
Ack! look at the
/tmp/12316.log
dpkg: error processing ndg (--configure):
subprocess post-installation script returned error exit status 1
wget: unrecognized option `--trust-server-names'
Gebruik: wget [OPTIE]... [URL]...

Probeer 'wget --help' voor meer opties.
Errors were encountered while processing:
ndg
E: Sub-process /usr/bin/dpkg returned an error code (1)
/home/user #

michaaa62 2010-12-29 12:09

Re: n900 is dead-failed installing app and cant reboot anymore
 
Try to clear the package cache first
Code:

apt-get clean
Is wget installed at all?
Code:

apt-cache policy wget
Then try to reinstall
Code:

apt-get install --reinstall ndg
At last try to get rid
Code:

apt-get remove --purge ndg mysql-server-5.0

ConsultPlus 2010-12-29 13:26

Re: n900 is dead-failed installing app and cant reboot anymore
 
Quote:

Originally Posted by michaaa62 (Post 906652)
Is wget installed at all?[code]apt-cache policy wget

I get this

Quote:

/home/user # apt-cache policy wget
wget:
* Installed: 1.10.2-2osso3
* Candidate: 1.10.2-2osso3
* Version table:
*** 1.10.2-2osso3 0
* * * * * * * 500 http://repository.maemo.org fremantle-1.3/free Packages
* * * * * * * 500 http://repository.maemo.org fremantle/free Packages
* * * * * * * 500 http://repository.maemo.org fremantle/free Packages
* * * * * * * 500 http://repository.maemo.org fremantle/free Packages
* * * * * * * 100 /var/lib/dpkg/status
/home/user #
It looks like it is installed.

Then over to the next command:

Quote:

/home/user # apt-get install --reinstall ndg
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up ndg (2.0.1-5) ...

Downloading jboss-4.2.2.GA.zip... This can take a long time depending on your internet connection. cp: cannot stat 'jboss-4.2.2.GA.zip': No such file or directory

Ack! look at the
/tmp/12580.log
dpkg: error processing ndg (--configure):
subprocess post-installation script returned error exit status 1
wget: unrecognized option `--trust-server-names'
Gebruik: wget [OPTIE]... [URL]...

Probeer 'wget --help' voor meer opties.
Errors were encountered while processing:
ndg
W: Duplicate sources.list entry http://repository.maemo.org fremantle-1.3/free Packages (/var/lib/apt/lists/repository.maemo.org_extras_dists_fremantle-1.3_free_binary-armel_Packages)
W: Duplicate sources.list entry http://repository.maemo.org fremantle-1.3/non-free Packages (/var/lib/apt/lists/repository.maemo.org_extras_dists_fremantle-1.3_non-free_binary-armel_Packages)
W: You may want to run apt-get update to correct these problems
E: Sub-process /usr/bin/dpkg returned an error code (1)
/home/user #
Hmmm .. still this wget error

Quote:

wget: unrecognized option `--trust-server-names'

So what now? :confused:


(thanks! for your help sofar)

michaaa62 2010-12-29 14:06

Re: n900 is dead-failed installing app and cant reboot anymore
 
wget for maemo does not have the option --trust-server-names, while it is a possible option for the i386 architecture, so the is a bug in the postinst script of the package.
Did you ever check the temporary log in /tmp?

To apply some force to get rid try
Code:

dpkg -r --force-remove-reinstreq ndg

ConsultPlus 2010-12-29 15:58

Re: n900 is dead-failed installing app and cant reboot anymore
 
Quote:

Originally Posted by michaaa62 (Post 906717)
wget for maemo does not have the option --trust-server-names, while it is a possible option for the i386 architecture, so the is a bug in the postinst script of the package.
Did you ever check the temporary log in /tmp?

To apply some force to get rid try
Code:

dpkg -r --force-remove-reinstreq ndg

Never checked that log - still a bit of a newbie in Linux ;-)

I did what you suggested, here is the output:

Quote:

/home/user # dpkg -r --force-remove-reinstreq ndg
(Reading database ... 65650 files and directories currently installed.)
Removing ndg ...
Removing ndg user...Ok
Remove ndg group...Ok
Done
groupdel: cannot remove user's primary group.
/home/user #
Is this OK now (cleaned) ?

michaaa62 2010-12-29 16:26

Re: n900 is dead-failed installing app and cant reboot anymore
 
Should be. Try to check with
Code:

apt-cache policy ndg
Still to do: Removed the group for ndg users. Could be
Code:

delgroup ndg
And
Code:

apt-get autoremove
should remove the remainders of the dependencies like mysql-server

ConsultPlus 2010-12-29 18:12

Re: n900 is dead-failed installing app and cant reboot anymore
 
Done !

Quote:

/home/user # apt-cache policy ndg
ndg:
Installed: (none)
Candidate: 2.0.1-5
Version table:
2.0.1-5 0
500 http://repository.maemo.org fremantle/free Packages
100 /var/lib/dpkg/status
2.0.1-4 0
500 http://repository.maemo.org fremantle/free Packages
2.0.1-3 0
500 http://repository.maemo.org fremantle/free Packages
2.0.1-2 0
500 http://repository.maemo.org fremantle/free Packages
2.0.1-1 0
500 http://repository.maemo.org fremantle/free Packages

W: Duplicate sources.list entry http://repository.maemo.org fremantle-1.3/free Packages (/var/lib/apt/lists/repository.maemo.org_extras_dists_fremantle-1.3_free_binary-armel_Packages)
W: Duplicate sources.list entry http://repository.maemo.org fremantle-1.3/non-free Packages (/var/lib/apt/lists/repository.maemo.org_extras_dists_fremantle-1.3_non-free_binary-armel_Packages)
Duplicate sources.list?

And

Quote:

/home/user # delgroup ndg
Removing group `ndg' ...
Klaar.
Tha't OK.

Quote:

/home/user # apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
/home/user #
1 not upgraded ..

But it looks like it's clean now.

michaaa62 2010-12-29 20:46

Re: n900 is dead-failed installing app and cant reboot anymore
 
For the duplicate sources.list entry try to delete the culprits through Hildon Application Manager. Some of these install buttons do echo the repository line into the repo file regardless of earlier entries.

ConsultPlus 2010-12-30 10:03

Re: n900 is dead-failed installing app and cant reboot anymore
 
Quote:

Originally Posted by michaaa62 (Post 906960)
For the duplicate sources.list entry try to delete the culprits through Hildon Application Manager. Some of these install buttons do echo the repository line into the repo file regardless of earlier entries.

I am sorry, but I do not understand that.

How do I identify the 'culprits' ?

michaaa62 2010-12-30 11:03

Re: n900 is dead-failed installing app and cant reboot anymore
 
Start Application Manager, Open catalogs, scroll down the list and identify the duplicate entry for the extras repo, checkif it is really the culprit by disabling it, later when you will have checked from the command line with apt-get update, delete it.


All times are GMT. The time now is 22:01.

vBulletin® Version 3.8.8