Skip to content

Unable to install packages that depend on libc6 using packages.txt in Gradio Spaces #1795

@John6666cat

Description

@John6666cat

I encountered a problem while trying BitNet.
I think it can be avoided in Docker space, but not in Gradio space.

Bug description

Some packages cannot be installed via packages.txt in Gradio Spaces. This appears to be a well-known dependency error from the past (libc6), but specifying -f or -m for apt-get install in packages.txt does not seem to work, so I couldn't find a workaround.

Demo

https://huggingface.co/spaces/John6666/test-apt-get-libc6

Expected behaviour

Be possible to install without problems using the default image, or a method equivalent to the -f option is provided for Gradio spaces.

Additional context

Code (packages.txt)

python3-clang

Log

(Reading database ... 29632 files and directories currently installed.)
Preparing to unpack .../00-libc6-i386_2.36-9+deb12u10_amd64.deb ...
ln: failed to create symbolic link '/lib32': Permission denied
dpkg: error processing archive /tmp/apt-dpkg-install-k3VNDW/00-libc6-i386_2.36-9+deb12u10_amd64.deb (--unpack):
 new libc6-i386 package pre-installation script subprocess returned error exit status 1

...

Selecting previously unselected package python3-clang:amd64.
Preparing to unpack .../12-python3-clang_1%3a14.0-55.7~deb12u1_amd64.deb ...
Unpacking python3-clang:amd64 (1:14.0-55.7~deb12u1) ...
Errors were encountered while processing:
 /tmp/apt-dpkg-install-k3VNDW/00-libc6-i386_2.36-9+deb12u10_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

--> ERROR: process "/bin/sh -c apt-get update && \txargs -r -a /tmp/packages.txt apt-get install -y && \tapt-get install -y curl && \tcurl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \tapt-get install -y nodejs && \trm -rf /var/lib/apt/lists/* && apt-get clean" did not complete successfully: exit code: 123

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions