Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
flex
The following packages will be upgraded:
flex
1 upgraded, 0 newly installed, 0 to remove and 178 not upgraded.
5 not fully installed or removed.
Need to get 0B/306kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 63209 files and directories currently installed.)
Preparing to replace flex 2.5.33-4 (using .../flex_2.5.33-5_i386.deb) ...
install-info: No dir file specified; try --help for more information.
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
install-info: No dir file specified; try --help for more information.
dpkg: error processing /var/cache/apt/archives/flex_2.5.33-5_i386.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
install-info: unrecognised option `--description=A fast scanner generator'
Try `install-info --help' for a complete list of options.
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/flex_2.5.33-5_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
flex*
0 upgraded, 0 newly installed, 1 to remove and 268 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 1364kB disk space will be freed.
Do you want to continue? [Y/n] y
dpkg: error processing flex (--purge):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
flex
E: Sub-process /usr/bin/dpkg returned an error code (1)