canonical / sec-cvescan

Analyzes an Ubuntu system and checks for unpatched vulnerabilities.
GNU General Public License v3.0
87 stars 31 forks source link

cvescan gives dpkg error on rhel8 #91

Closed leasharon closed 2 years ago

leasharon commented 2 years ago

I installed cvescan on rhel8 but when i try to run the commad i get this error Error: Failed to determine the local package count -- dpkg exited with code 2: dpkg-query: error: failed to open package info file '/var/lib/snapd/hostfs/var/lib/dpkg/status' for reading: No such file or directory

I installed cvescan by following the documentation at this link https://snapcraft.io/install/cvescan/rhel

mssalvatore commented 2 years ago

I've been out of the loop on this for a while, but it looks like the RHEL documentation is auto generated. CVEScan is only intended to scan an Ubuntu system.

You can use CVEScan on RHEL to scan a manifest file, but not to scan the RHEL system itself. See https://snapcraft.io/install/cvescan/rhel.

leasharon commented 2 years ago

Am sorry. Thanks !! i installed cvescan without reading the document properly and tried to scan my system :)