Texlive2008 install-info conflicts with system's version of install-info

Bug #295542 reported by mehor
6
Affects Status Importance Assigned to Milestone
texinfo (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: ocrad

Like gv and gnupg2, ocrad package failed to install properly, returning post-installation script error.

Ubuntu 8.10, 64-bit, ocrad version 0.17-3 from repos.

== DESCRIPTION ==
install-info from TexLive2008 conflicts with install-info (karmic and higher)

== VERSION ==
# apt-cache policy install-info
install-info:
  Installed: 4.13a.dfsg.1-4ubuntu1
  Candidate: 4.13a.dfsg.1-4ubuntu1
  Version table:
 *** 4.13a.dfsg.1-4ubuntu1 0
        500 ftp://ftp.free.fr lucid/main Packages
        100 /var/lib/dpkg/status

Version provided by TexLive 2008
# install-info --version
install-info (GNU texinfo) 4.12

== HOW TO REPRODUCE ==
Install install-info from TexLive2008 (can be downloaded at ftp://tug.org/texlive/historic/2008/tlnet/archive/texinfo.i386-linux.tar.lzma)
install it in the root's path (ex /usr/local/bin )
The installation of ocrad fails with the following error:

install-info: No dir file specified; try --help for more information.
dpkg: error processing ocrad (--configure):
 subprocess installed post-installation script returned error exit status 1

== DETAILED STEPS ==
1. Installation with system's version

root@karmic-vm:~# which install-info
/usr/sbin/install-info
root@karmic-vm:~# apt-get install ocrad
[...]
The following NEW packages will be installed:
  ocrad
0 upgraded, 1 newly installed, 0 to remove and 26 not upgraded.
Need to get 0B/145kB of archives.
After this operation, 369kB of additional disk space will be used.
[...]
Unpacking ocrad (from .../archives/ocrad_0.17-4_i386.deb) ...
Processing triggers for install-info ...
Processing triggers for man-db ...
Setting up ocrad (0.17-4) ...
Ignoring install-info called from maintainer script
The package ocrad should be rebuild with new debhelper to get trigger support
root@karmic-vm: ~
root@karmic-vm:~# dpkg --purge ocrad
[...]
Removing ocrad ...
Ignoring install-info called from maintainer script
The package ocrad should be rebuild with new debhelper to get trigger support
Processing triggers for man-db ...
Processing triggers for install-info ...
root@karmic-vm: ~

2. Installation with TexLive2008's version

root@karmic-vm:~# chmod +x /usr/local/bin/install-info
root@karmic-vm: ~
root@karmic-vm:~# which install-info
/usr/local/bin/install-info
root@karmic-vm: ~
root@karmic-vm:~# apt-get install ocrad
[...]
The following NEW packages will be installed:
  ocrad
0 upgraded, 1 newly installed, 0 to remove and 26 not upgraded.
Need to get 0B/145kB of archives.
After this operation, 369kB of additional disk space will be used.
[...]
Unpacking ocrad (from .../archives/ocrad_0.17-4_i386.deb) ...
Processing triggers for install-info ...
Processing triggers for man-db ...
Setting up ocrad (0.17-4) ...
install-info: No dir file specified; try --help for more information.
dpkg: error processing ocrad (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 ocrad
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@karmic-vm: ~
root@karmic-vm:~# exit

== WORKAROUND ==
Remove TexLive2008 install-info from the root's path.

ProblemType: Package
Architecture: amd64
Dependencies:
 libgcc1 1:4.3.2-1ubuntu11
 gcc-4.3-base 4.3.2-1ubuntu11
 libstdc++6 4.3.2-1ubuntu11
 findutils 4.4.0-2ubuntu3
 libc6 2.8~20080505-0ubuntu7
DistroRelease: Ubuntu 8.10
ErrorMessage: subprocess post-installation script returned error exit status 1
NonfreeKernelModules: fglrx
Package: ocrad 0.17-3
SourcePackage: ocrad
Title: package ocrad 0.17-3 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Uname: Linux 2.6.27-7-generic x86_64

Revision history for this message
mehor (mehor) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Can you try with latest Ubuntu release? Thanks in advance.

Changed in ocrad (Ubuntu):
status: New → Incomplete
Revision history for this message
mehor (mehor) wrote :

Actually, it is. I still receive the same error on Ubuntu 9.10, 64bit, ocrad 0.17.4. I had to add "exit 0" to postinstallation script (/var/lib/dpkg/info) to prevent error to show up every time I install or remove anything. But this is not a real solution, just temporary I hope.

Revision history for this message
mehor (mehor) wrote :

Just to add:

1. When installing ocrad 0.17-4 from Ubuntu repos, i get above mentioned error. To prevent system always complaining when installing new apps, I added a line containing "exit 0" just below "set -e" in /var/lib/dpkg/info/ocrad.postinst. After this, "sudo apt-get install -f" sorts things out.

2. When I try to remove ocrad, another error comes up:

"E: ocrad: subprocess installed pre-removal script returned error exit status 1."

So, pre-removal script is problematic too. I have to do the same as for postinstall script: add "exit 0".

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Sorry for the delay. Do you have a locally installed version of texlive ?

Revision history for this message
mehor (mehor) wrote :

No problem. Yes, I do. Actually, I have installed some core packages of TeXLive 2008 from Ubuntu repos (those that were needed by LaTeX editors like Kile and Texmaker as dependencies) and have installed full TeXLive 2009 from the DVD into a folder inside my /home directory (and added its path to ~/.bashrc).

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks. I can reproduce it in karmic by installing install-info from texlive 2008 and have it in the search path before system's install-info.

Texlive version:
# /usr/local/bin/install-info --version
install-info (GNU texinfo) 4.12

Karmic version
# apt-cache policy install-info
install-info:
  Installed: 4.13a.dfsg.1-4ubuntu1
  Candidate: 4.13a.dfsg.1-4ubuntu1
  Version table:
 *** 4.13a.dfsg.1-4ubuntu1 0
        500 http://fr.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

I guess TexLive 2009 fixed it because they no longer distribute programs and documentation with TeXLive and you have to get the original Texinfo package for the system you're running.

Affecting to install-info and setting status to confirmed.

Changed in ocrad (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Anyhow, you should read http://www.tug.org/texlive/debian.html and to workaround it and keep both install-info and TeXLive happy you should make sure the GNU install-info is not in root's $PATH.

affects: ocrad (Ubuntu) → texinfo (Ubuntu)
description: updated
summary: - package ocrad 0.17-3 failed to install/upgrade: subprocess post-
- installation script returned error exit status 1
+ Texlive2008 install-info conflicts with system's version of install-info
description: updated
description: updated
description: updated
Revision history for this message
mehor (mehor) wrote :

Thanks a lot. Removing TeXLive 2007/2008's install-info solved post/preremoval script problems with other packages too (gv, gnupg2 etc.).

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.