Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: deepin目前不支持zstd格式打包的deb安装包。 #369

Closed
Zacharia2 opened this issue May 1, 2023 · 10 comments
Closed

bug: deepin目前不支持zstd格式打包的deb安装包。 #369

Zacharia2 opened this issue May 1, 2023 · 10 comments
Assignees
Labels
bug Something isn't working

Comments

@Zacharia2
Copy link
Contributor

Zacharia2 commented May 1, 2023

Environment 环境信息

Deepin Linux 平台TidGi

Description 描述

uses unknown compression for member 'control.tar.zst', giving up.

Steps to Reproduce 复现方式

https://bbs.deepin.org/zh/post/235873

@Zacharia2 Zacharia2 added the bug Something isn't working label May 1, 2023
@Zacharia2
Copy link
Contributor Author

Zacharia2 commented May 1, 2023

手动解决方案:手拆zstd格式deb安装包,重新打包后安装

仅需要解压deb包中的这两个压缩包:data.tar.gz、ontrol.tar.gz。

  1. 新建一个文件夹tidgi-extract,control.tar.gz解压到tidgi-extract文件夹下的DEBIAN目录,data.tar.gz解压到tidgi-extract文件夹下。

  2. 然后在终端中执行 dpkg -b tidgi-extract TidGi.deb 完成从新打包。(你应该在含有tidgi-extract文件夹的目录执行命令)

  3. 最后使用 sudo dpkg -i TidGi.deb 安装软件包即可。

@Zacharia2
Copy link
Contributor Author

Zacharia2 commented May 1, 2023

备忘录:

dpkg -X ./xxx.deb extract

dpkg -e ./xxx.deb extract/DEBIAN

dpkg -b 文件夹 文件名.deb

sudo dpkg -i 文件名.deb

解压命令:tar -zxvf 压缩文件名.tar.gz

解压到指定目录:tar -zxvf 压缩文件名.tar.gz -C <目标目录>

压缩命令:tar -zcvf 压缩文件名.tar.gz <被压缩的文件夹>

deb 默认使用的压缩格式为 gzip 格式,所以最常见的就是 data.tar.gz。看他提示 control.tar.zst看样子应该是。

最新的23,内核5.18,好像得5.19才支持

Debian 11/ Ubuntu 21.10开始变成默认了

【仓库/镜像】 V20稳定版本还有可能支持debian 11的上游依赖吗?https://bbs.deepin.org/phone/post/251304

deepin现在的dpkg版本还在1.19.这个版本,支持zstd压缩的dpkg要升级到1.21.以上

@Zacharia2
Copy link
Contributor Author

Zacharia2 commented May 3, 2023

@linonetwo 所以解决方法就是打包用的Ubuntu环境降低一点点就可以了,可以使用Ubuntu20.04

@Zacharia2
Copy link
Contributor Author

Ubuntu 通过博客终于决定将从 Ubuntu 21.10 开始使用 Zstd 压缩.deb 包。

@linonetwo
Copy link
Contributor

所以其实是用户的 ubuntu 版本过低,所以无法解压这种包吗?现在 Ubuntu 大家还有用 20 的吗

@Zacharia2
Copy link
Contributor Author

Zacharia2 commented May 3, 2023

@linonetwo 大概是这个意思,其实只要低于Ubuntu 21.10 ,dpkg版本就会使用原有的压缩方式。Deepin目前采用的dpkg版本低于Ubuntu 21.10采用的dpkg版本,故而不支持新版的采用zstd软件包。

@linonetwo
Copy link
Contributor

这个新版软件包有什么优势吗,没啥区别就先降级 Action 里的 ubuntu 吧

@Zacharia2
Copy link
Contributor Author

Zacharia2 commented May 3, 2023

这个新版软件包有什么优势吗,没啥区别就先降级 Action 里的 ubuntu 吧

听说就是安装速度快,性能好一点。其它都一样,就仅仅换了一个压缩格式罢了。就像用zip压缩还是用7z压缩

@Zacharia2
Copy link
Contributor Author

Zacharia2 commented May 4, 2023

我用Ubuntu22.04测试过了,可以正常解压安装老版的基于旧的压缩方式的deb包(deepin可以用的)。

@Zacharia2
Copy link
Contributor Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants