Distributions: Install instructions Error on Debian (Node.js v6.x:)

Created on 3 Sep 2016  路  1Comment  路  Source: nodesource/distributions

Hi,
if i use the install command for on Debian for Node.js v6.x i get an error (unfortunately german).
curl -sL https://deb.nodesource.com/setup_6.x | bash -

sudo curl -sL https://deb.nodesource.com/setup_6.x | bash -

## Installing the NodeSource Node.js v6.x repo...


## Populating apt-get cache...

+ apt-get update
E: Sperrdatei /var/lib/apt/lists/lock konnte nicht ge枚ffnet werden. - open (13: Keine Berechtigung)
E: Das Verzeichnis /var/lib/apt/lists/ kann nicht gesperrt werden.
E: Sperrdatei /var/lib/dpkg/lock konnte nicht ge枚ffnet werden. - open (13: Keine Berechtigung)
E: Sperren des Administrationsverzeichnisses (/var/lib/dpkg/) nicht m枚glich, sind Sie root?
Error executing command, exiting

If i use the Ubuntu command everything is working.
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -

Most helpful comment

Hey @BenRoe,

apt didn't have write access to /var/lib/apt/lists/lock

You are running sudo for curl but not bash

curl -sL https://deb.nodesource.com/setup_6.x | sudo bash - s should fix this

>All comments

Hey @BenRoe,

apt didn't have write access to /var/lib/apt/lists/lock

You are running sudo for curl but not bash

curl -sL https://deb.nodesource.com/setup_6.x | sudo bash - s should fix this

Was this page helpful?
0 / 5 - 0 ratings

Related issues

normangilmore picture normangilmore  路  4Comments

Ignition picture Ignition  路  4Comments

timofey-retailnext picture timofey-retailnext  路  5Comments

maane018 picture maane018  路  5Comments

jtyr picture jtyr  路  4Comments