This issue also affects 18.04.1.

$ lsb_release -ds; cat /proc/version; cat /proc/cmdline
Ubuntu 18.04.1 LTS
Linux version 4.18.0-13-generic (buildd@lcy01-amd64-024) (gcc version 7.3.0 
(Ubuntu 7.3.0-16ubuntu3)) #14~18.04.1-Ubuntu SMP Thu Dec 6 14:09:52 UTC 2018
BOOT_IMAGE=/vmlinuz-4.18.0-13-generic root=/dev/mapper/vg-slash ro


$ apt-cache policy npm node-gyp
npm:
  Installed: (none)
  Candidate: 3.5.2-0ubuntu4
  Version table:
     3.5.2-0ubuntu4 500
        500 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        500 http://de.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
node-gyp:
  Installed: (none)
  Candidate: 3.6.2-1ubuntu1
  Version table:
     3.6.2-1ubuntu1 500
        500 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        500 http://de.archive.ubuntu.com/ubuntu bionic/universe i386 Packages


$ sudo apt-get update -qq && 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.


I do have some third party repos installed, but I don't think they are getting 
in the way (as the apt-cache policy <packagename> outputs above seem to 
confirm). Please find my full "apt-cache policy" output attached.

** Attachment added: "Output of "apt-cache policy""
   
https://bugs.launchpad.net/ubuntu/+source/npm/+bug/1809828/+attachment/5228523/+files/apt-cache_policy.txt

** Changed in: npm (Ubuntu)
       Status: Incomplete => Confirmed

-- 
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

Reply via email to