couldn't create temporary file to work with /var... code example
Example: Couldn't create temporary file to work with
sudo apt-get clean
sudo mv /var/lib/apt/lists /tmp
sudo mkdir -p /var/lib/apt/lists/partial
sudo apt-get clean
sudo apt-get update