Ubuntu 服务器中遇到问题如下:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package tmux
解决方法如下:
apt-get update
又遇到问题如下:
Get:1 http://mirrors.aliyun.com/ubuntu focal InRelease [265 kB]
Err:1 http://mirrors.aliyun.com/ubuntu focal InRelease
Couldn't create temporary file /tmp/apt.conf.SZpybv for passing config to apt-key
Get:2 http://mirrors.aliyun.com/ubuntu focal-security InRelease [128 kB]
Err:2 http://mirrors.aliyun.com/ubuntu focal-security InRelease
Couldn't create temporary file /tmp/apt.conf.xMHX2y for passing config to apt-key
Get:3 http://mirrors.aliyun.com/ubuntu focal-updates InRelease [128 kB]
Err:3 http://mirrors.aliyun.com/ubuntu focal-updates InRelease
Couldn't create temporary file /tmp/apt.conf.ShEiXD for passing config to apt-key
Get:4 http://mirrors.aliyun.com/ubuntu focal-backports InRelease [128 kB]
Err:4 http://mirrors.aliyun.com/ubuntu focal-backports InRelease
Couldn't create temporary file /tmp/apt.conf.uP86NE for passing config to apt-key
Get:5 http://mirrors.aliyun.com/ubuntu focal-proposed InRelease [277 kB]
Err:5 http://mirrors.aliyun.com/ubuntu focal-proposed InRelease
Couldn't create temporary file /tmp/apt.conf.kMZExN for passing config to apt-key
Get:6 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64 InRelease [1581 B]
Err:6 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64 InRelease
Couldn't create temporary file /tmp/apt.conf.lLDeMT for passing config to apt-key
Reading package lists... Done
W: GPG error: http://mirrors.aliyun.com/ubuntu focal InRelease: Couldn't create temporary file /tmp/apt.conf.SZpybv for passing config to apt-key
E: The repository 'http://mirrors.aliyun.com/ubuntu focal 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 focal-security InRelease: Couldn't create temporary file /tmp/apt.conf.xMHX2y for passing config to apt-key
E: The repository 'http://mirrors.aliyun.com/ubuntu focal-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 focal-updates InRelease: Couldn't create temporary file /tmp/apt.conf.ShEiXD for passing config to apt-key
E: The repository 'http://mirrors.aliyun.com/ubuntu focal-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 focal-backports InRelease: Couldn't create temporary file /tmp/apt.conf.uP86NE for passing config to apt-key
E: The repository 'http://mirrors.aliyun.com/ubuntu focal-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: http://mirrors.aliyun.com/ubuntu focal-proposed InRelease: Couldn't create temporary file /tmp/apt.conf.kMZExN for passing config to apt-key
E: The repository 'http://mirrors.aliyun.com/ubuntu focal-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: https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu2004/x86_64 InRelease: Couldn't create temporary file /tmp/apt.conf.lLDeMT for passing config to apt-key
E: The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 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 1777 /tmp

4万+

被折叠的 条评论
为什么被折叠?



