[App Sharing] deepin 25命令行更新工具发布:无需关闭磐石
Tofloor
poster avatar
神末shenmo
deepin
Spark-App
2025-02-18 12:02
Author

众所周知,在 deepin 25 磐石的加持下,sudo apt full-upgrade 无法使用了,只能用控制中心的图形化更新

但是——apt install 还是可以用的

因此,只要获取更新列表,然后转给apt install 安装,就可以实现 upgrade 的效果

依此原理,我修改了GXDE OS的更新器,让他适配了deepin 25,让deepin 25再次可以用命令行更新

c8044534b007e3c98d6354085e941a4a.jpg

使用方法:

  1. 下载更新器并解压

更新器.zip

  1. 双击安装 transhell

    图片.png

  2. 双击安装 gxde-app-upgrader deepin25专版

    图片.png

  3. 在终端中输入 sudo gxde-app-upgrader

即可进行升级

注意事项

  • 因 deepin 25 不支持 garma,更新器使用了zenity作为后备方案。当可更新软件包较多的时候,若在列表加载完成前点击确认,可能导致传入错误的参数导致更新失败,所以请务必耐心等待列表加载完成后再点击确认更新
  • 此工具同样适用于其他使用apt/dpkg组合的发行,如deepin 20/23,Ubuntu,Debian,openKylin等
Reply Favorite View the author
All Replies
2 / 2
To page
我只是来看看
deepin
2025-03-08 16:19
#21

目前这个方法不能使用了,这是错误日志

Note: Immutable system takes over this operation ...
Preparing immutable build environment...

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
dde-desktop : Depends: libdde-shell (>= 1.99.21) but 1.99.19 is to be installed
deepin-app-store : Depends: libgio-qt0 (>= 0.0.14) but it is not installable
libgio-qt6-0 : Conflicts: libgio-qt but 0.0.14 is to be installed
E: Unable to correct problems, you have held broken packages.
Error: failed to call exec command: failed to build with cumulative mode: failed to execute function: failed to prepare Debian packages: failed to execute command: unmet dependencies

Reply View the author
X
deepin
2025-03-08 20:33
#22

Note: Immutable system takes over this operation ...
Preparing immutable build environment...

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
dde-desktop : Depends: libdde-shell (>= 1.99.21) but 1.99.19 is to be installed
deepin-app-store : Depends: libgio-qt0 (>= 0.0.14) but it is not installable
libgio-qt6-0 : Conflicts: libgio-qt but 0.0.14 is to be installed
E: Unable to correct problems, you have held broken packages.
Error: failed to call exec command: failed to build with cumulative mode: failed to execute function: failed to prepare Debian packages: failed to execute command: unmet dependencies

Reply View the author
神末shenmo
deepin
Spark-App
2025-03-08 20:53
#23
我只是来看看

目前这个方法不能使用了,这是错误日志

Note: Immutable system takes over this operation ...
Preparing immutable build environment...

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
dde-desktop : Depends: libdde-shell (>= 1.99.21) but 1.99.19 is to be installed
deepin-app-store : Depends: libgio-qt0 (>= 0.0.14) but it is not installable
libgio-qt6-0 : Conflicts: libgio-qt but 0.0.14 is to be installed
E: Unable to correct problems, you have held broken packages.
Error: failed to call exec command: failed to build with cumulative mode: failed to execute function: failed to prepare Debian packages: failed to execute command: unmet dependencies

这是因为deepin的源爆炸了,依赖出问题了,和工具无关

Reply View the author
大智贤宇
deepin
2025-03-09 12:07
#24

这得20个外内更才生效,而且更新后桌面黑屏,运行sudo apt install dde-desktop,又正常了。

Reply View the author
leego
deepin
2025-03-10 17:21
#25

不好使了,弹窗前面两行有类似乱码信息,点击“确定”后,直接显示升级完毕,但实际没有更新动作

sudo gxde-app-upgrader 
Loading transhell from /usr/libexec/gxde-app-upgrader/transhell/gxde-do-upgrade.sh_en_US.transhell ...
Loading transhell from /usr/libexec/gxde-app-upgrader/transhell/gxde-do-upgrade.sh_zh_CN.transhell ...
-----------------------------------------------------------------------------

(zenity:6969): Gtk-WARNING **: 17:15:12.553: Unable to acquire the address of the accessibility bus: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files. If you are attempting to run GTK without a11y support, GTK_A11Y should be set to 'none'.
ln: failed to create symbolic link '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/appstore.list': Read-only file system
ln: failed to create symbolic link '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/driver.list': Read-only file system
ln: failed to create symbolic link '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sublime-text.list': Read-only file system
##O=#   #                                                                                                                                     Warning: Failed to open the file /opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list: Read-only file system
curl: (23) client returned ERROR on write of 173 bytes

####################################################################################################################################### 100.0%

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

dpkg-query: 错误: --listfiles 需要一个有效的软件包名。而 [INFO]: 不是: 在说明符 '[INFO]:' 中包含非法软件包名: 必须以字母或数字开头

使用 --help 查看关于查询软件包的帮助。
dpkg-query: 错误: --listfiles 需要一个有效的软件包名。而 [INFO]: 不是: 在说明符 '[INFO]:' 中包含非法软件包名: 必须以字母或数字开头

使用 --help 查看关于查询软件包的帮助。
dpkg-query: 没有找到与 [INFO]: 相匹配的软件包
dpkg-query: 错误: --listfiles 需要一个有效的软件包名。而 [INFO]: 不是: 在说明符 '[INFO]:' 中包含非法软件包名: 必须以字母或数字开头

使用 --help 查看关于查询软件包的帮助。
dpkg-query: 错误: --listfiles 需要一个有效的软件包名。而 [INFO]: 不是: 在说明符 '[INFO]:' 中包含非法软件包名: 必须以字母或数字开头

使用 --help 查看关于查询软件包的帮助。
dpkg-query: 没有找到与 [INFO]: 相匹配的软件包
dpkg-query: 软件包 listing... 没有被安装
通过 dpkg --contents (= dpkg-deb --contents) 来列出档案文件清单。
dpkg-query: 软件包 listing... 没有被安装
通过 dpkg --contents (= dpkg-deb --contents) 来列出档案文件清单。
dpkg-query: 没有找到与 Listing... 相匹配的软件包

(zenity:7771): Gtk-WARNING **: 17:15:19.784: Unable to acquire the address of the accessibility bus: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files. If you are attempting to run GTK without a11y support, GTK_A11Y should be set to 'none'.

(zenity:7771): GLib-WARNING **: 17:15:23.335: ../../../glib/giounix.c:414Error while getting flags for FD: 错误的文件描述符 (9)

(zenity:7802): Gtk-WARNING **: 17:15:23.856: Unable to acquire the address of the accessibility bus: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files. If you are attempting to run GTK without a11y support, GTK_A11Y should be set to 'none'.

(zenity:7917): Gtk-WARNING **: 17:15:25.545: Unable to acquire the address of the accessibility bus: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files. If you are attempting to run GTK without a11y support, GTK_A11Y should be set to 'none'.

image.png

Reply View the author
2 / 2
To page
New Thread

Popular Ranking

Change

Popular Events

More
国际排名
WHLUG