I solved the problem! It is a bit convoluted
When re-installing polymake-3.1 I encountered a strange error
dpkg: error processing archive /home/beew/Downloads/polymake-3.1/polymake_3.1-1_amd64.deb (--install):
trying to overwrite '/root/.oracle_jre_usage/9e360713136aba0a.timestamp', which is also in package rstudio 1.1.423-1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
After removing restudio polymake-3.1 installed smoothly and jreality worked too. I then removed polymake 3.1 and reinstalled 3.2, after that jreality stopped working unless I started polymake-3.2 with the option --reconfigure each time (not once)
I then removed polymake-3.2 (at this point, no polymake in the system left) to reinstall rstudio. Next I reinstalled polymake-3.1 and saw the same "trying to overwrite oracle_jre_usage" error again, so I did
Code: Select all
sudo dpkg -i --force-overwrite polymake_3.1-1_amd64.deb
I then removed polymake-3.1 again and installed polymake-3.2. After starting polymake-3.2 with --reconfigure once jreality always works! (rstudio also works)
It seems that when installing rstuido from source with sudo java created a timestamp in .root and that was the source of the problem. I could not have noticed this from installing polymake-3.2 because the installation went through smoothly. This seems to be an oracle issue since I never had this problem with openjdk (but it is buggy in Ubuntu 16.04 for other reasons) "dpkg -i force overwrite" appeared to clean that up.
Thanks for the hint about the reconfigure option.