package gcc-doc 4:4.8.2-4ubuntu1 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1

Bug #1328639 reported by Fila Kolodny
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gcc-defaults (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

just doing apt-get upgrade

ProblemType: Package
DistroRelease: Ubuntu 14.10
Package: gcc-doc 4:4.8.2-4ubuntu1
ProcVersionSignature: Ubuntu 3.15.0-5.10-generic 3.15.0-rc8
Uname: Linux 3.15.0-5-generic x86_64
ApportVersion: 2.14.3-0ubuntu1
Architecture: amd64
Date: Tue Jun 10 14:19:03 2014
DuplicateSignature: package:gcc-doc:4:4.8.2-4ubuntu1:subprocess new pre-removal script returned error exit status 1
ErrorMessage: subprocess new pre-removal script returned error exit status 1
InstallationDate: Installed on 2014-02-24 (105 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
SourcePackage: gcc-defaults
Title: package gcc-doc 4:4.8.2-4ubuntu1 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Fila Kolodny (fila) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gcc-defaults (Ubuntu):
status: New → Confirmed
Revision history for this message
Iain Lane (laney) wrote :

Here's what I get in a chroot

(utopic-amd64)root@utopic:/build# apt-get install gcc-doc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  gcc-4.9-doc
The following NEW packages will be installed:
  gcc-4.9-doc gcc-doc
0 upgraded, 2 newly installed, 0 to remove and 15 not upgraded.
Need to get 2169 kB of archives.
After this operation, 9220 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://sherwood/ubuntu/ utopic-proposed/main gcc-4.9-doc all 4.9.0-6ubuntu1 [2165 kB]
Get:2 http://sherwood/ubuntu/ utopic/main gcc-doc amd64 4:4.9.0-3ubuntu1 [3702 B]
Fetched 2169 kB in 0s (4616 kB/s)
E: Can not write log (Is /dev/pts mounted?) - openpty (2: No such file or directory)
Selecting previously unselected package gcc-4.9-doc.
(Reading database ... 12003 files and directories currently installed.)
Preparing to unpack .../gcc-4.9-doc_4.9.0-6ubuntu1_all.deb ...
Unpacking gcc-4.9-doc (4.9.0-6ubuntu1) ...
Selecting previously unselected package gcc-doc.
Preparing to unpack .../gcc-doc_4%3a4.9.0-3ubuntu1_amd64.deb ...
Unpacking gcc-doc (4:4.9.0-3ubuntu1) ...
Setting up gcc-4.9-doc (4.9.0-6ubuntu1) ...
Setting up gcc-doc (4:4.9.0-3ubuntu1) ...
/var/lib/dpkg/info/gcc-doc.postinst: 3: /var/lib/dpkg/info/gcc-doc.postinst: install-info: not found
dpkg: error processing package gcc-doc (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 gcc-doc
E: Sub-process /usr/bin/dpkg returned an error code (1)

and then if I install install-info

(utopic-amd64)root@utopic:/build# apt-get install install-info
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  install-info
0 upgraded, 1 newly installed, 0 to remove and 15 not upgraded.
1 not fully installed or removed.
Need to get 49.3 kB of archives.
After this operation, 267 kB of additional disk space will be used.
Get:1 http://sherwood/ubuntu/ utopic/main install-info amd64 5.2.0.dfsg.1-4 [49.3 kB]
Fetched 49.3 kB in 0s (701 kB/s)
E: Can not write log (Is /dev/pts mounted?) - openpty (2: No such file or directory)
Selecting previously unselected package install-info.
(Reading database ... 12028 files and directories currently installed.)
Preparing to unpack .../install-info_5.2.0.dfsg.1-4_amd64.deb ...
Unpacking install-info (5.2.0.dfsg.1-4) ...
Setting up install-info (5.2.0.dfsg.1-4) ...
Setting up gcc-doc (4:4.9.0-3ubuntu1) ...
install-info: No dir file specified; try --help for more information.
dpkg: error processing package gcc-doc (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 gcc-doc
E: Sub-process /usr/bin/dpkg returned an error code (1)

AFAICS both of these problems would be solved by using the trigger, or otherwise (if that doesn't work with the symlinks) then you need to modify the postinsts and prerms to pass /usr/share/info/dir to install-info.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gcc-defaults - 1.128ubuntu2

---------------
gcc-defaults (1.128ubuntu2) utopic; urgency=medium

  * Remove maintainer scripts for the -doc packages. LP: #1328638, #1328639.
  * Build a gccgo-doc package.
  * Provide gcc-{ar,nm,ranlib} man pages.
 -- Matthias Klose <email address hidden> Wed, 11 Jun 2014 13:06:07 +0200

Changed in gcc-defaults (Ubuntu):
status: Confirmed → Fix Released
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.