package cmake-data 3.5.1-1ubuntu3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1682800 reported by DEnis
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cmake (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

root@big:~# aptitude install build-essential cmake git
build-essential is already installed at the requested version (12.1ubuntu2)
git is already installed at the requested version (1:2.7.4-0ubuntu1)
build-essential is already installed at the requested version (12.1ubuntu2)
git is already installed at the requested version (1:2.7.4-0ubuntu1)
The following NEW packages will be installed:
  cmake cmake-data{a} libjsoncpp1{a}
0 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 3.817 kB of archives. After unpacking 20,5 MB will be used.
Do you want to continue? [Y/n/?] y
Get: 1 http://de.archive.ubuntu.com/ubuntu xenial-updates/main amd64 cmake-data all 3.5.1-1ubuntu3 [1.121 kB]
Get: 2 http://de.archive.ubuntu.com/ubuntu xenial/main amd64 libjsoncpp1 amd64 1.7.2-1 [73,0 kB]
Get: 3 http://de.archive.ubuntu.com/ubuntu xenial-updates/main amd64 cmake amd64 3.5.1-1ubuntu3 [2.623 kB]
Fetched 3.817 kB in 1s (2.220 kB/s)
Selecting previously unselected package cmake-data.
(Reading database ... 376442 files and directories currently installed.)
Preparing to unpack .../cmake-data_3.5.1-1ubuntu3_all.deb ...
Unpacking cmake-data (3.5.1-1ubuntu3) ...
Selecting previously unselected package libjsoncpp1:amd64.
Preparing to unpack .../libjsoncpp1_1.7.2-1_amd64.deb ...
Unpacking libjsoncpp1:amd64 (1.7.2-1) ...
Selecting previously unselected package cmake.
Preparing to unpack .../cmake_3.5.1-1ubuntu3_amd64.deb ...
Unpacking cmake (3.5.1-1ubuntu3) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Setting up cmake-data (3.5.1-1ubuntu3) ...
dpkg-query: package 'cmake-data' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
emacsen-common: dpkg invocation failed at /usr/lib/emacsen-common/lib.pl line 80.
dpkg: error processing package cmake-data (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up libjsoncpp1:amd64 (1.7.2-1) ...
dpkg: dependency problems prevent configuration of cmake:
 cmake depends on cmake-data (= 3.5.1-1ubuntu3); however:
  Package cmake-data is not configured yet.

dpkg: error processing package cmake (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Processing triggers for libc-bin (2.23-0ubuntu7) ...
Errors were encountered while processing:
 cmake-data
 cmake
E: Sub-process /usr/bin/dpkg returned an error code (1)
Failed to perform requested operation on package. Trying to recover:
Setting up openjdk-8-jre-headless:amd64 (8u121-b13-0ubuntu1.16.04.2) ...
update-alternatives: warning: /usr/local/etc/alternatives/rmid has been changed (manually or by a script); switching to manual updates only
update-alternatives: warning: /usr/local/etc/alternatives/java has been changed (manually or by a script); switching to manual updates only
update-alternatives: warning: /usr/local/etc/alternatives/keytool has been changed (manually or by a script); switching to manual updates only
update-alternatives: warning: /usr/local/etc/alternatives/jjs has been changed (manually or by a script); switching to manual updates only
update-alternatives: warning: /usr/local/etc/alternatives/pack200 has been changed (manually or by a script); switching to manual updates only
update-alternatives: warning: /usr/local/etc/alternatives/rmiregistry has been changed (manually or by a script); switching to manual updates only
update-alternatives: warning: /usr/local/etc/alternatives/unpack200 has been changed (manually or by a script); switching to manual updates only
update-alternatives: warning: /usr/local/etc/alternatives/orbd has been changed (manually or by a script); switching to manual updates only
update-alternatives: warning: /usr/local/etc/alternatives/servertool has been changed (manually or by a script); switching to manual updates only
update-alternatives: warning: /usr/local/etc/alternatives/tnameserv has been changed (manually or by a script); switching to manual updates only
update-alternatives: warning: /usr/local/etc/alternatives/jexec has been changed (manually or by a script); switching to manual updates only
Setting up ca-certificates-java (20160321) ...
Replacing debian:Verisign_Class_3_Public_Primary_Certification_Authority_-_G3.pem
Replacing debian:USERTrust_ECC_Certification_Authority.pem
Replacing debian:USERTrust_RSA_Certification_Authority.pem
Replacing debian:certSIGN_ROOT_CA.pem
Replacing debian:QuoVadis_Root_CA_2.pem
Replacing debian:NetLock_Arany_=Class_Gold=_Főtanúsítvány.pem
Replacing debian:Verisign_Class_2_Public_Primary_Certification_Authority_-_G3.pem
Replacing debian:TC_TrustCenter_Class_3_CA_II.pem
Replacing debian:GeoTrust_Global_CA.pem
Replacing debian:TeliaSonera_Root_CA_v1.pem
Replacing debian:NetLock_Business_=Class_B=_Root.pem
Replacing debian:Go_Daddy_Root_Certificate_Authority_-_G2.pem
Replacing debian:Comodo_Secure_Services_root.pem
Replacing debian:CA_WoSign_ECC_Root.pem
Replacing debian:TURKTRUST_Certificate_Services_Provider_Root_2007.pem
Replacing debian:E-Tugra_Certification_Authority.pem
Replacing debian:AffirmTrust_Premium_ECC.pem
Replacing debian:QuoVadis_Root_CA_3.pem
Replacing debian:OISTE_WISeKey_Global_Root_GA_CA.pem
Replacing debian:Deutsche_Telekom_Root_CA_2.pem
Replacing debian:Taiwan_GRCA.pem
Replacing debian:GeoTrust_Primary_Certification_Authority_-_G3.pem
Replacing debian:TÜRKTRUST_Elektronik_Sertifika_Hizmet_Sağlayıcısı_H6.pem
Replacing debian:Actalis_Authentication_Root_CA.pem
Replacing debian:GeoTrust_Primary_Certification_Authority_-_G2.pem
Replacing debian:Camerfirma_Global_Chambersign_Root.pem
Replacing debian:Staat_der_Nederlanden_Root_CA_-_G3.pem
Replacing debian:Certigna.pem
Replacing debian:GeoTrust_Universal_CA_2.pem
Replacing debian:Network_Solutions_Certificate_Authority.pem
Replacing debian:ACEDICOM_Root.pem
Replacing debian:COMODO_Certification_Authority.pem
Replacing debian:QuoVadis_Root_CA_2_G3.pem
Replacing debian:NetLock_Qualified_=Class_QA=_Root.pem
Replacing debian:DigiCert_Assured_ID_Root_G3.pem
Replacing debian:Entrust_Root_Certification_Authority_-_EC1.pem
Replacing debian:Verisign_Class_1_Public_Primary_Certification_Authority_-_G2.pem
Replacing debian:QuoVadis_Root_CA_3_G3.pem
Replacing debian:AffirmTrust_Commercial.pem
Replacing debian:ApplicationCA_-_Japanese_Government.pem
Replacing debian:CA_Disig.pem
Replacing debian:GeoTrust_Global_CA_2.pem
Replacing debian:DigiCert_Trusted_Root_G4.pem
Replacing debian:GlobalSign_Root_CA.pem
Replacing debian:Certplus_Class_2_Primary_CA.pem
Replacing debian:Go_Daddy_Class_2_CA.pem
Replacing debian:GeoTrust_Universal_CA.pem
Replacing debian:Staat_der_Nederlanden_Root_CA.pem
Replacing debian:Hellenic_Academic_and_Research_Institutions_RootCA_2011.pem
Replacing debian:SwissSign_Platinum_CA_-_G2.pem
Replacing debian:StartCom_Certification_Authority_2.pem
Replacing debian:Entrust_Root_Certification_Authority_-_G2.pem
Replacing debian:Verisign_Class_3_Public_Primary_Certification_Authority.pem
Replacing debian:Camerfirma_Chambers_of_Commerce_Root.pem
Replacing debian:WoSign_China.pem
Replacing debian:IdenTrust_Commercial_Root_CA_1.pem
Replacing debian:Starfield_Class_2_CA.pem
Replacing debian:Verisign_Class_3_Public_Primary_Certification_Authority_-_G2.pem
Replacing debian:Verisign_Class_2_Public_Primary_Certification_Authority_-_G2.pem
Replacing debian:GlobalSign_Root_CA_-_R2.pem
Replacing debian:ComSign_CA.pem
Replacing debian:GlobalSign_ECC_Root_CA_-_R5.pem
Replacing debian:S-TRUST_Authentication_and_Encryption_Root_CA_2005_PN.pem
Replacing debian:DigiCert_High_Assurance_EV_Root_CA.pem
Replacing debian:Global_Chambersign_Root_-_2008.pem
Replacing debian:Trustis_FPS_Root_CA.pem
Replacing debian:AC_Raíz_Certicámara_S.A..pem
Replacing debian:DigiCert_Assured_ID_Root_G2.pem
Replacing debian:Comodo_AAA_Services_root.pem
Replacing debian:Buypass_Class_3_Root_CA.pem
Replacing debian:Secure_Global_CA.pem
Replacing debian:Equifax_Secure_Global_eBusiness_CA.pem
Replacing debian:DigiCert_Assured_ID_Root_CA.pem
Replacing debian:Certinomis_-_Root_CA.pem
Replacing debian:Microsec_e-Szigno_Root_CA.pem
Replacing debian:Entrust_Root_Certification_Authority.pem
Replacing debian:AddTrust_Qualified_Certificates_Root.pem
Replacing debian:SwissSign_Silver_CA_-_G2.pem
Replacing debian:GlobalSign_ECC_Root_CA_-_R4.pem
Replacing debian:DigiCert_Global_Root_CA.pem
Replacing debian:D-TRUST_Root_Class_3_CA_2_2009.pem
Replacing debian:Swisscom_Root_EV_CA_2.pem
Replacing debian:UTN_USERFirst_Email_Root_CA.pem
Replacing debian:EE_Certification_Centre_Root_CA.pem
Replacing debian:T-TeleSec_GlobalRoot_Class_3.pem
Replacing debian:S-TRUST_Universal_Root_CA.pem
Replacing debian:CA_Disig_Root_R1.pem
Replacing debian:RSA_Security_2048_v3.pem
Replacing debian:CNNIC_ROOT.pem
Replacing debian:China_Internet_Network_Information_Center_EV_Certificates_Root.pem
Replacing debian:Baltimore_CyberTrust_Root.pem
Replacing debian:Visa_eCommerce_Root.pem
Replacing debian:Equifax_Secure_CA.pem
Replacing debian:IdenTrust_Public_Sector_Root_CA_1.pem
Replacing debian:Starfield_Root_Certificate_Authority_-_G2.pem
Replacing debian:VeriSign_Class_3_Public_Primary_Certification_Authority_-_G5.pem
Replacing debian:Buypass_Class_2_CA_1.pem
Replacing debian:AddTrust_Low-Value_Services_Root.pem
Replacing debian:AffirmTrust_Networking.pem
Replacing debian:ACCVRAIZ1.pem
Replacing debian:UTN_USERFirst_Hardware_Root_CA.pem
Replacing debian:UbuntuOne-Go_Daddy_CA.pem
Replacing debian:EC-ACC.pem
Replacing debian:ssl-cert-snakeoil.pem
Replacing debian:CFCA_EV_ROOT.pem
Replacing debian:SwissSign_Gold_CA_-_G2.pem
Replacing debian:Cybertrust_Global_Root.pem
Replacing debian:D-TRUST_Root_Class_3_CA_2_EV_2009.pem
Replacing debian:Hongkong_Post_Root_CA_1.pem
Replacing debian:NetLock_Express_=Class_C=_Root.pem
Replacing debian:thawte_Primary_Root_CA_-_G3.pem
Replacing debian:GlobalSign_Root_CA_-_R3.pem
Replacing debian:VeriSign_Universal_Root_Certification_Authority.pem
Replacing debian:VeriSign_Class_3_Public_Primary_Certification_Authority_-_G4.pem
Replacing debian:AffirmTrust_Premium.pem
Replacing debian:Staat_der_Nederlanden_EV_Root_CA.pem
Replacing debian:Sonera_Class_1_Root_CA.pem
Replacing debian:TWCA_Root_Certification_Authority.pem
Replacing debian:Certum_Root_CA.pem
Replacing debian:DST_ACES_CA_X6.pem
Replacing debian:Equifax_Secure_eBusiness_CA_1.pem
Replacing debian:Chambers_of_Commerce_Root_-_2008.pem
Replacing debian:Staat_der_Nederlanden_Root_CA_-_G2.pem
Replacing debian:Microsec_e-Szigno_Root_CA_2009.pem
Replacing debian:XRamp_Global_CA_Root.pem
Replacing debian:UbuntuOne-ValiCert_Class_2_VA.pem
Replacing debian:Buypass_Class_2_Root_CA.pem
Replacing debian:COMODO_ECC_Certification_Authority.pem
Replacing debian:Verisign_Class_1_Public_Primary_Certification_Authority.pem
Replacing debian:WellsSecure_Public_Root_Certificate_Authority.pem
Replacing debian:Security_Communication_Root_CA.pem
Replacing debian:Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem
Replacing debian:GeoTrust_Primary_Certification_Authority.pem
Replacing debian:Security_Communication_RootCA2.pem
Replacing debian:Entrust.net_Premium_2048_Secure_Server_CA.pem
Replacing debian:Verisign_Class_3_Public_Primary_Certification_Authority_2.pem
Replacing debian:Swisscom_Root_CA_2.pem
Replacing debian:StartCom_Certification_Authority_G2.pem
Replacing debian:NetLock_Notary_=Class_A=_Root.pem
Replacing debian:Certinomis_-_Autorité_Racine.pem
Replacing debian:IGC_A.pem
Replacing debian:SecureTrust_CA.pem
Replacing debian:T-TeleSec_GlobalRoot_Class_2.pem
Replacing debian:CA_Disig_Root_R2.pem
Replacing debian:Sonera_Class_2_Root_CA.pem
Replacing debian:Atos_TrustedRoot_2011.pem
Replacing debian:StartCom_Certification_Authority.pem
Replacing debian:DST_Root_CA_X3.pem
Replacing debian:thawte_Primary_Root_CA.pem
Replacing debian:thawte_Primary_Root_CA_-_G2.pem
Replacing debian:QuoVadis_Root_CA_1_G3.pem
Replacing debian:Swisscom_Root_CA_1.pem
Replacing debian:EBG_Elektronik_Sertifika_Hizmet_Sağlayıcısı.pem
Replacing debian:PSCProcert.pem
Replacing debian:ePKI_Root_Certification_Authority.pem
Replacing debian:Certum_Trusted_Network_CA.pem
Replacing debian:Starfield_Services_Root_Certificate_Authority_-_G2.pem
Replacing debian:TWCA_Global_Root_CA.pem
Replacing debian:QuoVadis_Root_CA.pem
Replacing debian:AddTrust_External_Root.pem
Replacing debian:DigiCert_Global_Root_G2.pem
Replacing debian:Certification_Authority_of_WoSign_G2.pem
Replacing debian:OISTE_WISeKey_Global_Root_GB_CA.pem
Replacing debian:SecureSign_RootCA11.pem
Replacing debian:DigiCert_Global_Root_G3.pem
Replacing debian:UbuntuOne-Go_Daddy_Class_2_CA.pem
Replacing debian:AddTrust_Public_Services_Root.pem
Replacing debian:TÜBİTAK_UEKAE_Kök_Sertifika_Hizmet_Sağlayıcısı_-_Sürüm_3.pem
Replacing debian:COMODO_RSA_Certification_Authority.pem
Replacing debian:WoSign.pem
Replacing debian:Root_CA_Generalitat_Valenciana.pem
Replacing debian:Verisign_Class_1_Public_Primary_Certification_Authority_-_G3.pem
Replacing debian:Juur-SK.pem
Replacing debian:Comodo_Trusted_Services_root.pem
Replacing debian:Izenpe.com.pem
Replacing debian:TÜRKTRUST_Elektronik_Sertifika_Hizmet_Sağlayıcısı_H5.pem
Replacing debian:Security_Communication_EV_RootCA1.pem
done.
Processing triggers for ca-certificates (20160104ubuntu1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...

done.
done.

root@big:~# dpkg --configure -a
root@big:~#

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: cmake-data 3.5.1-1ubuntu3
ProcVersionSignature: Ubuntu 4.4.0-72.93-generic 4.4.49
Uname: Linux 4.4.0-72-generic x86_64
NonfreeKernelModules: zfs zunicode zcommon znvpair zavl
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
Date: Fri Apr 14 13:18:40 2017
Dependencies:

ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2014-11-19 (876 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
PackageArchitecture: all
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.1
 apt 1.2.19
SourcePackage: cmake
Title: package cmake-data 3.5.1-1ubuntu3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to xenial on 2017-04-11 (3 days ago)

Revision history for this message
DEnis (p-d) wrote :
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

please try
sudo apt-get remove --purge cmake
sudo apt-get install cmake

Changed in cmake (Ubuntu):
status: New → Incomplete
Revision history for this message
DEnis (p-d) wrote :

root@big:~# sudo apt-get remove --purge cmake
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  cmake-data libjsoncpp1
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  cmake*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 14,6 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 378497 files and directories currently installed.)
Removing cmake (3.5.1-1ubuntu3) ...
Purging configuration files for cmake (3.5.1-1ubuntu3) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up cmake-data (3.5.1-1ubuntu3) ...
dpkg-query: package 'cmake-data' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
emacsen-common: dpkg invocation failed at /usr/lib/emacsen-common/lib.pl line 80.
dpkg: error processing package cmake-data (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 cmake-data
E: Sub-process /usr/bin/dpkg returned an error code (1)

root@big:~# sudo apt-get install --reinstall cmake
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for cmake:amd64

root@big:~# dpkg --audit
root@big:~#

Revision history for this message
DEnis (p-d) wrote :
Download full text (4.4 KiB)

But when I remove cmake-data first, after that I can remove cmake:

oot@big:~#
root@big:~# apt-get purge cmake-data
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  libjsoncpp1
Use 'apt autoremove' to remove it.
The following packages will be REMOVED:
  cmake-data*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 5.733 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 378484 files and directories currently installed.)
Removing cmake-data (3.5.1-1ubuntu3) ...
Purging configuration files for cmake-data (3.5.1-1ubuntu3) ...
Processing triggers for man-db (2.7.5-1) ...
root@big:~#
root@big:~#
root@big:~#
root@big:~#
root@big:~#
root@big:~# apt-get purge cmake
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'cmake' is not installed, so not removed
The following package was automatically installed and is no longer required:
  libjsoncpp1
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@big:~#
root@big:~#
root@big:~#
root@big:~#
root@big:~# apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  libjsoncpp1
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 229 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 376449 files and directories currently installed.)
Removing libjsoncpp1:amd64 (1.7.2-1) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
root@big:~#
root@big:~#

===========================

AND when I try again to install cmake:

root@big:~# apt-get install cmake cmake-data
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libjsoncpp1
Suggested packages:
  codeblocks eclipse ninja-build
The following NEW packages will be installed:
  cmake cmake-data libjsoncpp1
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 3.817 kB of archives.
After this operation, 20,5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://de.archive.ubuntu.com/ubuntu xenial-updates/main amd64 cmake-data all 3.5.1-1ubuntu3 [1.121 kB]
Get:2 http://de.archive.ubuntu.com/ubuntu xenial/main amd64 libjsoncpp1 amd64 1.7.2-1 [73,0 kB]
Get:3 http://de.archive.ubuntu.com/ubuntu xenial-updates/main amd64 cmake amd64 3.5.1-1ubuntu3 [2.623 kB]
Fetched 3.817 kB in 0s (4.101 kB/s)
Selecting previously unselected package cmake-data.
(Reading database ... 376442 files and directories currently installed.)
Preparing to unpack .../cmake-data_3.5.1-1ubuntu3_all.deb ...
Unpacking cmake-data (3.5.1-1ubuntu3) ...
Selecting previously unselected package libjsoncpp1:amd64.
Preparing to unpack .../libjsoncpp1_1.7.2-1_amd64.deb ...
Unpacking libjsoncpp1:amd64 (1.7.2-1) ...
Selecting previously unselected package cmake.
Pre...

Read more...

tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for cmake (Ubuntu) because there has been no activity for 60 days.]

Changed in cmake (Ubuntu):
status: Incomplete → Expired
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.