2023-05-08 Troubleshoot Docker内执行 apt-get update 报错:Couldn't create temporary file /tmp/apt.conf. 123456789101112131415161718192021apt-get updateGet:1 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease [1581 B]Err:1 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease Couldn't create temporary file /tmp/apt.conf.u0DRga for passing config to apt-keyGet:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]Get:2 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]Err:2 http://archive.ubuntu.com/ubuntu bionic InRelease Couldn't create temporary file /tmp/apt.conf.xzh9cs for passing config to apt-keyErr:4 http://security.ubuntu.com/ubuntu bionic-security InRelease Couldn't create temporary file /tmp/apt.conf.N2fnMq for passing config to apt-keyGet:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease Couldn't create temporary file /tmp/apt.conf.JreIfD for passing config to apt-keyGet:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [83.3 kB]Err:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease Couldn't create temporary file /tmp/apt.conf.QsK4tP for passing config to apt-keyReading package lists... DoneW: GPG error: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease: Couldn't create temporary file /tmp/apt.conf.u0DR ga for passing config to apt-keyE: The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease' is not signed.N: Updating from such a repository can't be done securely, and is therefore disabled by default..... 解决方法12chmod 1777 /tmpapt-get update 前一篇 使用阿里云的开源镜像站解决CentOS6/7/8上面的过期源安装问题 后一篇 使用mmdetection mmcv报错:ImportError: libGL.so.1: cannot open shared object file: No such file or directory