Public bug reported:
Binary package hint: flex
When I install 'flex' 2.5.35-2ubuntu1 on Intrepid Ibex 8.10 (or 'bison-
doc' by the way), the installation stops with the error message:
E: flex: subprocess post-installation script returned error exit status
1
Nevertheless 'flex' is installed correctly. The detailed installation
protocol reveals, that the error occurs when 'install-info' tries to
append the corresponding info-document to the info tree:
Selecting previously deselected package flex.
(Reading database ... 214614 files and directories currently installed.)
Unpacking flex (from .../flex_2.5.35-2ubuntu1_i386.deb) ...
Processing triggers for man-db ...
Setting up flex (2.5.35-2ubuntu1) ...
install-info: No dir file specified; try --help for more information.
dpkg: error processing flex (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
flex
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up flex (2.5.35-2ubuntu1) ...
install-info: No dir file specified; try --help for more information.
dpkg: error processing flex (--configure):
subprocess post-installation script returned error exit status 1
The reason for this is a wrong parameter set for 'install-info'. If you
have a look at
/var/lib/dpkg/info/flex.postinst
you will find the line:
install-info --quiet --section "Development" "Development" \
--description="A fast scanner generator" /usr/share/info/flex.info
The correct synopsis is:
install-info [option]... [info-file [dir-file]]
But if 'info-file' or 'dir-file' are not specified, you have to define
them with the respective options. So, the correct 'install-info' command
must look like this:
install-info --quiet --section "Development" "Development" \
--description="A fast scanner generator" /usr/share/info/flex.info
/usr/share/info/dir
If you correct this and call:
sudo apt-get upgrade
afterwards, the error will disappear.
** Affects: flex (Ubuntu)
Importance: Undecided
Status: New
--
post-installation script error
https://bugs.launchpad.net/bugs/305505
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs