ratt-ru / meqtrees

A library for implementing radio astronomical Measurement Equations
http://meqtrees.net
10 stars 2 forks source link

meqtrees package pre-/postinstall script broken #807

Closed gijzelaerr closed 10 years ago

gijzelaerr commented 10 years ago
at 2011-08-23 14:05:42 Oleg Smirnov reported:

meqtrees package pre-/postinstall script broken

gijzelaerr commented 10 years ago

Original comment thread migrated from bugzilla

at 2011-08-23 14:05:42 Oleg Smirnov replied:

I'm getting beahviour similar to Ian's complaint, but I can't apt-get remove meqtrees:

Removing meqtrees ... rm: cannot remove `/usr/lib/meqtrees/*.pyc': No such file or directory dpkg: error processing meqtrees (--remove): subprocess installed post-removal script returned error exit status 1

The workaround was to create a file called tmp.pyc in /usr/lib/meqtrees, that seems to have made the script happy.

(I see Ian is getting a similar error when trying to install it, so the same workaround will probably work for him.)

I suppose the solution is to have the pre-/postinstall script NOT fail when there's nothing under /usr/lib/meqtrees -- if there's nothing to remove, why fail?

at 2011-08-23 14:41:44 Chris Williams replied:

This should of been fixed with last weeks package (svn8345). Can you confirm you are still seeing this with this package?

at 2011-08-23 14:48:09 Oleg Smirnov replied:

Indeed, not anymore. I guess it was stuck because it was completely unable to remove the previous package version. Ian: looks like you need to apply the workaround I suggested so that it can wipe out the old broken package once and for all.

at 2011-08-23 18:37:19 Ian Heywood replied:

OK I have managed to remove the old version and install the new one using the fake.pyc fix.

I'll take it for a test drive over the next few days.