ubuntu apt:如何解决这个错误? ... "Unable to open temporary cache: Unable to open temporary cache file"
ubuntu apt: how to fix this error? ... "Unable to open temporary cache: Unable to open temporary cache file"
我最近重新安装了 ubuntu 20.04.3,在做了一些设置后,我现在总是在 运行 apt update
时收到以下错误。我一定是不小心删除了某种缓存文件或目录,但我不知道如何诊断或修复它。
任何人都可以建议一种诊断此错误并更正它的方法吗?非常感谢!
# apt update
Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease
Get:4 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Fetched 101 kB in 1s (170 kB/s)
** (appstreamcli:27732): CRITICAL **: 11:23:58.567: Unable to open temporary cache: Unable to open temporary cache file: No such file or directory
没关系! :)
我将 TMP
环境变量设置为 /opt/tmp
,但该目录已被删除。重新创建该目录后,一切正常。
一切皆大欢喜
精益求精!
我最近重新安装了 ubuntu 20.04.3,在做了一些设置后,我现在总是在 运行 apt update
时收到以下错误。我一定是不小心删除了某种缓存文件或目录,但我不知道如何诊断或修复它。
任何人都可以建议一种诊断此错误并更正它的方法吗?非常感谢!
# apt update
Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease
Get:4 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Fetched 101 kB in 1s (170 kB/s)
** (appstreamcli:27732): CRITICAL **: 11:23:58.567: Unable to open temporary cache: Unable to open temporary cache file: No such file or directory
没关系! :)
我将 TMP
环境变量设置为 /opt/tmp
,但该目录已被删除。重新创建该目录后,一切正常。
一切皆大欢喜
精益求精!