That singular > character causes /etc/apt/sources.list to get overwritten with only deb kali-rolling main non-free contrib. However, you've mentioned making some other changes, and it's also visible in the screenshot that you ran:Įcho 'deb kali-rolling main non-free contrib' > /etc/apt/sources.list
I.e., your local metadata for a file in the repository says that the size is '5,' but by the time the file is downloaded, a mirror sync is in progress on the other end and the size is now '7'. That could be what's happening (or what happened). The screenshot shows that files obtained from the repository don't match the expected size, and indicates a potential explanation: Mirror sync in progress?.