[System Installation] systemd-sysv不能安装
Tofloor
poster avatar
wenhongxing
deepin
2021-05-02 20:01
Author

我是从20.1升级的20.2,期间曾经失败,后按照社区置顶贴手动安装了内核5.11,升级到20.2.

升级到20.2之后总报告systemd-sysv不能升级,但是使用正常。

导致不能安装其他任何软件,估计以后系统更新不能。

请问如何处理此问题?

Reply Favorite View the author
All Replies
lcw0268
deepin
2021-05-02 23:29
#1
It has been deleted!
wenhongxing
deepin
2021-05-03 23:00
#2
lcw0268 It has been deleted!

那个做过了,做好以后出来的这个sysv。

Reply View the author
Ziggy
deepin
2021-05-04 02:32
#3

具体报错是什么?

Reply View the author
wenhongxing
deepin
2021-05-04 05:23
#4
Ziggy

具体报错是什么?

sudo apt upgrade

正在读取软件包列表... 完成

正在分析软件包的依赖关系树       

正在读取状态信息... 完成       

正在计算更新... 完成

下列软件包将被升级:

  systemd-sysv

升级了 1 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。

有 2 个软件包没有被完全安装或卸载。

需要下载 0 B/100 kB 的归档。

解压缩后会消耗 0 B 的额外空间。

您希望继续执行吗? [Y/n] y

正在设置 systemd (241.10.2-1+dde) ...

Killed

dpkg: 处理软件包 systemd (--configure)时出错:

 已安装 systemd 软件包 post-installation 脚本 子进程返回错误状态 137

在处理时有错误发生:

 systemd

E: Sub-process /usr/bin/dpkg returned an error code (1)

Reply View the author
wenhongxing
deepin
2021-05-04 05:25
#5
Ziggy

具体报错是什么?

~$ sudo apt install gpicview

正在读取软件包列表... 完成

正在分析软件包的依赖关系树       

正在读取状态信息... 完成       

下列【新】软件包将被安装:

  gpicview

升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 1 个软件包未被升级。

有 2 个软件包没有被完全安装或卸载。

需要下载 141 kB 的归档。

解压缩后会消耗 655 kB 的额外空间。

获取:1 https://community-packages.deepin.com/deepin apricot/main amd64 gpicview amd64 0.2.5-2+b1 [141 kB]

已下载 141 kB,耗时 1秒 (235 kB/s)

正在选中未选择的软件包 gpicview。

(正在读取数据库 ... 系统当前共安装有 286938 个文件和目录。)

准备解压 .../gpicview_0.2.5-2+b1_amd64.deb  ...

正在解压 gpicview (0.2.5-2+b1) ...

Sending data...

正在设置 gpicview (0.2.5-2+b1) ...

正在设置 systemd (241.10.2-1+dde) ...

rmmod: ERROR: Module vfs_monitor is in use

dpkg: 处理软件包 systemd (--configure)时出错:

 已安装 systemd 软件包 post-installation 脚本 子进程返回错误状态 1

dpkg: 依赖关系问题使得 libpam-systemd:amd64 的配置工作不能继续:

 libpam-systemd:amd64 依赖于 systemd (= 241.10.2-1+dde);然而:

  软件包 systemd 尚未配置。

 

dpkg: 处理软件包 libpam-systemd:amd64 (--configure)时出错:

 依赖关系问题 - 仍未被配置

正在处理用于 desktop-file-utils (0.23-4) 的触发器 ...

正在处理用于 mime-support (3.62) 的触发器 ...

正在处理用于 hicolor-icon-theme (0.17-2) 的触发器 ...

正在处理用于 lastore-daemon (5.2.6-1) 的触发器 ...

正在处理用于 man-db (2.8.5-2) 的触发器 ...

正在处理用于 bamfdaemon (0.5.4.1-1+eagle) 的触发器 ...

Rebuilding /usr/share/applications/bamf-2.index...

在处理时有错误发生:

 systemd

 libpam-systemd:amd64

E: Sub-process /usr/bin/dpkg returned an error code (1)

Reply View the author
wenhongxing
deepin
2021-05-04 05:27
#6
wenhongxing

sudo apt upgrade

正在读取软件包列表... 完成

正在分析软件包的依赖关系树       

正在读取状态信息... 完成       

正在计算更新... 完成

下列软件包将被升级:

  systemd-sysv

升级了 1 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。

有 2 个软件包没有被完全安装或卸载。

需要下载 0 B/100 kB 的归档。

解压缩后会消耗 0 B 的额外空间。

您希望继续执行吗? [Y/n] y

正在设置 systemd (241.10.2-1+dde) ...

Killed

dpkg: 处理软件包 systemd (--configure)时出错:

 已安装 systemd 软件包 post-installation 脚本 子进程返回错误状态 137

在处理时有错误发生:

 systemd

E: Sub-process /usr/bin/dpkg returned an error code (1)

sorry,看来是能安装使用新软件但是报了个sysv的错。

Reply View the author
lcw0268
deepin
2021-05-04 10:09
#7
It has been deleted!
wenhongxing
deepin
2021-05-05 01:29
#8
lcw0268 It has been deleted!

连续运行两次sudo apt install -f就好了,

真奇怪呀。

第一次sudo没root成?

Reply View the author
wenhongxing
deepin
2021-05-05 01:29
#9
lcw0268 It has been deleted!

多谢多谢。

Reply View the author
lcw0268
deepin
2021-05-05 03:35
#10
It has been deleted!