Error “Couldn’t create temporary file /tmp/apt.conf” when executing apt update

The solution that I found is that you’ll have to change the permission on the folder of /tmp.


chmod 1777 /tmp

You’ll have to sudo it if needed.

 

The normal settings for /tmp are 1777, which ls shows as drwxrwxrwt. That is: wide open, except that only the owner of a file can remove it (that’s what this extra t bit means for a directory).

Original source for this solution is here: https://superuser.com/questions/1496529/sudo-apt-get-update-couldnt-create-temporary-file

 


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *