package cmake 2.6.0-4ubuntu2 failed to install/upgrade: subprocess post-installation script returned error exit status 2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cmake (Ubuntu) |
Invalid
|
Low
|
Unassigned |
Bug Description
Binary package hint: cmake
Description: Ubuntu intrepid (development branch)
Release: 8.10
cmake:
Installed: 2.6.0-4ubuntu2
Candidate: 2.6.0-4ubuntu2
Version table:
*** 2.6.0-4ubuntu2 0
500 http://
100 /var/lib/
While installing cmake using Synaptic on 8.10, I received the following error:
package cmake 2.6.0-4ubuntu2 failed to install/upgrade: subprocess post-installation script returned error exit status 2
Is there anything else you need me to submit?
ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 8.10
ErrorMessage: subprocess post-installation script returned error exit status 2
Package: cmake 2.6.0-4ubuntu2
SourcePackage: cmake
Title: package cmake 2.6.0-4ubuntu2 failed to install/upgrade: subprocess post-installation script returned error exit status 2
Uname: Linux 2.6.27-5-generic i686
:: TEST CASE ::
# aptitude install emacsen-common cmake
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following NEW packages will be installed:
cmake emacsen-common
0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 7519kB of archives. After unpacking 19.3MB will be used.
Writing extended state information... Done
Get:1 ftp://ftp.
Get:2 ftp://ftp.
Fetched 7519kB in 13s (546kB/s)
Selecting previously deselected package cmake.
(Reading database ... 187271 files and directories currently installed.)
Unpacking cmake (from .../cmake_
Selecting previously deselected package emacsen-common.
Unpacking emacsen-common (from .../emacsen-
Processing triggers for man-db ...
Processing triggers for menu ...
Setting up cmake (2.6.0-4ubuntu2) ...
ERROR: emacsen-common being used before being configured.
ERROR: This is likely a bug in the cmake package, which needs to
ERROR: add one of the appropriate dependencies.
ERROR: See /usr/share/
ERROR: for details.
dpkg: error processing cmake (--configure):
subprocess post-installation script returned error exit status 2
Setting up emacsen-common (1.4.17) ...
emacsen-common: Handling install of emacsen flavor emacs
Processing triggers for menu ...
Errors were encountered while processing:
cmake
E: Sub-process /usr/bin/dpkg returned an error code (1)
:: WORKAROUND ::
Install emacsen-common then install cmake
description: | updated |
Changed in cmake: | |
importance: | Undecided → Low |
status: | Confirmed → Triaged |
tags: | added: utopic |
This appears to be a race condition when emacsen-common and cmake are installed simultaneously. If cmake is configured first, an error occurs. if emacsen-common is configured first, it will probably work.
I believe that if we add emacsen-common to the list of dependencies for the cmake package, it should solve the problem.
Assuming emacsen-common is an optional dependency, is not a missing required dependency, and is being installed at the same time as cmake, is there any way to force emacsen-common to run its post-installation scripts first if emacsen-common is present and has not been configured?