Apt-get update failing

Trying to update and install new packages but unable to get update to work, can ping google.com and the first parts of update work fine but then I get errors, have to edit it down as I cannot post log as it has links in it!

khadas@Khadas:~$ sudo apt-get update

Hit:5 https://dl.khadas.com/repos/vim1 bionic InRelease
Reading package lists… Error!
E: LZ4F: /var/lib/apt/lists/ports.ubuntu.com_dists_bionic-security_restricted_binary-arm64_Packages.lz4 Unexpected end of file
… more errors

Any ideas, is there an issue with “dl . khadas . com” which seems to be the issue?


Hello @datkins

Please try this:

$ sudo rm -rf /var/lib/apt
$ sudo apt-get update
1 Like

really hard to raise this as I was not allowed to include the links in the error message!

this fixed it thanks, not being able to post links as a new user was a real pain but thanks for the quick response!