Couldn‘t create temporary file /tmp/apt.conf.uko4Kd for passing config to apt-key

root@mpc1-normal-es-s0-6d5cf8dd76-xmddp:/etc/apt# apt-get update
Get:1 http://mirrors.aliyun.com/ubuntu bionic InRelease [242 kB]
Err:1 http://mirrors.aliyun.com/ubuntu bionic InRelease
  Couldn't create temporary file /tmp/apt.conf.6J3weW for passing config to apt-key
Get:2 http://mirrors.aliyun.com/ubuntu bionic-security InRelease [88.7 kB]
Err:2 http://mirrors.aliyun.com/ubuntu bionic-security InRelease
  Couldn't create temporary file /tmp/apt.conf.POPz02 for passing config to apt-key
Get:3 http://mirrors.aliyun.com/ubuntu bionic-updates InRelease [88.7 kB]
Err:3 http://mirrors.aliyun.com/ubuntu bionic-updates InRelease
  Couldn't create temporary file /tmp/apt.conf.aRzg14 for passing config to apt-key
Get:4 http://mirrors.aliyun.com/ubuntu bionic-proposed InRelease [242 kB]
Err:4 http://mirrors.aliyun.com/ubuntu bionic-proposed InRelease
  Couldn't create temporary file /tmp/apt.conf.WKEmXc for passing config to apt-key
Get:5 http://mirrors.aliyun.com/ubuntu bionic-backports InRelease [74.6 kB]
Err:5 http://mirrors.aliyun.com/ubuntu bionic-backports InRelease
  Couldn't create temporary file /tmp/apt.conf.uko4Kd for passing config to apt-key
Get:6 https://download.01.org/intel-sgx/sgx_repo/ubuntu bionic InRelease [1065 B]
Err:6 https://download.01.org/intel-sgx/sgx_repo/ubuntu bionic InRelease
  Couldn't create temporary file /tmp/apt.conf.Dd6jgL for passing config to apt-key
Reading package lists... Done
W: GPG error: http://mirrors.aliyun.com/ubuntu bionic InRelease: Couldn't create temporary file /tmp/apt.conf.6J3weW for passing config to apt-key
E: The repository 'http://mirrors.aliyun.com/ubuntu bionic InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://mirrors.aliyun.com/ubuntu bionic-security InRelease: Couldn't create temporary file /tmp/apt.conf.POPz02 for passing config to apt-key
E: The repository 'http://mirrors.aliyun.com/ubuntu bionic-security InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://mirrors.aliyun.com/ubuntu bionic-updates InRelease: Couldn't create temporary file /tmp/apt.conf.aRzg14 for passing config to apt-key
E: The repository 'http://mirrors.aliyun.com/ubuntu bionic-updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://mirrors.aliyun.com/ubuntu bionic-proposed InRelease: Couldn't create temporary file /tmp/apt.conf.WKEmXc for passing config to apt-key
E: The repository 'http://mirrors.aliyun.com/ubuntu bionic-proposed InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://mirrors.aliyun.com/ubuntu bionic-backports InRelease: Couldn't create temporary file /tmp/apt.conf.uko4Kd for passing config to apt-key
E: The repository 'http://mirrors.aliyun.com/ubuntu bionic-backports InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: https://download.01.org/intel-sgx/sgx_repo/ubuntu bionic InRelease: Couldn't create temporary file /tmp/apt.conf.Dd6jgL for passing config to apt-key
E: The repository 'https://download.01.org/intel-sgx/sgx_repo/ubuntu bionic InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

文件夹权限不足

chmod 777 /tmp

参考:
Debug记录】ubuntu中Couldn‘t create temporary file /tmp/apt.conf.xxxx for passing config to apt-key

你可能感兴趣的:(服务器,ubuntu,linux,服务器)