Linux报错:subprocess installed post-installation script returned error exit status 3

2021-12-07 15:41:08 浏览数 (1)

报错

  • 中文版
代码语言:javascript复制
> sudo apt-get upgrade
...
Adding shortcut to the menu
xdg-desktop-menu: No writable system menu directory found.
dpkg: 处理软件包 redisplus (--configure)时出错:
 已安装 redisplus 软件包 post-installation 脚本 子进程返回错误状态 3
在处理时有错误发生:
 redisplus
E: Sub-process /usr/bin/dpkg returned an error code (1)
  • 英文版
代码语言:javascript复制
> sudo apt-get upgrade
Adding shortcut to the menu
xdg-desktop-menu: No writable system menu directory found.
dpkg: error processing redisplus (--configure):
 subprocess installed post-installation script returned error exit status 3
Errors were encountered while processing:
 redisplus
E: Sub-process /usr/bin/dpkg returned an error code (1)

解决办法

  • 终端执行以下代码
代码语言:javascript复制
sudo mkdir /usr/share/desktop-directories/

0 人点赞