[Freezing/Lagging] deepinV20.1 使用apt-get upgrade时卡死
Tofloor
poster avatar
hidea
deepin
2021-04-03 02:29
Author

我想通过apt-get安装tree,在这之前我先执行了sudo apt-get upgrade(没有使用sudo apt-get update),但是在某一步时突然卡死,当时没有截图,但是记得是在设置systemmd时卡死。

之后我强制重启,想直接运行sudo apt-get install tree,可是提示“dpkg被中断,您必须手工运行sudo dpkg --configure -a”,我执行了 sudo rm /var/lib/dpkg/updates/*,之后再执行sudo apt-get install tree,可是依旧卡死,如图

我应该如何处理?

Reply Favorite View the author
All Replies
enforcee
deepin
2021-04-03 02:37
#1

sudo apt-mark hold systemd

sudo dpkg --configure -a

sudo apt-mark unhold systemd

试试,应该apt就能用了,不过是临时解决办法,楼主还是尽快用任何手段更新到最新版本

Reply View the author
152******14
deepin
2021-04-03 02:40
#2

sudo rm /var/lib/dpkg/updates/*

sudo apt-mark hold systemd

sudo dpkg --configure -a

sudo apt-get install -f

sudo apt-get dist-upgrade -y

sudo apt-mark unhold systemd

(感谢论坛大佬@ arctan提供的解决方法思路)

试试这个

Reply View the author
dp-tiny-driver
deepin
2021-04-03 02:44
#3

置顶帖你都不看的吗,upgrade是升级软件和系统。为了装某个软件要执行的是update,update是更新本地软件仓库信息

Reply View the author
hidea
deepin
2021-04-03 02:47
#4
It has been deleted!
hidea
deepin
2021-04-03 02:51
#5
dp-tiny-driver

置顶帖你都不看的吗,upgrade是升级软件和系统。为了装某个软件要执行的是update,update是更新本地软件仓库信息

发帖时有点紧急,确实没看。

似乎和我的问题一致,可是我在执行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

Reply View the author
deepinuser17
deepin
2021-04-03 18:47
#6

https://bbs.deepin.org/en/post/217934?id=217934&limit=20&offset=8  见166楼

Reply View the author
Ziggy
deepin
2021-04-03 22:21
#7

试试https://bbs.deepin.org/zh/post/217934

Reply View the author