I needed to remove "Maven" Installed with binary files and npm. I followed this link: How to install maven on ubuntu
and also npm installed with:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - sudo apt update
and reinstall them with them with the version provided by normal apt-get.
I tried to remove with sudo apt-get remove npm sudo apt-get install npm
but now I get "E: Unable to correct problems, you have held broken packages"