package install error - subprocess post-removal script returned error exit status 2

Bug #378545 reported by dlebauer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
aptitude (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: aptitude

jaunty

I expect to install updates and new packages using aptitude or apt-get, but this does not happen - I get an error.

ooolatex is broken. dpkg-reconfigure, remove, install do not work, even with -f to force

also, my picasa, google desktop, and virtualbox seem to have disappeared.

here is the code when I try to install virtualbox:

========================

user@home:/etc/apt$ sudo apt-get install virtualbox-2.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  ooolatex
The following NEW packages will be installed:
  virtualbox-2.2
0 upgraded, 1 newly installed, 1 to remove and 28 not upgraded.
1 not fully installed or removed.
Need to get 0B/38.7MB of archives.
After this operation, 77.2MB of additional disk space will be used.
Do you want to continue [Y/n]?
Preconfiguring packages ...
(Reading database ... 304595 files and directories currently installed.)
Removing ooolatex ...
sed: can't read /usr/lib/openoffice/presets/basic/script.xlc: No such file or directory
dpkg: error processing ooolatex (--remove):
 subprocess post-removal script returned error exit status 2
Errors were encountered while processing:
 ooolatex
E: Sub-process /usr/bin/dpkg returned an error code (1)

=============ALSO===========

op:/etc/apt$ sudo apt-get -f remove ooolatex
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  ooolatex
0 upgraded, 0 newly installed, 1 to remove and 28 not upgraded.
1 not fully installed or removed.
After this operation, 184kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 304595 files and directories currently installed.)
Removing ooolatex ...
sed: can't read /usr/lib/openoffice/presets/basic/script.xlc: No such file or directory
dpkg: error processing ooolatex (--remove):
 subprocess post-removal script returned error exit status 2
Errors were encountered while processing:
 ooolatex
E: Sub-process /usr/bin/dpkg returned an error code (1)

dlebauer (dlebauer)
description: updated
Revision history for this message
dlebauer (dlebauer) wrote :

I fixed the problem by removing ooolatex.list and all ooolatex.* from /var/lib/dpkg/info/

/var/lib/dpkg/info$ sudo rm ooolatex.*

I am not sure why this worked but I am happy now

Revision history for this message
Daniel Hartwig (wigs) wrote :

Bug in the ooolatex post/prerm script, can not find such a package in ubuntu.

Changed in aptitude (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.