错误信息:
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Err:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Couldn't create temporary file /tmp/apt.conf.CtZH9J for passing config to apt-key
1- 执行 apt-get update,报错如下:
2- 修改/tmp文件读写权限:
chmod 777 /tmp
3- 重新执行: apt-get update
4- 安装ssh: apt-get install ssh
5- 启动ssh: service ssh start