apt stuff

Today was the first time I saw how hard the package manager apt works while I was doing an upgrade operation.

The following was the error I encountered:

E: Failed to fetch http://mirror.ossplanet.net/raspbian/raspbian/pool/main/g/gnutls28/libgnutls30_3.6.7-4+deb10u5_armhf.deb  Hash 
Sum mismatch                                                                                                                      
   Hashes of expected file:                                                                                                       
    - SHA256:dfd3e885cc7090d951d3e00fa9ef6f2f2b462dd152bfc43c456c077cc3ea9351                                                     
    - SHA1:303ba905d338ba521d56f3fac7d895bbc849b267 [weak]                                                                        
    - MD5Sum:b7d05c3214dd4803f1a2edc9daeb2634 [weak]
    - Filesize:1047252 [weak]
   Hashes of received file:
    - SHA256:b56d15a14d8f63a723238809564d6975ee4e60a0bc946f73f4dfaa69b2d5f6b2
    - SHA1:c64dda427cdd23e33496ff31e047d1a4f98f0d59 [weak]
    - MD5Sum:f213b6f673794ed6a00585db117ed9b8 [weak]
    - Filesize:1047252 [weak]
   Last modification reported: Sat, 01 Aug 2020 22:08:12 +0000
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

What this means that the downloaded file did not match what it expected, and it tried three different hashing algorithms – probably to make sure that hash collisions in one will most probably not have a collision in others.

Running and apt update once again fixed this pretty easily and I was able to go ahead with the upgrade without any issues.