Cannot install the npm package: dependency broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
npm (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I cannot install the "npm" package on Kubuntu 18.10 (bionic) due to a broken dependency
Here is the log
$ sudo 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.
~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.10
Release: 18.10
Codename: cosmic
$ uname -a
Linux raffa-kubuntu 4.18.0-13-generic #14-Ubuntu SMP Wed Dec 5 09:04:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: npm (not installed)
ProcVersionSign
Uname: Linux 4.18.0-13-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.10-0ubuntu13.1
Architecture: amd64
CurrentDesktop: KDE
Date: Wed Dec 26 22:52:42 2018
InstallationDate: Installed on 2018-11-25 (31 days ago)
InstallationMedia: Kubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 (20181017.2)
SourcePackage: npm
UpgradeStatus: No upgrade log present (probably fresh install)
Thanks for taking your time to report this issue and help making Ubuntu better.
I was unable to reproduce this issue on my Ubuntu 18.10 system, it installed without issues. Could you please try running `sudo apt update` to refresh the package list before reattempting to run `sudo apt install npm`. If it fails, please add the output from `apt policy npm node-gyp` which will list the available versions of both packages. That might tell us what's wrong.