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

Unsupported file ./dive_0.12.0_linux_amd64.deb given on commandline #527

Open
BabakAmini opened this issue Jun 1, 2024 · 5 comments
Open
Labels
bug Something isn't working

Comments

@BabakAmini
Copy link

BabakAmini commented Jun 1, 2024

I attempted to install this tool on Ubuntu 20.04/x86_64 following the instructions:

DIVE_VERSION=$(curl -sL "https://api.github.com/repos/wagoodman/dive/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/')
curl -OL https://github.com/wagoodman/dive/releases/download/v${DIVE_VERSION}/dive_${DIVE_VERSION}_linux_amd64.deb
sudo apt install ./dive_${DIVE_VERSION}_linux_amd64.deb

However, I encountered this error:

Unsupported file ./dive_0.12.0_linux_amd64.deb given on commandline

Am I missing something?

@BabakAmini BabakAmini added the bug Something isn't working label Jun 1, 2024
@kgopi1
Copy link

kgopi1 commented Jun 18, 2024

Hi, Deb file should be installed by using this command sudo dpkg -i <./dive_0.12.0_linux_amd64.deb>

@BabakAmini
Copy link
Author

Hi @kgopi1 and thanks for the reply. I tried downloading it from the releases page and successfully installed the .deb file.

@wagoodman It seems that there is an issue with the installation script. The curl command creates a file named dive_$DIVE_VERSION_linux_amd64.deb that contains Not Found. Since I am new to Linux, I have no idea why this is happening.

@trainin99
Copy link

Seems like all packages downloaded are just asci files.

➜  sudo dpkg -i dive_0.12.0_linux_amd64.deb
dpkg-deb: error: 'dive_0.12.0_linux_amd64.deb' is not a Debian format archive
dpkg: error processing archive dive_0.12.0_linux_amd64.deb (--install):
 dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
 dive_0.12.0_linux_amd64.deb

➜  file dive_0.12.0_linux_amd64.deb
dive_0.12.0_linux_amd64.deb: ASCII text, with no line terminators

➜  file dive_0.12.0_linux_amd64.tar.gz
dive_0.12.0_linux_amd64.tar.gz: ASCII text, with no line terminators

➜  file dive_0.10.1_linux_amd64.zip
dive_0.10.1_linux_amd64.zip: ASCII text, with no line terminators

less dive_0.10.1_linux_amd64.zip Not Found

@Yerfai
Copy link

Yerfai commented Oct 2, 2024

Hola a todos, tengo un problema con la instalación de Docker en mi sistema operativo parrot os. Después de ingresar el código
apt-get install / apt-transport-https / ca-certificates / curl / gnupg-agent / software -properties-common.
Después me sale
E: unsupported file / given on commandline
Agradecería mucho la ayuda

@LuckyBOYZ
Copy link

LuckyBOYZ commented Oct 19, 2024

For all of whom have a problem with installing dive tool - here it is an updated command to install dive on linux system:
DIVE_VERSION=$(curl -sL "https://api.github.com/repos/wagoodman/dive/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/') && \ curl -OL https://github.com/wagoodman/dive/releases/download/v${DIVE_VERSION}/dive_${DIVE_VERSION}_linux_amd64.deb && \ sudo dpkg -i dive_${DIVE_VERSION}_linux_amd64.deb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants