Why does apt try to install npm depsite it being provided by nodejs?
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
2
down vote
favorite
I am using nodesource repositories to install nodejs on Ubuntu Xenial and when required to install package npm, apt tries to install the actual npm package. This baffles me, because the installed nodejs package provides npm as a virtual package:
Package: nodejs
Version: 8.11.2-1nodesource1
Architecture: amd64
Maintainer: Chris Lea <chl@nodesource.com>
Installed-Size: 59949
Depends: libc6 (>= 2.7), libgcc1 (>= 1:3.4), libstdc++6 (>= 4.4.0), python-minimal, ca-certificates
Conflicts: nodejs-dev, nodejs-legacy, npm
Replaces: nodejs-dev (<= 0.8.22), nodejs-legacy, npm (<= 1.2.14)
Provides: nodejs-dev, nodejs-legacy, npm
Homepage: https://nodejs.org
Priority: optional
Section: web
Filename: pool/main/n/nodejs/nodejs_8.11.2-1nodesource1_amd64.deb
Size: 12650798
SHA256: d0d334108873d23567df07e120c82796582296702c50c48546def2772badfa0b
SHA1: 301d07117fd6989ff9833b3d5a6218a097d5be18
MD5sum: 0c12a6e18edc15fd11ee9bb1cacbab70
Description: Node.js event-based server-side javascript engine
Node.js is similar in design to and influenced by systems like
Ruby's Event Machine or Python's Twisted.
.
It takes the event model a bit further - it presents the event
loop as a language construct instead of as a library.
.
Node.js is bundled with several useful libraries to handle server tasks :
System, Events, Standard I/O, Modules, Timers, Child Processes, POSIX,
HTTP, Multipart Parsing, TCP, DNS, Assert, Path, URL, Query Strings.
My understanding is that upon apt-get install npm
, the system should state that package npm is already installed, but it tries to install a npm package which conflicts with nodejs. Furhtermore, listing installation candidates with apt-cache policy
does not list the nodesource package as a candidate, which according to my understanding is wrong:
# apt-cache policy npm
npm:
Installed: (none)
Candidate: 3.5.2-0ubuntu4
Version table:
3.5.2-0ubuntu4 500
500 http://de.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
500 http://de.archive.ubuntu.com/ubuntu xenial/universe i386 Packages
1.3.10~dfsg-1 500
500 http://archive.ubuntu.com/ubuntu trusty/universe amd64 Packages
500 http://archive.ubuntu.com/ubuntu trusty/universe i386 Packages
16.04 package-management
add a comment |Â
up vote
2
down vote
favorite
I am using nodesource repositories to install nodejs on Ubuntu Xenial and when required to install package npm, apt tries to install the actual npm package. This baffles me, because the installed nodejs package provides npm as a virtual package:
Package: nodejs
Version: 8.11.2-1nodesource1
Architecture: amd64
Maintainer: Chris Lea <chl@nodesource.com>
Installed-Size: 59949
Depends: libc6 (>= 2.7), libgcc1 (>= 1:3.4), libstdc++6 (>= 4.4.0), python-minimal, ca-certificates
Conflicts: nodejs-dev, nodejs-legacy, npm
Replaces: nodejs-dev (<= 0.8.22), nodejs-legacy, npm (<= 1.2.14)
Provides: nodejs-dev, nodejs-legacy, npm
Homepage: https://nodejs.org
Priority: optional
Section: web
Filename: pool/main/n/nodejs/nodejs_8.11.2-1nodesource1_amd64.deb
Size: 12650798
SHA256: d0d334108873d23567df07e120c82796582296702c50c48546def2772badfa0b
SHA1: 301d07117fd6989ff9833b3d5a6218a097d5be18
MD5sum: 0c12a6e18edc15fd11ee9bb1cacbab70
Description: Node.js event-based server-side javascript engine
Node.js is similar in design to and influenced by systems like
Ruby's Event Machine or Python's Twisted.
.
It takes the event model a bit further - it presents the event
loop as a language construct instead of as a library.
.
Node.js is bundled with several useful libraries to handle server tasks :
System, Events, Standard I/O, Modules, Timers, Child Processes, POSIX,
HTTP, Multipart Parsing, TCP, DNS, Assert, Path, URL, Query Strings.
My understanding is that upon apt-get install npm
, the system should state that package npm is already installed, but it tries to install a npm package which conflicts with nodejs. Furhtermore, listing installation candidates with apt-cache policy
does not list the nodesource package as a candidate, which according to my understanding is wrong:
# apt-cache policy npm
npm:
Installed: (none)
Candidate: 3.5.2-0ubuntu4
Version table:
3.5.2-0ubuntu4 500
500 http://de.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
500 http://de.archive.ubuntu.com/ubuntu xenial/universe i386 Packages
1.3.10~dfsg-1 500
500 http://archive.ubuntu.com/ubuntu trusty/universe amd64 Packages
500 http://archive.ubuntu.com/ubuntu trusty/universe i386 Packages
16.04 package-management
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I am using nodesource repositories to install nodejs on Ubuntu Xenial and when required to install package npm, apt tries to install the actual npm package. This baffles me, because the installed nodejs package provides npm as a virtual package:
Package: nodejs
Version: 8.11.2-1nodesource1
Architecture: amd64
Maintainer: Chris Lea <chl@nodesource.com>
Installed-Size: 59949
Depends: libc6 (>= 2.7), libgcc1 (>= 1:3.4), libstdc++6 (>= 4.4.0), python-minimal, ca-certificates
Conflicts: nodejs-dev, nodejs-legacy, npm
Replaces: nodejs-dev (<= 0.8.22), nodejs-legacy, npm (<= 1.2.14)
Provides: nodejs-dev, nodejs-legacy, npm
Homepage: https://nodejs.org
Priority: optional
Section: web
Filename: pool/main/n/nodejs/nodejs_8.11.2-1nodesource1_amd64.deb
Size: 12650798
SHA256: d0d334108873d23567df07e120c82796582296702c50c48546def2772badfa0b
SHA1: 301d07117fd6989ff9833b3d5a6218a097d5be18
MD5sum: 0c12a6e18edc15fd11ee9bb1cacbab70
Description: Node.js event-based server-side javascript engine
Node.js is similar in design to and influenced by systems like
Ruby's Event Machine or Python's Twisted.
.
It takes the event model a bit further - it presents the event
loop as a language construct instead of as a library.
.
Node.js is bundled with several useful libraries to handle server tasks :
System, Events, Standard I/O, Modules, Timers, Child Processes, POSIX,
HTTP, Multipart Parsing, TCP, DNS, Assert, Path, URL, Query Strings.
My understanding is that upon apt-get install npm
, the system should state that package npm is already installed, but it tries to install a npm package which conflicts with nodejs. Furhtermore, listing installation candidates with apt-cache policy
does not list the nodesource package as a candidate, which according to my understanding is wrong:
# apt-cache policy npm
npm:
Installed: (none)
Candidate: 3.5.2-0ubuntu4
Version table:
3.5.2-0ubuntu4 500
500 http://de.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
500 http://de.archive.ubuntu.com/ubuntu xenial/universe i386 Packages
1.3.10~dfsg-1 500
500 http://archive.ubuntu.com/ubuntu trusty/universe amd64 Packages
500 http://archive.ubuntu.com/ubuntu trusty/universe i386 Packages
16.04 package-management
I am using nodesource repositories to install nodejs on Ubuntu Xenial and when required to install package npm, apt tries to install the actual npm package. This baffles me, because the installed nodejs package provides npm as a virtual package:
Package: nodejs
Version: 8.11.2-1nodesource1
Architecture: amd64
Maintainer: Chris Lea <chl@nodesource.com>
Installed-Size: 59949
Depends: libc6 (>= 2.7), libgcc1 (>= 1:3.4), libstdc++6 (>= 4.4.0), python-minimal, ca-certificates
Conflicts: nodejs-dev, nodejs-legacy, npm
Replaces: nodejs-dev (<= 0.8.22), nodejs-legacy, npm (<= 1.2.14)
Provides: nodejs-dev, nodejs-legacy, npm
Homepage: https://nodejs.org
Priority: optional
Section: web
Filename: pool/main/n/nodejs/nodejs_8.11.2-1nodesource1_amd64.deb
Size: 12650798
SHA256: d0d334108873d23567df07e120c82796582296702c50c48546def2772badfa0b
SHA1: 301d07117fd6989ff9833b3d5a6218a097d5be18
MD5sum: 0c12a6e18edc15fd11ee9bb1cacbab70
Description: Node.js event-based server-side javascript engine
Node.js is similar in design to and influenced by systems like
Ruby's Event Machine or Python's Twisted.
.
It takes the event model a bit further - it presents the event
loop as a language construct instead of as a library.
.
Node.js is bundled with several useful libraries to handle server tasks :
System, Events, Standard I/O, Modules, Timers, Child Processes, POSIX,
HTTP, Multipart Parsing, TCP, DNS, Assert, Path, URL, Query Strings.
My understanding is that upon apt-get install npm
, the system should state that package npm is already installed, but it tries to install a npm package which conflicts with nodejs. Furhtermore, listing installation candidates with apt-cache policy
does not list the nodesource package as a candidate, which according to my understanding is wrong:
# apt-cache policy npm
npm:
Installed: (none)
Candidate: 3.5.2-0ubuntu4
Version table:
3.5.2-0ubuntu4 500
500 http://de.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
500 http://de.archive.ubuntu.com/ubuntu xenial/universe i386 Packages
1.3.10~dfsg-1 500
500 http://archive.ubuntu.com/ubuntu trusty/universe amd64 Packages
500 http://archive.ubuntu.com/ubuntu trusty/universe i386 Packages
16.04 package-management
edited May 18 at 8:13
![](https://i.stack.imgur.com/lbplL.jpg?s=32&g=1)
![](https://i.stack.imgur.com/lbplL.jpg?s=32&g=1)
Graham
2,00561325
2,00561325
asked May 18 at 8:03
![](https://lh3.googleusercontent.com/-XdUIqdMkCWA/AAAAAAAAAAI/AAAAAAAAAAA/4252rscbv5M/photo.jpg?sz=32)
![](https://lh3.googleusercontent.com/-XdUIqdMkCWA/AAAAAAAAAAI/AAAAAAAAAAA/4252rscbv5M/photo.jpg?sz=32)
Arthur le Perroquet
112
112
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1037681%2fwhy-does-apt-try-to-install-npm-depsite-it-being-provided-by-nodejs%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password