Notices


Reply
Thread Tools
Posts: 20 | Thanked: 3 times | Joined on Dec 2006
#1
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
 

The Following User Says Thank You to yankeesfan4988 For This Useful Post:
SeRi@lDiE's Avatar
Posts: 919 | Thanked: 37 times | Joined on Aug 2006 @ /dev/null
#2
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

Last edited by SeRi@lDiE; 2007-01-02 at 03:13.
 

The Following User Says Thank You to SeRi@lDiE For This Useful Post:
Posts: 66 | Thanked: 2 times | Joined on Dec 2006
#3
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
 

The Following User Says Thank You to hemplacrosse4 For This Useful Post:
Posts: 143 | Thanked: 13 times | Joined on Aug 2007
#4
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.
 

The Following User Says Thank You to miind For This Useful Post:
Posts: 21 | Thanked: 5 times | Joined on Feb 2008 @ Germany
#5
Originally Posted by miind View Post
looks like the 0.7 version is very broke!
Yes, indeed!

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!

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...

Last edited by sommerfee; 2008-04-20 at 17:48.
 

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

Tags
hello world, maemo 4

Thread Tools

 
Forum Jump


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