Hash mismatch while updating/installing apt packages

While I try to install or update any package via apt it says hash mismatch and similarly while using snap it says (local error:"tls: bad record MAC").

@PirateofAndaman , welcome , we hope you find the forum friendly and helpful.

Have no personal experience of this , an online search returns many matches (relating to SSL/WIFI/hardware ....) ,
Research through some of those and trying advice/solutions provided may help.

If you do resolve can you post your solution to share with the community.

thks.

Hello,

Similarly to @munkeHoller, I can't say this is one I've seen before, and some Googling seems to indicate a wide range of possible strange causes for these. It would be helpful to know precisely what Ubuntu version you're using. Also, are things otherwise working normally when you try to browse the Web or communicate with remote hosts over hTTPS, no certificate errors or things like that ?