Skip to content

Instantly share code, notes, and snippets.

@vbabiy
Last active December 22, 2015 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vbabiy/6504413 to your computer and use it in GitHub Desktop.
Save vbabiy/6504413 to your computer and use it in GitHub Desktop.
nodejs:
pkg.installed:
- pkgs:
- nodejs: '0.10.18-1chl1~precise1'
- npm
root@dev:~# apt-cache policy nodejs
nodejs:
Installed: (none)
Candidate: 0.10.18-1chl1~precise1
Version table:
0.10.18-1chl1~precise1 0
500 http://ppa.launchpad.net/chris-lea/node.js/ubuntu/ precise/main amd64 Packages
100 /var/lib/dpkg/status
0.6.12~dfsg1-1ubuntu1 0
500 http://us.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
----------
State: - pkg
Name: nodejs
Function: installed
Result: False
Comment: The following packages failed to install/update: npm, nodejs>=0.10.18-1chl1~precise1.
Changes:
----------
State: - npm
Name: less
Function: installed
Result: False
Comment: One or more requisite failed
Changes:
[ERROR ] stderr: E: Unable to locate package nodejs=>
[INFO ] Executing command "dpkg-query --showformat='${Status} ${Package} ${Version} ${Architecture}\n' -W" in directory '/root'
[INFO ] Executing command 'grep-available -F Provides -s Package,Provides -e "^.+$"' in directory '/root'
[ERROR ] No changes made for nodejs
root@downpour-dev:~# dpkg-query --showformat='${Status} ${Package} ${Version} ${Architecture}\n' -W | grep node
install ok installed node-node-uuid 1.2.0~20110510-2 all
deinstall ok config-files nodejs 0.10.18-1chl1~precise1 amd64
deinstall ok config-files nodejs-dev 0.6.12~dfsg1-1ubuntu1 amd64
nodejs:
pkg.installed:
- version: '0.10.18-1chl1~precise1'
npm:
pkg.installed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment