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)

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 21:56.

vBulletin® Version 3.8.8