← Back to team overview

openjdk team mailing list archive

Bug#729035: openjdk-6-jre-headless: Not possible to install in a foreign chroot

 

Package: openjdk-6-jre-headless
Version: 6b27-1.12.5-1

Hi.  I am trying to create a SD card image for Debian Edu on Raspberry
Pi, but am unable to create it because openjdk-6-jre-headless fail to
install in a "foreign" chroot, ie a armel chroot on a amd64 machine.
The problem can be reproduced using this script:

  #!/bin/sh
  set -ex
  sudo apt-get install -y qemu-user-static
  sudo debootstrap --arch=armel --foreign wheezy chroot-pi http://http.debian.net/debian
  sudo cp /usr/bin/qemu-arm-static chroot-pi/usr/bin/qemu-arm-static
  sudo chroot chroot-pi /debootstrap/debootstrap --second-stage 
  echo deb http://http.debian.net/debian wheezy main | sudo dd of=chroot-pi/etc/apt/sources.list
  sudo chroot chroot-pi apt-get update
  sudo mount -t proc proc chroot-pi/proc
  printf '#!/bin/sh\nexit 101\n' | sudo dd of=chroot-pi/usr/sbin/policy-rc.d
  sudo chmod a+rx chroot-pi/usr/sbin/policy-rc.d
  sudo chroot chroot-pi apt-get install -y openjdk-6-jre-headless
  sudo umount chroot-pi/proc
  sudo rm -rf chroot-pi

This is how it fail when I build it without /proc mounted in the chroot.

  Setting up openjdk-6-jre-headless:armel (6b27-1.12.5-1) ...
  the java command requires a mounted proc fs (/proc).
  dpkg: error processing openjdk-6-jre-headless:armel (--configure):
   subprocess installed post-installation script returned error exit status 1
  dpkg: dependency problems prevent configuration of ca-certificates-java:
   ca-certificates-java depends on openjdk-6-jre-headless (>= 6b16-1.6.1-2) | java6-runtime-headless; however:
    Package openjdk-6-jre-headless:armel is not configured yet.
    Package java6-runtime-headless is not installed.
    Package openjdk-6-jre-headless:armel which provides java6-runtime-headless is not configured yet.

