wagoodman / dive

A tool for exploring each layer in a docker image
MIT License
44.53k stars 1.69k forks source link

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

Open BabakAmini opened 1 month ago

BabakAmini commented 1 month ago

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?

kgopi1 commented 2 weeks ago

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

BabakAmini commented 2 weeks ago

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.