-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/anilibria/anilibria-winma…
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Перепаковка deb файла | ||
В случае если у Вас возникает ошибка при установке пакета вида: | ||
```bash | ||
dpkg-deb: ошибка: в архиве «anilibria_X.X.X_amd64.deb» используется | ||
неизвестное метод сжатия для «control.tar.zst», прекращаем. | ||
``` | ||
Корень ошибки в том что пакеты упакованы архиватором zstd который не поддерживается в Вашей версии dpkg. | ||
|
||
## Подготовка | ||
Вначале необходимо проверить наличие установленных пакетов zstd, ar, tar. | ||
|
||
## Как перепаковать пакет | ||
```bash | ||
ar x anilibria_X.X.X_amd64.deb | ||
mkdir -p ./tmp/DEBIAN | ||
zstd -d < control.tar.zst | xz > control.tar.xz | ||
zstd -d < data.tar.zst | xz > data.tar.xz | ||
tar -xf control.tar.xz -C ./tmp/DEBIAN | ||
tar -xf data.tar.xz -C ./tmp/DEBIAN | ||
mv debian-binary ./tmp | ||
dpkg-deb -b tmp anilibria_X.X.X_amd64.deb | ||
``` |