MacOS 软件已更新 [26959]:无法检索私有缓存目录路径:5

MacOS softwareupdated[26959]: Couldn't retrieve private cache directory path: 5

我的 MacOS App Store 无法正常工作。无法从商店安装更新或安装应用程序。

我怀疑它与以下错误消息有关,该错误消息在 /var/log/install.log 中重复了几次。

2019-03-26 21:26:08+01 My-MBP softwareupdated[27061]: softwareupdated: Starting with build 10.13.6 (17G65)
2019-03-26 21:26:08+01 My-MBP softwareupdated[27061]: Couldn't retrieve private cache directory path: 5.

在我看来也有迹象表明,cli softwareupdate 也不起作用。 mas (https://formulae.brew.sh/formula/mas#default) 相同。

所有程序:App Store、softwareupdate、mas 的行为基本相同。开始后什么都没有发生。 例如:

应用商店

启动。当我单击 updates 图标时,"rainbow spinner" 出现并且应用程序冻结。当我尝试安装应用程序时也是如此。只有执行 killall "App Store"

才能关闭 App Store

mas

mas install 425424353
==> Downloading The Unarchiver
# Nothing happens

软件更新:

softwareupdate -l
Software Update Tool
Finding available software
# Nothing happens

有人给我提示吗,我该如何解决这个缺少私有缓存目录的问题?

一些信息:

检查 /var/log/system.log 我发现了以下行:

Aug 11 09:50:33 My-MBP softwareupdated[516]: libcoreservices: _dirhelper: 666: mkdir: path=/var/folders/zz/zyxvpxvq6csfxvn_n00000s0000068/C/softwareupdated/ modes[2]=0700: Permission denied

我做了一个 chmod -R 777 /var/folders/zz,现在可以了。我可以更新我的系统。此外 chmod ... 修复了 我的 mac.