【发布时间】:2013-09-17 19:34:44
【问题描述】:
我创建了一个 .deb 包,我正在尝试在不使用任何 sudo/root 权限的情况下部署它。但是,我收到了Permission denied 消息,我不知道dpkg 在做什么以及是什么原因造成的。
运行dpkg -i --force-not-root --root=$HOME/a --log=$HOME/a/log a.deb 返回:
(Reading database ... 0 files and directories currently installed.)
Unpacking tetra-backup (from a.deb) ...
dpkg: error processing a.deb (--install):
unable to open '/home/simon/a/simon_exec.dpkg-new': Permission denied
Errors were encountered while processing:
a.deb
这里是deb的内容($ dpkg --contents a.deb):
drwxrwxr-x simon/simon 0 2013-09-17 14:49 ./
-r--r--r-x simon/simon 5568 2013-09-16 15:46 ./simon_exec
我想知道我需要做什么来解决上述问题并在此类限制下部署内容。如果不可能,我想知道原因和一些替代方案。
【问题讨论】:
-
$HOME/a存在吗?你有权限在那里写吗?