[Calendar] 更新软件时日历应用出错 V20.8
Tofloor
poster avatar
llh-deepin
deepin
2023-01-13 05:31
Author

问题/建议描述

 更新软件时日历应用出错

问题如何重现

 使用sudo apt upgrade更新时,出现错误

正在设置 dde-calendar (5.9.14-1) ...
fish: Unsupported use of '='. To run 'systemctl' with a modified environment, please use 'env XDG_RUNTIME_DIR=/run/user/1000 systemctl…'
XDG_RUNTIME_DIR="/run/user/1000" systemctl --user is-active com.dde.calendarserver.calendar.timer
^
fish: Unsupported use of '='. To run 'systemctl' with a modified environment, please use 'env XDG_RUNTIME_DIR=/run/user/1000 systemctl…'
XDG_RUNTIME_DIR="/run/user/1000" systemctl --user enable com.dde.calendarserver.calendar.timer
^
fish: Unsupported use of '='. To run 'systemctl' with a modified environment, please use 'env XDG_RUNTIME_DIR=/run/user/1000 systemctl…'
XDG_RUNTIME_DIR="/run/user/1000" systemctl --user start com.dde.calendarserver.calendar.timer
^
dpkg: 处理软件包 dde-calendar (--configure)时出错:
 已安装 dde-calendar 软件包 post-installation 脚本 子进程返回错误状态 127
在处理时有错误发生:
 dde-calendar
E: Sub-process /usr/bin/dpkg returned an error code (1)

问题重现频率

 

Reply Favorite View the author
All Replies
miaoaaa
deepin
2023-01-13 05:46
#1

你先 bash

然后执行试试

Reply View the author
llh-deepin
deepin
2023-01-13 06:03
#2
miaoaaa

你先 bash

然后执行试试

也是一样的

Reply View the author
吉吉如律令
deepin
2023-01-13 18:46
#3

应该还是fish的原因,这里还有个和你相同问题的帖子

fish的语法和bash不同,在不支持fish语法的系统上最好还是别用它了,如果想要自动补全代码这些功能可以用兼容bash的zsh,安装对应的插件即可,配置文件可以抄一下大佬们的配置或者用oh-my-zsh简单配置一下

Reply View the author
吉吉如律令
deepin
2023-01-13 18:51
#4

我在github的一个讨论区看到了一种解决方法,但我没太看懂,似乎是在fish的配置文件中加一句export语句,但我不清楚具体是要加什么

Reply View the author
llh-deepin
deepin
2023-01-13 20:22
#5
吉吉如律令

应该还是fish的原因,这里还有个和你相同问题的帖子

fish的语法和bash不同,在不支持fish语法的系统上最好还是别用它了,如果想要自动补全代码这些功能可以用兼容bash的zsh,安装对应的插件即可,配置文件可以抄一下大佬们的配置或者用oh-my-zsh简单配置一下

好的,谢谢

Reply View the author
z***i@gmail.com
deepin
2023-08-28 23:10
#6
It has been deleted!