89luca89 / distrobox

Use any linux distribution inside your terminal. Enable both backward and forward compatibility with software and freedom to use whatever distribution you’re more comfortable with. Mirror available at: https://gitlab.com/89luca89/distrobox
https://distrobox.it/
GNU General Public License v3.0
9.86k stars 405 forks source link

[Error] Void Linux container gives error when installing packages after distrobox enter #1457

Closed dnkmmr69420 closed 3 months ago

dnkmmr69420 commented 3 months ago

Please, before opening a bug:

Describe the bug image I can't use void linuxcontainers because of this

To Reproduce distrobox create -i ghcr.io/void-linux/void-glibc-full:latest -n void distrobox enter void

Expected behavior Installs void linux just fine

Logs log.txt

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

classabbyamp commented 3 months ago

ERROR: runit-void-20231124_5: [unpack] failed to unpack files from archive: Unknown error -1

not sure what the reason for this is (works fine on my container (not distrobox)), but this is definitely wrong, that's not what repolock does:

https://github.com/89luca89/distrobox/blob/63496a817f65829a5cd457a8ef5d8859d4b9ba9d/distrobox-init#L1138-L1140

it would make more sense to use an xbps config noextract pattern for the files that mess up the update

run xbps-install -Sud runit-void to figure out what file(s) it is and add /etc/xbps.d/distrobox-ignore.conf with noextract=SomePathOrPattern line(s) inside

89luca89 commented 3 months ago

@classabbyamp thanks for the pointer to noextract!

That's exactly what I need :) thanks! will craft a fix soon

89luca89 commented 3 months ago

Thanks @classabbyamp, I've implemented the proper fix :+1:

dnkmmr69420 commented 3 months ago

I loved the quick response. thank you