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

Iain Lane iain at orangesquash.org.uk
Wed Jun 11 10:43:26 UTC 2014


Here's what I get in a chroot

(utopic-amd64)root at 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 at 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.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/1328639

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

Status in “gcc-defaults” package in Ubuntu:
  Confirmed

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/1328639/+subscriptions



More information about the foundations-bugs mailing list