error内容如下
GPG error: http://archive.ubuntu.com/ubuntu focal-updates InRelease: Couldn't create temporary file /tmp/apt.conf.5Rzx9q for passing config to apt-key
解决方式如下1
chmod 1777 /tmp
之后成功
解释一下
- 1: 这里的
1
是粘滞位(Sticky Bit),确保只有文件的所有者或 root 用户可以删除或修改文件,即使其他用户有写权限。 - 777: 表示所有用户都可以读、写、执行。
- rwx: 拥有者的权限。
- rwx: 组用户的权限。
- rwx: 其他用户的权限。
https://github.com/threefoldtech/apps/issues/1 ↩︎