deepin linux an error occurred while applying changes=> xdg-desktop-menu=> no writable system menu directory found解决方案

Deepin linux An error occurred while applying changes: xdg-desktop-menu: No writable system menu directory found解决方案

错误日志

Selecting previously unselected package oneblog4j.
(Reading database ... 264884 files and directories currently installed.)
Preparing to unpack .../bundles/oneblog4j-1.0.3.deb ...
Unpacking oneblog4j (1.0.3) ...
Setting up oneblog4j (1.0.3)/ ...
Adding shortcut to the menu
An error occurred while applying changes:
An error occurred while applying changes: xdg-desktop-menu: No writable system menu directory found.
dpkg: error processing package oneblog4j (--install):
 installed oneblog4j package post-installation script subprocess returned error exit status 3
Errors were encountered while processing:
 oneblog4j

解决方案

sudo mkdir /usr/share/desktop-directories/

PS:安装 deb 无法创建目录问题,直接赋予权限,再打开。

sudo chown -R terwer:terwer /opt/oneblog4j
posted @ 2022-07-12 09:35  灯塔下的守望者  阅读(630)  评论(0编辑  收藏  举报