我想解决本期中描述的同样的问题。
因此,我想执行以下命令:
$ sudo setcap cap_net_bind_service=+ep /home/username/.linuxbrew/bin/node 这就产生了错误:
Failed to set capabilities on file `/home/username/.linuxbrew/bin/node' (Invalid argument)
The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file这是否是因为文件夹名为.linuxbrew而发生的?如果是,我如何修复它?
发布于 2015-10-13 22:50:29
发生这种情况是因为你试图在一个符号链接上运行它。试着运行以下代码:
sudo setcap cap_net_bind_service=+ep $(readlink -f ~username/.linuxbrew/node)https://stackoverflow.com/questions/32789378
复制相似问题