And this is how it fail if I do mount /proc (for amd64, ie not with
content refering to the final armel architecture) in the chroot:

  Setting up openjdk-6-jre-headless:armel (6b27-1.12.5-1) ...
  update-alternatives: using /usr/lib/jvm/java-6-openjdk-armel/jre/bin/java to provide /usr/bin/java (java) in auto mode
  update-alternatives: using /usr/lib/jvm/java-6-openjdk-armel/jre/bin/keytool to provide /usr/bin/keytool (keytool) in auto mode
  update-alternatives: using /usr/lib/jvm/java-6-openjdk-armel/jre/bin/pack200 to provide /usr/bin/pack200 (pack200) in auto mode
  update-alternatives: using /usr/lib/jvm/java-6-openjdk-armel/jre/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode
  update-alternatives: using /usr/lib/jvm/java-6-openjdk-armel/jre/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode
  update-alternatives: using /usr/lib/jvm/java-6-openjdk-armel/jre/bin/unpack200 to provide /usr/bin/unpack200 (unpack200) in auto mode
  update-alternatives: using /usr/lib/jvm/java-6-openjdk-armel/jre/bin/orbd to provide /usr/bin/orbd (orbd) in auto mode
  update-alternatives: using /usr/lib/jvm/java-6-openjdk-armel/jre/bin/servertool to provide /usr/bin/servertool (servertool) in auto mode
  update-alternatives: using /usr/lib/jvm/java-6-openjdk-armel/jre/bin/tnameserv to provide /usr/bin/tnameserv (tnameserv) in auto mode
  update-alternatives: using /usr/lib/jvm/java-6-openjdk-armel/jre/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode
  Setting up ca-certificates-java (20121112+nmu2) ...
  OpenJDK Zero VM warning: Can't detect initial thread stack location - find_vma failed
  OpenJDK Zero VM warning: Can't detect initial thread stack location - find_vma failed
  done.
  Setting up icedtea-6-jre-cacao:armel (6b27-1.12.5-1) ...
  Setting up icedtea-6-jre-jamvm:armel (6b27-1.12.5-1) ...
  Setting up openjdk-6-jre-lib (6b27-1.12.5-1) ...
  Processing triggers for ca-certificates ...
  Updating certificates in /etc/ssl/certs... 158 added, 0 removed; done.
  Running hooks in /etc/ca-certificates/update.d....
  OpenJDK Zero VM warning: Can't detect initial thread stack location - find_vma failed
  Adding debian:cacert.org.pem
  Adding debian:ca.pem
  Adding debian:A-Trust-nQual-03.pem
  Adding debian:ACEDICOM_Root.pem
  Adding debian:AC_Raíz_Certicámara_S.A..pem
  Adding debian:Actalis_Authentication_Root_CA.pem
  Adding debian:AddTrust_External_Root.pem
  Adding debian:AddTrust_Low-Value_Services_Root.pem
  Adding debian:AddTrust_Public_Services_Root.pem
  Adding debian:AddTrust_Qualified_Certificates_Root.pem
  Adding debian:AffirmTrust_Commercial.pem
  Adding debian:AffirmTrust_Networking.pem
  Adding debian:AffirmTrust_Premium.pem
  Adding debian:AffirmTrust_Premium_ECC.pem
  Adding debian:America_Online_Root_Certification_Authority_1.pem
  Adding debian:America_Online_Root_Certification_Authority_2.pem
  Adding debian:ApplicationCA_-_Japanese_Government.pem
  Adding debian:Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem
  Adding debian:Baltimore_CyberTrust_Root.pem
  Adding debian:Buypass_Class_2_CA_1.pem
  Adding debian:Buypass_Class_2_Root_CA.pem
  Adding debian:Buypass_Class_3_CA_1.pem
  Adding debian:Buypass_Class_3_Root_CA.pem
  Adding debian:CA_Disig.pem
  Adding debian:CNNIC_ROOT.pem
  Adding debian:COMODO_Certification_Authority.pem
  Adding debian:COMODO_ECC_Certification_Authority.pem
  Adding debian:Camerfirma_Chambers_of_Commerce_Root.pem
  Adding debian:Camerfirma_Global_Chambersign_Root.pem
  Adding debian:Certigna.pem
  Adding debian:Certinomis_-_Autorité_Racine.pem
  Adding debian:Certplus_Class_2_Primary_CA.pem
  Adding debian:Certum_Root_CA.pem
  Adding debian:Certum_Trusted_Network_CA.pem
  Adding debian:Chambers_of_Commerce_Root_-_2008.pem
  Adding debian:ComSign_CA.pem
  Adding debian:ComSign_Secured_CA.pem
  Adding debian:Comodo_AAA_Services_root.pem
  Adding debian:Comodo_Secure_Services_root.pem
  Adding debian:Comodo_Trusted_Services_root.pem
  Adding debian:Cybertrust_Global_Root.pem
  Adding debian:DST_ACES_CA_X6.pem
  Adding debian:DST_Root_CA_X3.pem
  Adding debian:Deutsche_Telekom_Root_CA_2.pem
  Adding debian:DigiCert_Assured_ID_Root_CA.pem
  Adding debian:DigiCert_Global_Root_CA.pem
  Adding debian:DigiCert_High_Assurance_EV_Root_CA.pem
  Adding debian:Digital_Signature_Trust_Co._Global_CA_1.pem
  Adding debian:Digital_Signature_Trust_Co._Global_CA_3.pem
  Adding debian:E-Guven_Kok_Elektronik_Sertifika_Hizmet_Saglayicisi.pem
  Adding debian:EBG_Elektronik_Sertifika_Hizmet_Sağlayıcısı.pem
  Adding debian:EC-ACC.pem
  Adding debian:EE_Certification_Centre_Root_CA.pem
  Adding debian:Entrust.net_Premium_2048_Secure_Server_CA.pem
  Adding debian:Entrust.net_Secure_Server_CA.pem
  Adding debian:Entrust_Root_Certification_Authority.pem
  Adding debian:Equifax_Secure_CA.pem
  Adding debian:Equifax_Secure_Global_eBusiness_CA.pem
  Adding debian:Equifax_Secure_eBusiness_CA_1.pem
  Adding debian:Equifax_Secure_eBusiness_CA_2.pem
  Adding debian:Firmaprofesional_Root_CA.pem
  Adding debian:GTE_CyberTrust_Global_Root.pem
  Adding debian:GeoTrust_Global_CA.pem
  Adding debian:GeoTrust_Global_CA_2.pem
  Adding debian:GeoTrust_Primary_Certification_Authority.pem
  Adding debian:GeoTrust_Primary_Certification_Authority_-_G2.pem
  Adding debian:GeoTrust_Primary_Certification_Authority_-_G3.pem
  Adding debian:GeoTrust_Universal_CA.pem
  Adding debian:GeoTrust_Universal_CA_2.pem
  Adding debian:GlobalSign_Root_CA.pem
  Adding debian:GlobalSign_Root_CA_-_R2.pem
  Adding debian:GlobalSign_Root_CA_-_R3.pem
  Adding debian:Global_Chambersign_Root_-_2008.pem
  Adding debian:Go_Daddy_Class_2_CA.pem
  Adding debian:Go_Daddy_Root_Certificate_Authority_-_G2.pem
  Adding debian:Hellenic_Academic_and_Research_Institutions_RootCA_2011.pem
  Adding debian:Hongkong_Post_Root_CA_1.pem
  Adding debian:IGC_A.pem
  Adding debian:Izenpe.com.pem
  Adding debian:Juur-SK.pem
  Adding debian:Microsec_e-Szigno_Root_CA.pem
  Adding debian:Microsec_e-Szigno_Root_CA_2009.pem
  Adding debian:NetLock_Arany_=Class_Gold=_Főtanúsítvány.pem
  Adding debian:NetLock_Business_=Class_B=_Root.pem
  Adding debian:NetLock_Express_=Class_C=_Root.pem
  Adding debian:NetLock_Notary_=Class_A=_Root.pem
  Adding debian:NetLock_Qualified_=Class_QA=_Root.pem
  Adding debian:Network_Solutions_Certificate_Authority.pem
  Adding debian:OISTE_WISeKey_Global_Root_GA_CA.pem
  Adding debian:QuoVadis_Root_CA.pem
  Adding debian:QuoVadis_Root_CA_2.pem
  Adding debian:QuoVadis_Root_CA_3.pem
  Adding debian:RSA_Root_Certificate_1.pem
  Adding debian:RSA_Security_2048_v3.pem
  Adding debian:Root_CA_Generalitat_Valenciana.pem
  Adding debian:S-TRUST_Authentication_and_Encryption_Root_CA_2005_PN.pem
  Adding debian:SecureSign_RootCA11.pem
  Adding debian:SecureTrust_CA.pem
  Adding debian:Secure_Global_CA.pem
  Adding debian:Security_Communication_EV_RootCA1.pem
  Adding debian:Security_Communication_RootCA2.pem
  Adding debian:Security_Communication_Root_CA.pem
  Adding debian:Sonera_Class_1_Root_CA.pem
  Adding debian:Sonera_Class_2_Root_CA.pem
  Adding debian:Staat_der_Nederlanden_Root_CA.pem
  Adding debian:Staat_der_Nederlanden_Root_CA_-_G2.pem
  Adding debian:Starfield_Class_2_CA.pem
  Adding debian:Starfield_Root_Certificate_Authority_-_G2.pem
  Adding debian:Starfield_Services_Root_Certificate_Authority_-_G2.pem
  Adding debian:StartCom_Certification_Authority.pem
  Adding debian:StartCom_Certification_Authority_G2.pem
  Adding debian:SwissSign_Gold_CA_-_G2.pem
  Adding debian:SwissSign_Platinum_CA_-_G2.pem
  Adding debian:SwissSign_Silver_CA_-_G2.pem
  Adding debian:Swisscom_Root_CA_1.pem
  Adding debian:T-TeleSec_GlobalRoot_Class_3.pem
  Adding debian:TC_TrustCenter_Class_2_CA_II.pem
  Adding debian:TC_TrustCenter_Class_3_CA_II.pem
  Adding debian:TC_TrustCenter_Universal_CA_I.pem
  Adding debian:TC_TrustCenter_Universal_CA_III.pem
  Adding debian:TDC_Internet_Root_CA.pem
  Adding debian:TDC_OCES_Root_CA.pem
  Adding debian:TURKTRUST_Certificate_Services_Provider_Root_1.pem
  Adding debian:TURKTRUST_Certificate_Services_Provider_Root_2.pem
  Adding debian:TWCA_Root_Certification_Authority.pem
  Adding debian:Taiwan_GRCA.pem
  Adding debian:Thawte_Premium_Server_CA.pem
  Adding debian:Thawte_Server_CA.pem
  Adding debian:Trustis_FPS_Root_CA.pem
  Adding debian:TÜBİTAK_UEKAE_Kök_Sertifika_Hizmet_Sağlayıcısı_-_Sürüm_3.pem
  Adding debian:UTN_DATACorp_SGC_Root_CA.pem
  Adding debian:UTN_USERFirst_Email_Root_CA.pem
  Adding debian:UTN_USERFirst_Hardware_Root_CA.pem
  Adding debian:ValiCert_Class_1_VA.pem
  Adding debian:ValiCert_Class_2_VA.pem
  Adding debian:VeriSign_Class_3_Public_Primary_Certification_Authority_-_G4.pem
  Adding debian:VeriSign_Class_3_Public_Primary_Certification_Authority_-_G5.pem
  Adding debian:VeriSign_Universal_Root_Certification_Authority.pem
  Adding debian:Verisign_Class_1_Public_Primary_Certification_Authority.pem
  Adding debian:Verisign_Class_1_Public_Primary_Certification_Authority_-_G2.pem
  Adding debian:Verisign_Class_1_Public_Primary_Certification_Authority_-_G3.pem
  Adding debian:Verisign_Class_2_Public_Primary_Certification_Authority_-_G2.pem
  Adding debian:Verisign_Class_2_Public_Primary_Certification_Authority_-_G3.pem
  Adding debian:Verisign_Class_3_Public_Primary_Certification_Authority.pem
  Adding debian:Verisign_Class_3_Public_Primary_Certification_Authority_-_G2.pem
  Adding debian:Verisign_Class_3_Public_Primary_Certification_Authority_-_G3.pem
  Adding debian:Verisign_Class_4_Public_Primary_Certification_Authority_-_G3.pem
  Adding debian:Visa_eCommerce_Root.pem
  Adding debian:WellsSecure_Public_Root_Certificate_Authority.pem
  Adding debian:Wells_Fargo_Root_CA.pem
  Adding debian:XRamp_Global_CA_Root.pem
  Adding debian:certSIGN_ROOT_CA.pem
  Adding debian:ePKI_Root_Certification_Authority.pem
  Adding debian:thawte_Primary_Root_CA.pem
  Adding debian:thawte_Primary_Root_CA_-_G2.pem
  Adding debian:thawte_Primary_Root_CA_-_G3.pem
  Adding debian:spi-ca-2003.pem
  Adding debian:spi-cacert-2008.pem
  #
  # A fatal error has been detected by the Java Runtime Environment:
  #
  #  Internal Error (os_linux_zero.cpp:270), pid=28451, tid=3471045744
  #  fatal error: caught unhandled signal 11
  #
  # JRE version: 6.0_27-b27
  # Java VM: OpenJDK Zero VM (20.0-b12 mixed mode linux-arm )
  # Derivative: IcedTea6 1.12.5
  # Distribution: Debian GNU/Linux 7.0 (wheezy), package 6b27-1.12.5-1
  # An error report file with more information is saved as:
  # /etc/ssl/certs/hs_err_pid28451.log
  #
  # If you would like to submit a bug report, please include
  # instructions how to reproduce the bug and visit:
  #   http://icedtea.classpath.org/bugzilla
  #
  qemu: uncaught target signal 6 (Aborted) - core dumped
  Aborted
  E: /etc/ca-certificates/update.d/jks-keystore exited with code 1.
  done.

Do you have any idea how to get this package installed into a "foreign"
chroot?

-- 
Vennlig hilsen
Petter Reinholdtsen