No properties installed in /etc/java-8-openjdk/

Bug #1552500 reported by UlfZibis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openjdk-8 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Folder /etc/java-8-openjdk/ is not created and all properties and cfg files are missing after installing from
    pool/universe/o/openjdk-8/openjdk-8-jre-headless_8u66-b17-1_amd64.deb
with:
    apt-get install openjdk-8-jre-headless openjdk-8-jdk

These files should be installed, but are all missing:
root@ThinkPad-T500:/# dpkg -S /etc/java-8-openjdk/*.*
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/images/cursors/cursors.properties
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/accessibility.properties
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/security/java.security
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/swing.properties
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/management/snmp.acl
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/sound.properties
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/jvm-amd64.cfg
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/logging.properties
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/calendars.properties
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/flavormap.properties
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/management/jmxremote.password
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/content-types.properties
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/psfont.properties.ja
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/psfontj2d.properties
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/security/java.policy
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/security/blacklisted.certs
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/net.properties
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/management/jmxremote.access
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/management/management.properties
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/security/nss.cfg

In consequence, e.g. NetBeans IDE 8.1 fails with:
root@ThinkPad-T500:/# /usr/local/netbeans-8.1/bin/netbeans
Unrecognized option: -client
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

NetBeans IDE 8.1 still freezes while starting when pinning to 8u45 from vivid and copying jvm-amd64.cfg from java-7 because only 3 files where installed:
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/accessibility.properties
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/security/java.security
openjdk-8-jre-headless:amd64: /etc/java-8-openjdk/security/java.policy

NetBeans IDE 8.1 runs fine with java-7 after applying the workaround from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=808860

How did I ran into this situation?
NetBeans IDE 8.1 ran fine for long time in my Ubuntu 15.04 with java-8.
Last week I upgraded to 15.10.
Since then it freezed after 2 minutes.
Because I first didn't know about above mentioned bug, I tried several things including new installations of NetBeans and JDK. While doing this at some moment I deleted the /etc/java-8-openjdk/ folder, which was filled like the above list from former installations. I thought, I could delete it in assuming it would become created again when installing openjdk-8-jdk package. But this was not the case. Don't know, which build of jdk-8 I should install to get the files back, 8u45 only did recover 3 files of them.

Because with 8u66-b17-1 no security properties where installed, I file this bug as a security vulnerability.

Revision history for this message
Seth Arnold (seth-arnold) wrote : Bug is not a security issue

Thanks for taking the time to report this bug and helping to make Ubuntu better. We appreciate the difficulties you are facing, but this appears to be a "regular" (non-security) bug. I have unmarked it as a security issue since this bug does not show evidence of allowing attackers to cross privilege boundaries nor directly cause loss of data/privacy. Please feel free to report any other bugs you may find.

information type: Private Security → Public
Changed in openjdk-8 (Ubuntu):
status: New → Incomplete
Revision history for this message
Seth Arnold (seth-arnold) wrote :

Hello,

dpkg tracks modifications that you make to configuration files. It's complicated.

But the end result is that you can get these files back by simply purging the packages and then installing them again:

apt-get purge openjdk-8-jre-headless openjdk-8-jdk
apt-get install openjdk-8-jre-headless openjdk-8-jdk

Thanks

Revision history for this message
UlfZibis (ulf-zibis) wrote :

Hello Seth,

Thanks for your valuable hint and really fast answer.
So the manual deletion of the properties files was the cause of the trouble.
After doing the purge, my system is OK again.

The bug can be marked as invalid, sorry for making such noise.

Thanks

Revision history for this message
UlfZibis (ulf-zibis) wrote :

A little nit:
Vorgeschlagene Pakete:
  openjdk-8-demo icedtea-8-plugin openjdk-8-jre-jamvm fonts-ipafont-gothic
  fonts-ipafont-mincho fonts-indic
...
root@ThinkPad-T500:/# apt-get install openjdk-8-demo icedtea-8-plugin openjdk-8-jre-jamvm fonts-ipafont-gothic fonts-ipafont-mincho fonts-indic
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Paket icedtea-8-plugin ist nicht verfügbar, wird aber von einem anderen Paket
referenziert. Das kann heißen, dass das Paket fehlt, dass es abgelöst
wurde oder nur aus einer anderen Quelle verfügbar ist.

E: Für Paket »icedtea-8-plugin« existiert kein Installationskandidat.

So icedtea-8-plugin was replaced by icedtea-plugin and should be corrected in the package, right?

Revision history for this message
Matthias Klose (doko) wrote :

icedtea-8-plugin is in the archive, but moved to universe.

Changed in openjdk-8 (Ubuntu):
status: Incomplete → Invalid
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.