Comment 3 for bug 139412

Revision history for this message
Matthew L. Dailey (matthew-l-dailey) wrote : Re: package a2ps 1:4.13c~rc5-1 failed to install/upgrade: subprocess post-installation script returned error exit status 2

I can confirm this bug on hardy as of today:
# apt-get install a2ps emacsen-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  groff gv html2ps tetex-bin t1-cyrillic
Recommended packages:
  wdiff
The following NEW packages will be installed:
  a2ps emacsen-common
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/703kB of archives.
After this operation, 3277kB of additional disk space will be used.
Selecting previously deselected package a2ps.
(Reading database ... 193470 files and directories currently installed.)
Unpacking a2ps (from .../a2ps_1%3a4.13c~rc5-1_i386.deb) ...
Selecting previously deselected package emacsen-common.
Unpacking emacsen-common (from .../emacsen-common_1.4.17_all.deb) ...
Setting up a2ps (1:4.13c~rc5-1) ...
ERROR: emacsen-common being used before being configured.
ERROR: This is likely a bug in the a2ps package, which needs to
ERROR: add one of the appropriate dependencies.
ERROR: See /usr/share/doc/emacsen-common/debian-emacs-policy.gz
ERROR: for details.
dpkg: error processing a2ps (--configure):
 subprocess post-installation script returned error exit status 2
Setting up emacsen-common (1.4.17) ...
emacsen-common: Handling install of emacsen flavor emacs

Errors were encountered while processing:
 a2ps
E: Sub-process /usr/bin/dpkg returned an error code (1)

However, this has been fixed upstream in version 4.14. Using the package from http://ftp.us.debian.org/debian/pool/main/a/a2ps/a2ps_4.14-1_i386.deb, it works properly:
# apt-get install a2ps emacsen-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  groff gv html2ps t1-cyrillic
Recommended packages:
  wdiff
The following NEW packages will be installed:
  a2ps emacsen-common
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/944kB of archives.
After this operation, 4493kB of additional disk space will be used.
Selecting previously deselected package a2ps.
(Reading database ... 193470 files and directories currently installed.)
Unpacking a2ps (from .../a2ps_1%3a4.14-1_i386.deb) ...
Selecting previously deselected package emacsen-common.
Unpacking emacsen-common (from .../emacsen-common_1.4.17_all.deb) ...
Setting up a2ps (1:4.14-1) ...

Setting up emacsen-common (1.4.17) ...
emacsen-common: Handling install of emacsen flavor emacs

Any chance we can get the upstream package accepted into Ubuntu universe?