[Community Announcements] 关于部分用户反馈升级20.2失败的临时解决办法
Tofloor
poster avatar
deepin-mq
deepin
2021-04-02 06:15
Author

经过研发紧急排查,已对升级20.2失败问题定位,验证临时解决方案。

碰到此问题的用户,可以按照以下方法,进行升级操作。如下:

 

重新开机后打开【终端】依次输入命令:

1、ps -ef | grep "deepin-anything" | grep -v grep | awk '{print $2}' | sudo  xargs -I {} kill -9 {} | sudo rmmod vfs_monitor

2、sudo dpkg --configure -a

3、sudo apt --fix-broken install

4、通过控制中心或终端(sudo apt update && sudo apt dist-upgrade)正常升级

 

还未升级的用户可以直接正常升级。

 

 

Reply Favorite View the author
Comments
poster avatar
smallodd
2021-04-03 01:30
smallodd@smallodd-PC:~/Desktop$ sudo dpkg --configure -a dpkg: 依赖关系问题使得 libpam-systemd:amd64 的配置工作不能继续: libpam-systemd:amd64 依赖于 systemd (= 241.10-1+dde);然而: 软件包 systemd 尚未配置。 dpkg: 处理软件包 libpam-systemd:amd64 (--configure)时出错: 依赖关系问题 - 仍未被配置 在处理时有错误发生: libpam-systemd:amd64 这个错误是咋解决的,各位老板有遇到吗
poster avatar
shooke
2021-04-02 22:16
要确保上面的命令执行成功,一定要使用5.11内核登录。如果是5.7到第2步还会卡死
poster avatar
linflytang
2021-04-02 18:55
要是官方的不能成功,推荐83楼,先升级kernel,重启用新kernel,再dist-update
poster avatar
WangZhongyun
2021-04-02 18:47
按照论坛大佬的教程,如果更新时遇到配置systemd导致内核崩溃(表现为图形界面卡死),可以强制重启后,终端执行 sudo apt-mark hold systemd,再次重启后终端执行 sudo apt install linux-image-deepin-stable-amd64 linux-headers-deepin-stable-amd64,再次重启从这5.11新内核启动后,终端执行sudo apt-mark unhold systemd,再执行sudo apt --fix-broken install,在sudo apt update后即可正常更新。 本人两系统实践更新完成后回复。
poster avatar
loaden
2021-04-02 16:06
apt-get推荐用apt代替,不要再用过时的命令。
All Replies
...1 / 13
To page
bluesky_
deepin
2021-04-02 06:25
#1
It has been deleted!
deepinwdy0213
deepin
2021-04-02 06:26
#2
bluesky_ It has been deleted!

控制中心能打开吗?

Reply View the author
caoyuUU
deepin
2021-04-02 06:31
#3

~$ sudo rm /var/lib/dpkg/updates

rm: 无法删除'/var/lib/dpkg/updates': 是一个目录

 

Reply View the author
enforcee
deepin
2021-04-02 06:35
#4

各位太慌张了

给出的解决方法也是漏洞百出呀

Reply View the author
yanjj
deepin
2021-04-02 06:36
#5

一使用apt 就卡死 !   我ubuntu 都下好了。。。

Reply View the author
zeno
deepin
2021-04-02 06:36
#6

仓库更新了sudo apt-get install -f 之前建议先sudo apt update 一下获取最新的内容

Reply View the author
deepinuser17
deepin
2021-04-02 06:38
#7
caoyuUU

~$ sudo rm /var/lib/dpkg/updates

rm: 无法删除'/var/lib/dpkg/updates': 是一个目录

 

加"-rf".

 

sudo rm -rf /var/lib/dpkg/updates
Reply View the author
deepinuser17
deepin
2021-04-02 06:39
#8

升级时用dist-upgrade是关键.  用"apt upgrade"不能正确安装所有升级软件包.

 

sudo apt-get dist-upgrade -y
Reply View the author
caoyuUU
deepin
2021-04-02 06:40
#9
deepinuser17

加"-rf".

 

sudo rm -rf /var/lib/dpkg/updates

 

~$ sudo apt-mark hold systemd

dpkg: 错误: 无法扫描更新目录 /var/lib/dpkg/updates/ : 没有那个文件或目录

E: 子进程 dpkg --set-selections 返回了一个错误号 (2)

E: 执行 dpkg 失败。您是 root 吗?

Reply View the author
szp1120
deepin
2021-04-02 06:48
#10

删了updates,更新找不到目录,自己建一个,执行命令跟更新之前一样,卡死。

换系统了,deepin就是个笑话,还替换windows?这么多年了,没有哪一次升级不出问题的。

Reply View the author
Comments
mdd3135
2021-04-02 22:15
其实15.xx版挺好的,v20之后就不行了
观摩
deepin
2021-04-02 06:48
#11

sudo apt install -f
E: dpkg 被中断,您必须手工运行 ‘sudo dpkg --configure -a’ 解决此问题。

 

sudo dpkg --configure -a
dpkg: 依赖关系问题使得 libpam-systemd:amd64 的配置工作不能继续:
 libpam-systemd:amd64 依赖于 systemd (= 241.10-1+dde);然而:
  软件包 systemd 尚未配置。

dpkg: 处理软件包 libpam-systemd:amd64 (--configure)时出错:
 依赖关系问题 - 仍未被配置
/usr/share/deepin-app-store/dpkg-post-hook:行11: 警告:命令替换:忽略输入中的 null 字节
在处理时有错误发生:
 libpam-systemd:amd64

Reply View the author
yanjj
deepin
2021-04-02 06:50
#12

上面的命令运行到sudo apt-get dist-upgrade -y

 直接卡死

 

Reply View the author
wzwdwjj
deepin
2021-04-02 06:52
#13

完犊子了,按照这个方法升级之后进不去桌面环境了,只能进命令行

Reply View the author
wzwdwjj
deepin
2021-04-02 06:55
#14
wzwdwjj

完犊子了,按照这个方法升级之后进不去桌面环境了,只能进命令行

Reply View the author
186******46
deepin
2021-04-02 06:56
#15

Ctrl+Alt+F2

利用tty2,输入以上的命令可以正常使用了

 

Reply View the author
wowson
deepin
2021-04-02 06:57
#16

我已经重新系统了

Reply View the author
deepinwdy0213
deepin
2021-04-02 06:58
#17

有没有人的控制中心是可以打开的?

Reply View the author
deepinuser17
deepin
2021-04-02 07:03
#18
deepinwdy0213

有没有人的控制中心是可以打开的?

升级以后, 控制中心打开正常.

Reply View the author
wys99
deepin
2021-04-02 07:03
#19

我是上面的命令运行到sudo apt-get install -f

就直接卡死!还只能断电重启。

Reply View the author
SamLukeYes
deepin
2021-04-02 07:06
#20
deepinwdy0213

有没有人的控制中心是可以打开的?

我的虚拟机可以

Reply View the author
...1 / 13
To page