Here's the rabbit hole I went down: # lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.2 LTS Release: 18.04 Codename: bionic
# apt-get install npm Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: npm : Depends: node-gyp (>= 0.10.9) but it is not going to be installed E: Unable to correct problems, you have held broken packages. # apt-get install node-gyp Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: node-gyp : Depends: nodejs-dev but it is not going to be installed E: Unable to correct problems, you have held broken packages. # apt-get install nodejs-dev Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: nodejs-dev : Depends: libssl1.0-dev (>= 1.0.2) but it is not going to be installed E: Unable to correct problems, you have held broken packages. # apt-get install libssl1.0-dev Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: libcurl4-openssl-dev libssl-dev The following NEW packages will be installed: libssl1.0-dev 0 upgraded, 1 newly installed, 2 to remove and 0 not upgraded. Need to get 1,365 kB of archives. After this operation, 1,997 kB disk space will be freed. Do you want to continue? [Y/n] So the packages blocking npm from installing are libssl-dev and libcurl4 -openssl-dev. Some node stuff is apparently depending on old openssl. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1809828 Title: Cannot install the npm package: dependency broken To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/npm/+bug/1809828/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs