GPG 错误 tmp目录权限问题

# apt update
获取:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic InRelease [242 kB]
错误:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic InRelease
  Couldn't create temporary file /tmp/apt.conf.uCnv6Y for passing config to apt-key
获取:2 http://mirrors.163.com/ceph/debian-luminous bionic InRelease [8,407 B]
错误:2 http://mirrors.163.com/ceph/debian-luminous bionic InRelease
  Couldn't create temporary file /tmp/apt.conf.wu8xl8 for passing config to apt-key
获取:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-updates InRelease [88.7 kB]
命中:4 http://mirrors.cn99.com/ubuntu bionic InRelease
错误:4 http://mirrors.cn99.com/ubuntu bionic InRelease
  Couldn't create temporary file /tmp/apt.conf.79mB1m for passing config to apt-key
错误:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-updates InRelease
  Couldn't create temporary file /tmp/apt.conf.BqdV96 for passing config to apt-key
获取:5 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-backports InRelease [74.6 kB]
错误:5 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-backports InRelease
  Couldn't create temporary file /tmp/apt.conf.BunMMc for passing config to apt-key
获取:6 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-security InRelease [88.7 kB]
错误:6 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-security InRelease
  Couldn't create temporary file /tmp/apt.conf.qP6IBh for passing config to apt-key
获取:7 http://mirrors.cn99.com/ubuntu bionic-updates InRelease [88.7 kB]
错误:7 http://mirrors.cn99.com/ubuntu bionic-updates InRelease
  Couldn't create temporary file /tmp/apt.conf.8nRwIs for passing config to apt-key
获取:8 http://mirrors.cn99.com/ubuntu bionic-backports InRelease [74.6 kB]
错误:8 http://mirrors.cn99.com/ubuntu bionic-backports InRelease
  Couldn't create temporary file /tmp/apt.conf.JzHc5J for passing config to apt-key
获取:9 http://mirrors.cn99.com/ubuntu bionic-security InRelease [88.7 kB]
错误:9 http://mirrors.cn99.com/ubuntu bionic-security InRelease
  Couldn't create temporary file /tmp/apt.conf.fkD1JU for passing config to apt-key
命中:10 http://ppa.launchpad.net/longsleep/golang-backports/ubuntu bionic InRelease
错误:10 http://ppa.launchpad.net/longsleep/golang-backports/ubuntu bionic InRelease
  Couldn't create temporary file /tmp/apt.conf.Z97NgR for passing config to apt-key
正在读取软件包列表... 完成
W: GPG 错误:https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic InRelease: Couldn't create temporary file /tmp/apt.conf.uCnv6Y for passing config to apt-key
E: 仓库 “https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic InRelease” 没有数字签名。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
W: GPG 错误:http://mirrors.163.com/ceph/debian-luminous bionic InRelease: Couldn't create temporary file /tmp/apt.conf.wu8xl8 for passing config to apt-key
E: 仓库 “http://mirrors.163.com/ceph/debian-luminous bionic InRelease” 没有数字签名。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
W: 校验数字签名时出错。此仓库未被更新,所以仍然使用此前的索引文件。GPG 错误:http://mirrors.cn99.com/ubuntu bionic InRelease: Couldn't create temporary file /tmp/apt.conf.79mB1m for passing config to apt-key
W: GPG 错误:https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-updates InRelease: Couldn't create temporary file /tmp/apt.conf.BqdV96 for passing config to apt-key
E: 仓库 “https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-updates InRelease” 没有数字签名。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
W: GPG 错误:https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-backports InRelease: Couldn't create temporary file /tmp/apt.conf.BunMMc for passing config to apt-key
E: 仓库 “https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-backports InRelease” 没有数字签名。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
W: GPG 错误:https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-security InRelease: Couldn't create temporary file /tmp/apt.conf.qP6IBh for passing config to apt-key
E: 仓库 “https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic-security InRelease” 没有数字签名。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
W: 校验数字签名时出错。此仓库未被更新,所以仍然使用此前的索引文件。GPG 错误:http://mirrors.cn99.com/ubuntu bionic-updates InRelease: Couldn't create temporary file /tmp/apt.conf.8nRwIs for passing config to apt-key
W: 校验数字签名时出错。此仓库未被更新,所以仍然使用此前的索引文件。GPG 错误:http://mirrors.cn99.com/ubuntu bionic-backports InRelease: Couldn't create temporary file /tmp/apt.conf.JzHc5J for passing config to apt-key
W: 校验数字签名时出错。此仓库未被更新,所以仍然使用此前的索引文件。GPG 错误:http://mirrors.cn99.com/ubuntu bionic-security InRelease: Couldn't create temporary file /tmp/apt.conf.fkD1JU for passing config to apt-key
W: 校验数字签名时出错。此仓库未被更新,所以仍然使用此前的索引文件。GPG 错误:http://ppa.launchpad.net/longsleep/golang-backports/ubuntu bionic InRelease: Couldn't create temporary file /tmp/apt.conf.Z97NgR for passing config to apt-key
  • 报错信息
Couldn't create temporary file /tmp/apt.conf.qP6IBh for passing config to apt-key
  • 设置权限
# chmod 777 tmpdir/

参考:

  1. ERROR: Couldn’t create temporary file in /tmp/

你可能感兴趣的:(ubuntu)