maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Troubleshooting (https://talk.maemo.org/forumdisplay.php?f=6)
-   -   Uninstall "hello World GTK" but its still there (https://talk.maemo.org/showthread.php?t=3819)

yankeesfan4988 2006-12-31 17:38

Uninstall "hello World GTK" but its still there
 
Hey guys i for some odd reason i got bored and i downloaded this game that was called "hello world GTK" once i loaded it up and realized it didnt do anything i uninstall it. The 770 said it was successfully uninstall but when i went into the folder it was still there. How in the world do i get rid of it if it said it was already uninstall.

Thanks

SeRi@lDiE 2006-12-31 17:44

Quote:

Originally Posted by yankeesfan4988
Hey guys i for some odd reason i got bored and i downloaded this game that was called "hello world GTK" once i loaded it up and realized it didnt do anything i uninstall it. The 770 said it was successfully uninstall but when i went into the folder it was still there. How in the world do i get rid of it if it said it was already uninstall.

Thanks

Hello World is not a game is a developing sample for maemo programers...
use apt-get remove filename from xterm

hemplacrosse4 2007-01-01 16:31

Ok well thanks for helping me out but one more thing for it to be useful would be how to i access apt-get i know im not a techie guy.

Thanks

miind 2008-01-15 09:54

Re: Uninstall "hello World GTK" but its still there
 
I got the same problem! Im familiar with apt-get and regular debian stuff but im still stuck! the package is broken so after an install the remove is impossible it seems like!?

When doing an apt-get remove hello-world-app I get the following response!

Nokia-N800-50-2:/var/cache/apt/archives# apt-get remove -y --force-yes hello-world-app
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
hello-world-app
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 246kB disk space will be freed.
dpkg: error processing hello-world-app (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
hello-world-app
E: Sub-process /usr/bin/dpkg returned an error code (1)


so I tried to reinstall it as it tells me by doing a regular apt-get install on it and then get



Get:1 http://repostory.maemo.org chinook/free hello-world-app 0.7 [21,2kB]
Fetched 21,2kB in 0s (24,3kB/s)
Selecting previously deselected package hello-world-app.
(Reading database ... 19818 files and directories currently installed.)
Preparing to replace hello-world-app 0.7 (using .../hello-world-app_0.7_armel.deb) ...
Unpacking replacement hello-world-app ...
/var/lib/dpkg/info/hello-world-app.postrm: line 11: syntax error: "(" unexpected
dpkg: warning - old post-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/postrm: line 11: syntax error: "(" unexpected
dpkg: error processing /var/cache/apt/archives/hello-world-app_0.7_armel.deb (--unpack):
subprocess new post-removal script returned error exit status 2
/var/lib/dpkg/tmp.ci/postrm: line 11: syntax error: "(" unexpected
dpkg: error while cleaning up:
subprocess post-removal script returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/hello-world-app_0.7_armel.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

looks like the 0.7 version is very broke! anyone with more apt knowledge got anything to add to this!? Otherwise I will flash the tablet and reinstall all but this evil app again.

sommerfee 2008-04-20 17:45

Re: Uninstall "hello World GTK" but its still there
 
Quote:

Originally Posted by miind (Post 127974)
looks like the 0.7 version is very broke!

Yes, indeed! :mad:

I'm totally new to the debian package stuff, wanted to build up an own installation package today and since the hello-world-app is THE example on how to do it, I was so keen to build & install this package on my N800/OS2008 to see how it looks like.

And I'm completely shocked that the standard example for making debian packages for maemo didn't even uninstall correctly! :eek: :mad:

This is how I was able to fix it:

I changed /var/lib/dpkg/info/hello-world-app.postrm to:

Code:

#!/bin/sh
#Remove the desktop entries from the configuration files

home_data="hello-world-home.desktop"
sb_data="hello-world-sb.desktop"
tn_data="hello-world-tn.desktop"

path="/etc/hildon-desktop"
home_conf="home.conf"
sb_conf="statusbar.conf"
tn_conf="tasknavigator.conf"

sed "/$home_data/d" $path/$home_conf > home_conf.tmp
mv home_conf.tmp $path/$home_conf
sed "/$sb_data/d" $path/$sb_conf > sb_conf.tmp
mv sb_conf.tmp $path/$sb_conf
sed "/$tn_data/d" $path/$tn_conf > tn_conf.tmp
mv tn_conf.tmp $path/$tn_conf

Afterwards I was able to uninstall the package and instead I took the maemopad-2.1 as example for building up my own package...


All times are GMT. The time now is 21:00.

vBulletin® Version 3.8.8