小编Aci*_*cid的帖子

node.js设置中的apt-get权限错误

我想在ubuntu上安装node.js 7.在运行命令

curl -sL https://deb.nodesource.com/setup_7.x | bash -
Run Code Online (Sandbox Code Playgroud)

要么

sudo curl -sL https://deb.nodesource.com/setup_7.x | bash -
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

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


## Populating apt-get cache...

+ apt-get update
Reading package lists... Done
W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking …
Run Code Online (Sandbox Code Playgroud)

ubuntu apt node.js

2
推荐指数
1
解决办法
1156
查看次数

标签 统计

apt ×1

node.js ×1

ubuntu ×1