Try to install visualvm from packages only on Ubuntu.