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

Error while installing cli on debian #2376

Closed
I065450 opened this issue Feb 20, 2023 · 6 comments
Closed

Error while installing cli on debian #2376

I065450 opened this issue Feb 20, 2023 · 6 comments

Comments

@I065450
Copy link

I065450 commented Feb 20, 2023

Describe the bug and the command you saw an issue with:

the following code to install cf cli stopped working since last version,
I have check and the documentation for installation didn't changed.

curl -s https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | apt-key add - &&
echo "deb https://packages.cloudfoundry.org/debian stable main" | tee /etc/apt/sources.list.d/cloudfoundry-cli.list &&
apt-get update &&
apt-get install -y cf8-cli

What happened:

our code started to fail since last version of CLI, here is the error we get:

Get:1 https://packages.cloudfoundry.org/debian stable/main amd64 cf8-cli amd64 8.6.0 [7082 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 7082 kB in 4s (1920 kB/s)
dpkg-deb: error: archive '/var/cache/apt/archives/cf8-cli_8.6.0_amd64.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive /var/cache/apt/archives/cf8-cli_8.6.0_amd64.deb (--unpack):
dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/cf8-cli_8.6.0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
The command '/bin/sh -c curl -s https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | apt-key add - && echo "deb https://packages.cloudfoundry.org/debian stable main" | tee /etc/apt/sources.list.d/cloudfoundry-cli.list && apt-get update && apt-get install -y cf8-cli' returned a non-zero code: 100
Build step 'Execute shell' marked build as failure

Expected behavior:

CLI installed

Exact Steps To Reproduce:

run installation code as above on debian

Provide more context:

the code is part of our docker file

@mymasse
Copy link

mymasse commented Feb 23, 2023

Same issue when installing on debian bullseye. We suspect the OS used to build the debian package was changed to Ubuntu 22+ which uses the xstd compression which is not supported everywhere, hence why it breaks on non Ubuntu 22 OS.

@vmspotgit
Copy link

Same problem here.

Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye


Get:1 https://packages.cloudfoundry.org/debian stable/main amd64 cf8-cli amd64 8.6.0 [7082 kB]
Fetched 7082 kB in 14s (503 kB/s)
dpkg-deb: error: archive '/var/cache/apt/archives/cf8-cli_8.6.0_amd64.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive /var/cache/apt/archives/cf8-cli_8.6.0_amd64.deb (--unpack):
dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/cf8-cli_8.6.0_amd64.deb

@a-b
Copy link
Member

a-b commented Feb 24, 2023

Hi, thanks for bringing this to our attention.

@xandroc and I were able to reproduce this issue on a Debian container. As a workaround for now, you should be able to install the previous version by running apt install -y cf8-cli=8.5.0.

Our post-release QA is performed on the Ubuntu container and works as expected. We will look into this issue.

@a-b
Copy link
Member

a-b commented Feb 24, 2023

@xandroc and I suspect some dependencies changed in this job.
This is where we are compressing Debian packages.
Our working theory is that GitHub Actions ubuntu-latest here got updated deb that uses a new type of compression between 8.5.0 and 8.6.0 cf cli releases.

@I065450
Copy link
Author

I065450 commented Feb 26, 2023

hat GitHub Actions ubuntu-la

Thanks, this is what we have done for now,
We are waiting for a solution.

@a-b
Copy link
Member

a-b commented Feb 27, 2023

Should be solved with v8.6.1

Feel free to reopen if you have any questions.

@a-b a-b closed this as completed Feb 27, 2023
a-b pushed a commit that referenced this issue Feb 27, 2023
We are downgrading Ubuntu to 20.04 which is not using xstd compression
More context in [issue #2376](#2376)

Co-authored-by: Shwetha Gururaj <gururajsh@vmware.com>
Co-authored-by: Alex Rocha <alexr1@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants