I already tried installing the Ubuntu 18 version, but I had the same problem. Now, I’m trying to install ROOT from the source, as @linev proposed, but I’m having a different problem, as I mention in this post.