openkylin 2.0 sp1 amd64 peony 相关报错

openkylin 2.0 sp1 amd64 peony 相关报错
2025.7.10

sudo apt update
sudo apt upgrade



正在设置 peony-utils (4.10.0.5-ok2~0523.1) …

更新桌面网格配置
User ‘root’ has no time limits enabled
User ‘root’ has no time limits enabled
User ‘root’ has no time limits enabled
User ‘root’ has no time limits enabled
User ‘root’ has no time limits enabled
User ‘root’ has no time limits enabled

User ‘root’ has no time limits enabled
User ‘root’ has no time limits enabled

touch: 无法 touch ‘/var/spool/lpd/.peony-desktop-grid.conf’: 没有那个文件或目录
chmod: 无法访问 ‘/var/spool/lpd/.peony-desktop-grid.conf’: 没有那个文件或目录
/usr/bin/update-desktop-grid: 行 117: /var/spool/lpd/.peony-desktop-grid.conf: 没有那个文件或目录
chmod: 无法访问 ‘/var/spool/lpd/.peony-desktop-grid.conf’: 没有那个文件或目录
chown: 无法访问 ‘/var/spool/lpd/.peony-desktop-grid.conf’: 没有那个文件或目录
cat: /var/spool/lpd/.peony-desktop-grid.conf: 没有那个文件或目录
User ‘root’ has no time limits enabled


touch: 无法 touch ‘/nonexistent/.peony-desktop-grid.conf’: 没有那个文件或目录
chmod: 无法访问 ‘/nonexistent/.peony-desktop-grid.conf’: 没有那个文件或目录
/usr/bin/update-desktop-grid: 行 117: /nonexistent/.peony-desktop-grid.conf: 没有那个文件或目录
chmod: 无法访问 ‘/nonexistent/.peony-desktop-grid.conf’: 没有那个文件或目录
chown: 无法访问 ‘/nonexistent/.peony-desktop-grid.conf’: 没有那个文件或目录
cat: /nonexistent/.peony-desktop-grid.conf: 没有那个文件或目录
User ‘root’ has no time limits enabled
User ‘root’ has no time limits enabled
User ‘root’ has no time limits enabled

touch: 无法 touch ‘/run/pulse/.peony-desktop-grid.conf’: 没有那个文件或目录

chmod: 无法访问 ‘/run/pulse/.peony-desktop-grid.conf’: 没有那个文件或目录
/usr/bin/update-desktop-grid: 行 117: /run/pulse/.peony-desktop-grid.conf: 没有那个文件或目录

chmod: 无法访问 ‘/run/pulse/.peony-desktop-grid.conf’: 没有那个文件或目录

chown: 无法访问 ‘/run/pulse/.peony-desktop-grid.conf’: 没有那个文件或目录
cat: /run/pulse/.peony-desktop-grid.conf: 没有那个文件或目录

更新 wo 桌面图标配置…
User ‘root’ has no time limits enabled
User ‘root’ has no time limits enabled

touch: 无法 touch ‘/nonexistent/.peony-desktop-grid.conf’: 没有那个文件或目录

chmod: 无法访问 ‘/nonexistent/.peony-desktop-grid.conf’: 没有那个文件或目录
/usr/bin/update-desktop-grid: 行 117: /nonexistent/.peony-desktop-grid.conf: 没有那个文件或目录

chmod: 无法访问 ‘/nonexistent/.peony-desktop-grid.conf’: 没有那个文件或目录

chown: 无法访问 ‘/nonexistent/.peony-desktop-grid.conf’: 没有那个文件或目录

cat: /nonexistent/.peony-desktop-grid.conf: 没有那个文件或目录

看了一下,出问题的程序文件 /usr/bin/update-desktop-grid ,117行

然后又往回看了下第 79 行的 数组取值

home_dir=$(getent passwd $user | cut -d: -f6)

简直是开玩笑,home_dir 数组内有多个数据取值时,有没有 测试过、看过输出?
哪怕是命令后面再补个 sort 排序,再 uniq 去除重复项,也好吧?
示例:

getent passwd | cut -d: -f6 | sort | uniq

现有的代码,在我电脑上,输出是这样的:

/root
/usr/sbin
/bin
/dev
/bin
/usr/games
/var/cache/man
/var/spool/lpd
/var/mail
/var/spool/news
/var/spool/uucp
/bin
/var/www
/var/backups
/var/list
/run/ircd
/nonexistent
/nonexistent
/
/
/usr/lib/dhcpcd
/run/uuidd
/nonexistent
/nonexistent
/var/lib/avahi-autoipd
/
/var/lib/misc
/run/avahi-daemon
/run/speech-dispatcher
/nonexistent
/var/lib/lightdm
/run/pulse
/
/var/lib/colord
/home/wo
/nonexistent

服了。代码 都不用测试?不用审核?

果然解铃还须系铃人,加油!

我早已提过,根本没人管

论坛应该没有人看,gitee提issue会有人跟踪的。