-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Release trivy_0.51.3_Linux-64bit binary is broken #6771
Comments
We deleted v0.51.3 for a workaround. Please downgrade to v0.51.2. Will fix it asap. |
can you retag the latest image to 0.51.2 on docker hub? Else we need to downgrade alot of CI jobs in alot of projects until the fix is out |
Downgrade works! Thank you @knqyf263 |
+1 for releasing fixed docker image #6771 (comment) |
Can you revert the docker images as well? we are using the latest tag. |
|
I'm closing this issue. |
A note on the downgrade, the deb pakcages only have the most recent version available:
CI processes using trivy will break until a fix is made if using the repository installation described at https://aquasecurity.github.io/trivy/v0.51/getting-started/installation/. |
|
Hello, I just attempted those debian/ubuntu official methods. They can only install whatever the most recent package is. $ docker run -it --rm ubuntu:jammy
root@53f1032c9c33:/# apt-get update -y && apt-get install -y wget apt-transport-https gnupg ca-certificates --no-install-recommends
Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB] ...
:
:
root@53f1032c9c33:/# wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | gpg --dearmor | tee /usr/share/keyrings/trivy.gpg > /dev/null
root@53f1032c9c33:/# echo "deb [signed-by=/usr/share/keyrings/trivy.gpg] https://aquasecurity.github.io/trivy-repo/deb generic main" | tee -a /etc/apt/sources.list.d/trivy.list
deb [signed-by=/usr/share/keyrings/trivy.gpg] https://aquasecurity.github.io/trivy-repo/deb generic main
root@53f1032c9c33:/# apt-get update -y
Get:1 https://aquasecurity.github.io/trivy-repo/deb generic InRelease [3063 B]
:
:
root@53f1032c9c33:/# apt-cache policy trivy
trivy:
Installed: (none)
Candidate: 0.51.4
Version table:
0.51.4 500
500 https://aquasecurity.github.io/trivy-repo/deb generic/main amd64 Packages
root@53f1032c9c33:/# apt-get install trivy=0.51.2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package trivy is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Version '0.51.2' for 'trivy' was not found As you can see, the generic only has the latest version available. Apt-cache policy only shows that version, and trying to install an earlier one will not work. Doing the same with the OS release named version in a fresh container: $ docker run -it --rm ubuntu:jammy
root@27da1888db8b:/# apt-get update -y && apt-get install -y wget apt-transport-https gnupg lsb-release ca-certificates --no-install-recommends
:
:
root@27da1888db8b:/# wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | gpg --dearmor | tee /usr/share/keyrings/trivy.gpg > /dev/null
root@27da1888db8b:/# echo "deb [signed-by=/usr/share/keyrings/trivy.gpg] https://aquasecurity.github.io/trivy-repo/deb $(lsb_release -sc) main" | tee -a /etc/apt/sources.list.d/trivy.list
deb [signed-by=/usr/share/keyrings/trivy.gpg] https://aquasecurity.github.io/trivy-repo/deb jammy main
root@27da1888db8b:/# apt-get update -y
Get:1 https://aquasecurity.github.io/trivy-repo/deb jammy InRelease [3061 B]
:
:
root@27da1888db8b:/# apt-cache policy trivy
trivy:
Installed: (none)
Candidate: 0.51.4
Version table:
0.51.4 500
500 https://aquasecurity.github.io/trivy-repo/deb jammy/main amd64 Packages
root@27da1888db8b:/# apt-get install trivy=0.51.2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package trivy is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Version '0.51.2' for 'trivy' was not found In both methods, a roll back was not possible. Perhaps that deb repository could have a few versions in it? |
Helllo @dannystaple You are right.
But you can always download any binary version from release page. Regards, Dmitriy |
Discussed in #6770
Originally posted by haskjold May 24, 2024
Description
Running the latest Trivy release results in error.
Desired Behavior
That it works :)
Actual Behavior
Running the latest Trivy release gives the following error:
Reproduction Steps
Target
None
Scanner
None
Output Format
None
Mode
None
Debug Output
Checklist
trivy image --reset
The text was updated successfully, but these errors were encountered: