View Single 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: