mktemp: failed to create file via template ‘/tmp/setup.sh.XXXXXXXXXX

在運行終端的時候出現:

mktemp: failed to create file via template ‘/tmp/setup.sh.XXXXXXXXXX’: No such file or directory
Could not create temporary file: 
mktemp: failed to create file via template ‘/tmp/setup.sh.XXXXXXXXXX’: No such file or directory
Could not create temporary file: 
mktemp: failed to create file via template ‘/tmp/setup.sh.XXXXXXXXXX’: No such file or directory
Could not create temporary file: 

解決辦法:
可能是系統的tmp目錄被刪除

sudo mkdir tmp
sudo dpkg --configure -a
sudo chmod 777 /tmp
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章