package cmake 2.6.0-4ubuntu2 failed to install/upgrade: subprocess post-installation script returned error exit status 2

Bug #278807 reported by Frederick F. Kautz IV
312
This bug affects 44 people
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://us.archive.ubuntu.com intrepid/main Packages
        100 /var/lib/dpkg/status

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.free.fr intrepid/main cmake 2.6.0-4ubuntu2 [7501kB]
Get:2 ftp://ftp.free.fr intrepid/main emacsen-common 1.4.17 [17.6kB]
Fetched 7519kB in 13s (546kB/s)
Selecting previously deselected package cmake.
(Reading database ... 187271 files and directories currently installed.)
Unpacking cmake (from .../cmake_2.6.0-4ubuntu2_i386.deb) ...
Selecting previously deselected package emacsen-common.
Unpacking emacsen-common (from .../emacsen-common_1.4.17_all.deb) ...
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/doc/emacsen-common/debian-emacs-policy.gz
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

Revision history for this message
Frederick F. Kautz IV (fkautz) wrote :
Revision history for this message
Frederick F. Kautz IV (fkautz) wrote :

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?

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

Thanks for your report. bug 282411 is very similar but with ccrypt.

Changed in cmake:
status: New → Confirmed
description: updated
Changed in cmake:
importance: Undecided → Low
status: Confirmed → Triaged
Revision history for this message
Miguel Franco Martínez (miguelfrm1) wrote :

Both i386 and x86_64 architectures.

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Still present with cmake 2.6.3 in Karmic.

Revision history for this message
ken78724 (koymkg) wrote : Re: [Bug 278807] Re: package cmake 2.6.0-4ubuntu2 failed to install/upgrade: subprocess post-installation script returned error exit status 2
Download full text (3.6 KiB)

Hello Mr. Thomas:
   sure appreciate your hard work! soon after reporting the problem, a
work around showed on my screen; I thought I reported that though I
did not know what got me past the hurdle; shortly, I saw Ubuntu 9.04 &
upgraded from 8.10 without getting Studio Ubuntu 8:10 perfectly. But,
I found it beneficial. Then, my work went wild and I have been forced
to use my PC with microsoft installed.

   Many, many thanks!
 Kenneth

On Tue, May 26, 2009 at 2:04 PM, Jonathan Thomas <email address hidden> wrote:
> Still present with cmake 2.6.3 in Karmic.
>
> --
> package cmake 2.6.0-4ubuntu2 failed to install/upgrade: subprocess post-installation script returned error exit status 2
> https://bugs.launchpad.net/bugs/278807
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “cmake” source package in Ubuntu: Triaged
>
> 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://us.archive.ubuntu.com intrepid/main Packages
>        100 /var/lib/dpkg/status
>
> 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.free.fr intrepid/main cmake 2.6.0-4ubuntu2 [7501kB]
> Get:2 ftp://ftp.free.fr intrepid/main emacsen-common 1.4.17 [17.6kB]
> Fetched 7519kB in 13s (546kB/s)
> Selecting previously deselected package cmake.
> (Reading database ... 187271 files and directories currently installed.)
> Unpacking cmake (from .../cmake_2.6.0-4ubuntu2_i386.deb) ...
> Selecting previously deselected package emacsen-common.
> Unpacking emacsen-common (from .../emacsen-common_1.4.17_all.deb) ...
> 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/doc/emacsen-common/debian-emacs-policy.gz
> ER...

Read more...

Revision history for this message
Frederick F. Kautz IV (fkautz) wrote :

I should of posted the workaround on my original post for other readers.

Install emacs, then as a separate install transaction install cmake.

e.g.
apt-get install emacs
apt-get install cmake
OR
apt-get install cmake

DON'T apt-get install emacs cmake

A suboptimal solution is to make cmake depend on emacs. However, cmake does not require emacs to work and emacs is a fairly large dependency.

My proposed solution is as follows:
separate cmake into two packages:
cmake (with emacs specific files removed)
emacs-cmake which depends on emacsen-common

Revision history for this message
A. Eibach (andi3) wrote :

This is incredible. This bug is SIX years old.

And I've just gotten the very same here on Utopic (Final)

From Software Updater:

chdir /var/lib/emacsen-common/state/flavor/installed: No such file or directory at /usr/lib/emacsen-common/lib.pl line 27.
dpkg: warning: subprocess old pre-removal script returned error exit status 2
dpkg: trying script from the new package instead ...
chdir /var/lib/emacsen-common/state/flavor/installed: No such file or directory at /usr/lib/emacsen-common/lib.pl line 27.
dpkg: error processing archive /var/cache/apt/archives/cmake-data_2.8.12.2-0ubuntu6_all.deb (--unpack):
 subprocess new pre-removal script returned error exit status 2

