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 report) 0.48.3 deb is broken #2272

Closed
1 task done
gerroon opened this issue Oct 25, 2021 · 3 comments
Closed
1 task done

(Bug report) 0.48.3 deb is broken #2272

gerroon opened this issue Oct 25, 2021 · 3 comments

Comments

@gerroon
Copy link

gerroon commented Oct 25, 2021

Preflight Checklist

  • I have searched the issue tracker for a bug report that matches the one I want to file, without success.

Trilium Version

0.48.3

What operating system are you using?

Other Linux

What is your setup?

Local + server sync

Operating System Version

Debian Testig x64

Expected Behavior

Proper installation

Actual Behavior

The .deb file does not install properly. This is the first time I getting with the provided .deb file. Please see the log

dpkg -i trilium_0.48.3_amd64.deb 
dpkg-deb: error: archive 'trilium_0.48.3_amd64.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive trilium_0.48.3_amd64.deb (--install):
 dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
 trilium_0.48.3_amd64.deb


Additional Information

No response

@zadam
Copy link
Owner

zadam commented Oct 25, 2021

Hi, this is caused by the newly introduced ZStandard compression as the default for dpkg-deb packages. Unfortunately debian does not support ZStandard (yet).

I created an issue electron-userland/electron-installer-debian#272 for allowing configuration of compression which would allow us to switch back to XZ which is supported in debian as well.

The workaround for now would be to use the *.tar.xz file

@Zocker1999NET
Copy link

Or if someone like me really requires using the deb package, you can convert it manually for now (requires binutils (for ar) and zstd to be installed):

# configure version
export trilium_version=0.48.4
# jump into own directory
mkdir -p trilium-deb-fix
cd trilium-deb-fix
# download trilium
wget https://github.com/zadam/trilium/releases/download/v${trilium_version}/trilium_${trilium_version}_amd64.deb
ar x trilium_${trilium_version}_amd64.deb
# recompress
< control.tar.zst zstd -d | xz > control.tar.xz
< data.tar.zst zstd -d | xz > data.tar.xz
# create deb archive (I really do not know, what argument "sdsd" is for but something is required for ar to create the archive as desired)
ar -m -c -a sdsd trilium_${trilium_version}_amd64_xz.deb debian-binary control.tar.xz data.tar.xz
## uncomment if you want to install it directly afterwards
# sudo dpkg -i trilium_${trilium_version}_amd64_xz.deb

@zadam zadam closed this as completed in 930d29d Nov 1, 2021
@zadam
Copy link
Owner

zadam commented Nov 1, 2021

@Zocker1999NET thanks, I added your workaround to the build process as a temporary solution so 0.48.5 and later should be again compatible with debian.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants