[Bug Report] 终端命令异常 update-alternatives Resolved
Tofloor
poster avatar
red13
deepin
2025-07-09 15:20
Author

刚装的 v25.0.1 升级完,上手就遇到错误。。。使用 update-alternatives 添加 java 出现如下报错,报错虽然是 /usr/bin/java.dpkg-tmp 实际是在 /etc/alternatives/java.dpkg-tmp 这个文件 ,正常应该不存在扩展名,目前多出这个扩展名,也无法使用 update-alternatives --config java 进行管理
image.png

Reply Favorite View the author
All Replies
red13
deepin
2025-07-09 22:35
#1

好吧,太久没来这逛了,v25.0.1加了个磐石。找了半天才知道原来有这个东西。

deepin-immutable-writable enable -d /usr

重启一下,,,再使用 update-alternatives --install 就好了,处理完成后再使用

deepin-immutable-writable disable 恢复保护

这种超越root的读写保护,能不能开个专贴详细说说并搞个置顶什么的。。。。

Reply View the author