[Internal testing communication] Deepin 23能升级到deepin 25吗?
Tofloor
poster avatar
moonbird
deepin
2026-10-07 08:32
Author

能保留原数据和应用直接升级吗?谢谢!

Reply Favorite View the author
All Replies
avatar
LiuYongzhang
deepin
2026-10-07 09:15
#1
# 最好重新安装,不建议23升25.
 
# **如果要折腾重要的事情说三遍!!!备份重要数据!!!**
 
# 如果要折腾重要的事情说三遍!!!备份重要数据!!!
 
# 如果要折腾重要的事情说三遍!!!备份重要数据!!!
 
一:替换软件源文件
 
在终端完整复制下面命令替换软件源为25的
 
sudo bash -c '
set -e
 
cat > /etc/apt/sources.list <<'"'"'EOF'"'"'
 
## Generated by deepin-installer
 
deb https://community-packages.deepin.com/beige/ crimson main commercial community
#deb-src https://community-packages.deepin.com/beige/ crimson main commercial community
EOF
 
cat > /etc/apt/sources.list.d/driver.list <<'"'"'EOF'"'"'
 
# Written by dde-printer
 
deb https://community-packages.deepin.com/driver-25/ snipe non-free
EOF
 
cat > /etc/apt/sources.list.d/deepin-unstable-source.list <<'"'"'EOF'"'"'
 
## Generated by deepin-unstable-source.
 
deb https://proposed-packages.deepin.com/beige-testing/ unstable/crimson main commercial community
EOF
 
cat > /etc/apt/sources.list.d/appstore.list <<'"'"'EOF'"'"'
 
# Written by deepin-home-appstore-client
 
deb https://com-store-packages.uniontech.com/appstore-V25 crimson appstore
EOF
 
echo "已写入:"
ls -l /etc/apt/sources.list /etc/apt/sources.list.d/driver.list /etc/apt/sources.list.d/deepin-unstable-source.list /etc/apt/sources.list.d/appstore.list
'
 
二:更新系统
sudo apt update && sudo apt dist-upgrade -y  deepin-desktop-environment-core deepin-desktop-environment-extras deepin-desktop-environment-base deepin-desktop-environment-cli
Reply View the author
avatar
moonbird
deepin
2026-10-07 09:55
#2

谢谢回复!我还是重装吧。

Reply View the author
avatar
zeyark
deepin
2026-10-07 14:38
#3

一、换25源:
#改25的源,/etc/apt/sources.list里注释掉23的,添加25的如下
deb https://community-packages.deepin.com/deepin/beige/ crimson main commercial community
#/etc/apt/sources.list.d/driver.list 原来的注释掉,添加25的,
deb https://community-packages.deepin.com/driver-25/ snipe non-free
#/etc/apt/sources.list.d/appstore.list 原来的注释掉,添加25的
deb https://com-store-packages.uniontech.com/appstore-V25 crimson appstore

sudo apt full-update && sudo apt dist-upgrade -y
reboot
二、##进系统如果出现提示秘钥环,解决办法(2选1就好,推荐方式B)
方式 A:记得密钥环密码 → 装图形工具 seahorse 修改密钥环密码(设为登录密码或清空),以后不再提示。sudo apt install seahorse
装好后在"密码和密钥"中:右键"登录"密钥环 → 更改密码 → 输入旧密码 → 设为你的登录密码(或留空)。
方式 B:不记得密码 → 删除密钥环文件重建(简单彻底):
killall gnome-keyring-daemonrm ~/.local/share/keyrings/login.keyring ~/.local/share/keyrings/user.keystore
重新登录后系统自动创建空密钥环,不再提示。注意:会丢失已保存的 WiFi/应用密码。
三、##如果控制中心闪退,就先移除 deepin-security-loader-exec 的 cap_setgid 能力:sudo setcap -r /usr/bin/deepin-security-loader-exec
然后sudo apt full-update && sudo apt dist-upgrade -y deepin-desktop-environment-core deepin-desktop-environment-extras deepin-desktop-environment-base deepin-desktop-environment-cli
reboot后
四、进入系统后会弹出一个输入秘码的弹窗,这是因为前面控制中心闪退,就先移除了 deepin-security-loader-exec 的 cap_setgid 能力:(这个命令)sudo setcap -r /usr/bin/deepin-security-loader-exec
执行恢复命令,将原来"免弹窗授权"机制改为走 polkit 授权:
sudo setcap cap_setgid=ep /usr/bin/deepin-security-loader-exec

23升级25完成,没有暗病了。已升级实测,正常,BUG坑都踩完了,照着做就好。

Reply View the author
avatar
Linux初学者
deepin
2026-10-08 08:30
#4

肯定可以升级,我家里台式机,原来装的是V23,V25出来后,本来是格掉重新装的25,结果进入系统后很不稳定,于是格了25,重新装23后升级到25的,目前用起来很稳定

Reply View the author
avatar
𰻞𰻝面
deepin
2026-10-08 08:41
#5

可以升级,但可能有暗病,不建议这么做

Reply View the author
avatar
LEARCAT
deepin
2026-10-08 12:27
#6

普通升级尚且可能有问题,这种就不要幻想直接重装最保险😂

Reply View the author