I got this message when trying to update nodejs and nodejs-dev (with --with-new-pkgs
option) in Ubuntu 18.04.
The following packages have unmet dependencies:
libssl-dev : Conflicts: libssl1.0-dev but 1.0.2n-1ubuntu5.1 is going to be installed
Recommends: libssl-doc but it is not going to be installed
libssl1.0-dev : Conflicts: libssl-dev but 1.1.0g-2ubuntu4.1 is going to be installed
E: Broken packages
Use n module from npm in order to upgrade node
To upgrade to latest version (and not current stable) version, you can use
To undo: