# Compression error in .deb package

**URL:** https://forums.plex.tv/t/compression-error-in-deb-package/868554
**Category:** Plex Media Server
**Tags:** server-linux
**Created:** [February 7, 2024, 2:24pm UTC](https://forums.plex.tv/t/compression-error-in-deb-package/868554 "2024-02-07T14:24:31Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Tophicles](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tophicles/32/82119_2.png) [@Tophicles](https://forums.plex.tv/u/Tophicles)
#### Post date: [February 7, 2024, 2:24pm UTC](https://forums.plex.tv/t/compression-error-in-deb-package/868554/1 "2024-02-07T14:24:31Z")

</div>

Server Version#: 1.40.0.7775

I get an error when trying to cmdline install the new server 1.40.0.7996 where the compression is not compatible. (ZDST on DPKG).

````auto
dpkg-deb: error: archive 'newplex.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive newplex.deb (--install):
 dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:```
I think this is a Ubuntu vs pure Debian thing. Any workarounds?
````

---

<div class="post-metadata">

### Author: ![Tophicles](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tophicles/32/82119_2.png) [@Tophicles](https://forums.plex.tv/u/Tophicles)
#### Post date: [February 7, 2024, 2:33pm UTC](https://forums.plex.tv/t/compression-error-in-deb-package/868554/2 "2024-02-07T14:33:12Z")

</div>

This appears to work in BULLSEYE (Deb 11).

```auto
# Extract files from the archive
ar x some-package.deb
# Uncompress zstd files an re-compress them using xz
zstd -d < control.tar.zst | xz > control.tar.xz
zstd -d < data.tar.zst | xz > data.tar.xz
# Re-create the Debian package in /tmp/
ar -m -c -a sdsd /tmp/some-package.deb debian-binary control.tar.xz data.tar.xz
# Clean up
rm debian-binary control.tar.xz data.tar.xz control.tar.zst data.tar.zst

sudo apt install /tmp/some-package.deb

```

Will upgrade to BOOKWORM (12) and see if it works better 🙂

---

<div class="post-metadata">

### Author: ![Tophicles](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tophicles/32/82119_2.png) [@Tophicles](https://forums.plex.tv/u/Tophicles)
#### Post date: [February 7, 2024, 3:05pm UTC](https://forums.plex.tv/t/compression-error-in-deb-package/868554/3 "2024-02-07T15:05:33Z")

</div>

100% a Debian 11 issue. Upgrading to 12 (bookworm) works perfectly.  
Here’s what I did to upgrade (to save people from searching)

1. Backup the system.

2. Update existing packages and reboot the Debian 11 system:  
apt get update && apt get upgrade  
reboot

3. Edit the file **/etc/apt/sources.list** replace **bullseye** with **bookworm**.  
Next find the update line, replace keyword **bullseye-updates** with **bookworm-updates**.  
Finally, replace keyword **bullseye-security** with **bookworm-security**

4. Update the packages index on Debian Linux, run:  
**sudo apt update**

5. Prepare for the operating system minimal system upgrade, run:  
**sudo apt upgrade --without-new-pkgs**

6. Finally, update Debian 11 to Debian 12 Bookworm by running:  
**sudo apt full-upgrade**

7. Reboot the Linux system so that you can boot into Debian 12 Bookworm

---

<div class="post-metadata">

### Author: ![chris\_decker08](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chris_decker08/32/316799_2.png) [@chris\_decker08](https://forums.plex.tv/u/chris_decker08)
#### Post date: [February 7, 2024, 3:55pm UTC](https://forums.plex.tv/t/compression-error-in-deb-package/868554/4 "2024-02-07T15:55:43Z")

</div>

Thank you for bringing this to our attention! We recently upgraded our CI systems, which brought in a newer dpkg with a new default compression. Unfortunately zdst compression is not supported in the dpkg shipped with Debian 11 or earlier. This will be addressed before 1.40 is pushed to public.

---

<div class="post-metadata">

### Author: ![Tophicles](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tophicles/32/82119_2.png) [@Tophicles](https://forums.plex.tv/u/Tophicles)
#### Post date: [February 7, 2024, 5:40pm UTC](https://forums.plex.tv/t/compression-error-in-deb-package/868554/5 "2024-02-07T17:40:43Z")

</div>

Happy to be of some help - hopefully this lets others know to keep on their updates, lol!

---

<div class="post-metadata">

### Author: ![drzoidberg33](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/drzoidberg33/32/4184_2.png) [@drzoidberg33](https://forums.plex.tv/u/drzoidberg33)
#### Post date: [February 8, 2024, 6:49pm UTC](https://forums.plex.tv/t/compression-error-in-deb-package/868554/6 "2024-02-08T18:49:06Z")

</div>

This should be resolved now with [Plex Media Server - #611 by drzoidberg33](https://forums.plex.tv/t/plex-media-server/30447/611)

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)
#### Post date: [May 8, 2024, 6:49pm UTC](https://forums.plex.tv/t/compression-error-in-deb-package/868554/7 "2024-05-08T18:49:18Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
