Research
apt-get error 'Couldn't create temporary file ...'
Shakeratto
2019. 10. 7. 00:13
Error message:
apt-get Couldn't create temporary file to work with /var/lib/apt/lists/ports.ubuntu.com_ ...Couldn't create temporary file to work with /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_xenial_InRelease - mkstemp (2: No such file or directory)
Solution is
sudo apt-get clean
sudo mv /var/lib/apt/lists /trash
sudo mkdir -p /var/lib/apt/lists/partial
sudo apt-get clean
sudo apt-get update