What have you tried: I have run sudo apt-get
update
What is the error: WARNING:root:cannot read /var/lib/command-not-found/commands.db.metadata: Expecting value: line 1 column 1 (char 0)
E: LZ4F: /var/lib/apt/lists/http.kali.org_kali_dists_kali-rolling_non-free-firmware_Contents-amd64.lz4 Unexpected end of file
E: LZ4F: /var/lib/apt/lists/http.kali.org_kali_dists_kali-rolling_non-free-firmware_Contents-amd64.lz4 Read error (18446744073709551615: ERROR_GENERIC)
Traceback (most recent call last):
File “/usr/lib/cnf-update-db”, line 32, in
col.create(db)
File “/usr/share/command-not-found/CommandNotFound/db/creator.py”, line 96, in create
self._fill_commands(con)
File “/usr/share/command-not-found/CommandNotFound/db/creator.py”, line 145, in _fill_commands
raise subprocess.CalledProcessError(returncode=sub.returncode,
subprocess.CalledProcessError: Command ‘/usr/lib/apt/apt-helper cat-file /var/lib/apt/lists/http.kali.org_kali_dists_kali-rolling_non-free-firmware_Contents-amd64.lz4’ returned non-zero exit status 100.
Error: Problem executing scripts APT::Update::Post-Invoke-Success ‘if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi’
Error: Sub-process returned an error code
I have looked at the forum. I didn’t see anything related. I don’t want to try chatGPT. Please help!
This has happened a few times. I just haven’t had the time to troubleshoot it. Same error message.
What device is this on: This is in a virtual machine, in virtual-box. I’m running a HP Envyx360 laptop. ITB SSD, 32GB RAM