Must really be rocket science to get this bug fixed, otherwise this shouldn't have taken 6 years to last.
My, my ...

Revision history for this message
A. Eibach (andi3) wrote :

OK, I could at least fix my issue by a VERY dirty hack:

$ cd /var/lib/emacsen-common/state

Since the 'package' directory does not exist, let's symlink to it so the installation script will find the stuff it needs:

$ sudo ln -s package flavor
Password:

$

Now it will install. (at least) ... though not without a hiccup:

/usr/lib/emacsen-common/packages/install/cmake-data: 26: /usr/lib/emacsen-common/packages/install/cmake-data: cmake-data: not found
Install cmake-data for dictionaries-common
install/cmake-data: Byte-compiling for dictionaries-common
/usr/lib/emacsen-common/packages/install/cmake-data: 26: /usr/lib/emacsen-common/packages/install/cmake-data: dictionaries-common: not found
Install cmake-data for emacsen-common
install/cmake-data: Byte-compiling for emacsen-common
/usr/lib/emacsen-common/packages/install/cmake-data: 26: /usr/lib/emacsen-common/packages/install/cmake-data: emacsen-common: not found
Setting up cmake (2.8.12.2-0ubuntu6) ...

At least I *think* one can live with that solution for the time being, since without my hack, cmake-data will NOT INSTALL AT ALL.

Revision history for this message
A. Eibach (andi3) wrote :

Oh, excuse me.
It should read "Since the 'flavor' directory does not exist, ..."

papukaija (papukaija)
tags: added: utopic
Revision history for this message
ken78724 (koymkg) wrote : Re: [Bug 278807] Re: package cmake 2.6.0-4ubuntu2 failed to install/upgrade: subprocess post-installation script returned error exit status 2
Download full text (4.4 KiB)

Jonathon Thomas and A. Elbach, thanks for working on [Bug 278807]. I am
just recalling my plight with cmake 2.6.3 in Karmic, which I later
upgraded to Studio 12.04; then I sat my ACER laptop aside as it won't boot
... On UbuntuForum.org ken78724 post in Ubuntu Studio and on
KubuntuForum.org I have 2014 posts relating that 12.04 Studio login
response “Your unlock login keyring is not recognized.” There's been no
time to solve the "unlock login keyring is not recognized.”

Am not able to set aside other work nor address the cmake 2.6.3 Kamic bug
nor to follow up with the later bug preventing me from logging in due to
the error message "unlock login keyring is not recognized.” My purpose in
mentioning all of this is this. Do you believe the cmake bug and the "unlock
login keyring is not recognized” bug is related or independent of one
another? Yes, is there any likelihood that bug 278807 and a unlock login
keyring not being recognized are related?

thanks for all each of you do. Kenneth 512.828.9778

On Mon, Oct 27, 2014 at 3:41 PM, papukaija <email address hidden>
wrote:

> ** Tags added: utopic
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/278807
>
> Title:
> package cmake 2.6.0-4ubuntu2 failed to install/upgrade: subprocess
> post-installation script returned error exit status 2
>
> Status in “cmake” package in Ubuntu:
> Triaged
>
> 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://us.archive.ubuntu.com intrepid/main Packages
> 100 /var/lib/dpkg/status
>
> 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.free.fr intrepid/main cmake 2.6.0-4ubuntu2 [7501kB]
> Get:2 ftp://ftp.free.fr intrepid/main emacsen-common 1.4.17 [17.6kB]
> Fetched 7519kB in 13s (546kB/s)
> Selecting previous...

Read more...

Revision history for this message
dino99 (9d9) wrote :

outdated flavor, report about a newer active version if needed

Changed in cmake (Ubuntu):
status: Triaged → Invalid
Revision history for this message
ken78724 (koymkg) wrote :

dino99, Andi, Jonathon and All concerned with bug bug 278807 and "unlock login keyring is not recognized”:

     I cordially vouch last night 2-26-15, while totally disconnected from internet, I booted my ACER Aspire. Then to get anywhere, I had to click on Dolphin to see or update a single file.

     Remarkably, I soon had to give up. Why, I could not access 725 files. you have access to: ["http://ubuntuforums.org/showthread.php?t=1343535&highlight=install+os+acer+aspire+laptop+dvd+reader" 1-11-15; and, "14.04 OS install won't initialize, terminal reconfig blocked" Jan 10th]

     Yes something about bug 278807 persists; rather than buy a new laptop, I'd enjoy being able to cut through the long and to me unclear side bar comments, to decide, ?

what terminal work around should I attempt ? or, what new problem report should I give Launchpad ?

thanks for all you do! #givingback, #givingback, #peace#dialogue, ken78724

 Linux User 470205 since 2002; Get a Linux User # @ http://counter.li.org

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.