wordfence / wordfence-cli

Wordfence malware and vulnerability scanner command line utility.
https://www.wordfence.com/products/wordfence-cli/
GNU General Public License v3.0
104 stars 22 forks source link

Error Installing on Ubuntu 24 #309

Open utibe-ettebong opened 1 week ago

utibe-ettebong commented 1 week ago

I got this error while trying to install Wordfence cli in ubuntu 24 E: Unsupported file ./wordfence.deb given on commandline

akenion commented 1 week ago

@utibe-ettebong What command are you running? Are you using apt (recommended) or dpkg to install this?

You should be able to install it using:

sudo apt install ./wordfence.deb

(using apt over dpkg will handle installing dependencies automatically)

Also, just to confirm that the package downloaded correctly, can you verify the checksum of your local file, it should match:

3294cfa8f981b8245189b5e76d49f43c9e4c9bd0aa721b90d517f480854a1838

You can verify this by running:

sha256sum wordfence.deb

We regularly test the Debian package on Ubuntu 24.04 and I just tested it myself and it worked as expected, so it should be compatible.

utibe-ettebong commented 1 week ago

Got these error: root@ndjhd38478232: sha256sum wordfence.deb sha256sum: wordfence.deb: No such file or directory root@ndjhd38478232: sudo apt install ./wordfence.deb Reading package lists... Done E: Unsupported file ./wordfence.deb given on commandline root@ndjhd38478232:

akenion commented 1 week ago

@utibe-ettebong Wordfence CLI is not available in the official Ubuntu repos at present, so you'll need to manually download the .deb package from GitHub prior to attempting to install it.

You can download the latest version from the following URL: https://github.com/wordfence/wordfence-cli/releases/latest/download/wordfence.deb

Once downloaded, you'll need to replace wordfence.deb in the commands above with the path to the downloaded file.

utibe-ettebong commented 1 week ago

Ok, got this error: dpkg: error processing package wordfence (--configure): dependency problems - leaving unconfigured Processing triggers for man-db (2.12.0-4build2) ... Errors were encountered while processing: python3-chardet python3-certifi python3-cryptography python3-requests python3-idna python3-pymysql python3-urllib3 wordfence E: Sub-process /usr/bin/dpkg returned an error code (1)

akenion commented 17 hours ago

@utibe-ettebong Are you installing using dpkg or apt? I'd recommend using apt install /path/to/wordfence.deb as this will automatically install dependencies. If using dpkg, you'll need to either manually install the dependencies (listed in the output above) or use apt-get install -f to fix the missing dependencies.