E: Couldn’t create temporary file to work with /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_trusty_Release - mkstemp (2: No such file or directory)
Ign http://ports.ubuntu.com trusty-security/main armhf Packages/DiffIndex
Ign http://ports.ubuntu.com trusty-security/restricted armhf Packages/DiffIndex
Hit http://ports.ubuntu.com trusty Release
W: GPG error: http://ports.ubuntu.com trusty-updates InRelease: Could not execute 'gpgv' to verify signature (is gpgv installed?)
W: GPG error: http://ports.ubuntu.com trusty-security InRelease: Could not execute 'gpgv' to verify signature (is gpgv installed?)
E: Couldn't create temporary file to work with /var/lib/apt/lists/ports.ubuntu.com_ubuntu-ports_dists_trusty_Release - mkstemp (2: No such file or directory)
root@localhost:/#
对于我来说,问题出在了没有/tmp
目录.一般人不会遇到这个问题的,但也记录下来吧.