I have recently begun using Linux, ie, kubuntu 20.04 (by recently I mean today) and i was trying to install g++
compiler for c++
using
$ sudo apt install g++
but i get this error
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/b/binutils/binutils-x86-64-linux-gnu_2.34-6ubuntu1.3_amd64.deb Hash Sum mismatch
Hashes of expected file:
- SHA512:dcb9bb00f38000ce678d762a023981558e5dde03bdd8fdaf760b63e37a0f6090e25e9790119101b6152eff97b423a0945e57619bb55426f349b4ea3b86941c80
- SHA256:499c1811723ec5fcc9dace115534edc971aa374a237040ac2d3266271aa81dae
- SHA1:c0b171b273fd38b3e1165ca67548206bc2288257 [weak]
- MD5Sum:d9769a7bf05be2ab35c4571976088708 [weak]
- Filesize:1613160 [weak]
Hashes of received file:
- SHA512:3fe201740e5cc664e632ac02935a10e1589e1eefe4609717e8e3e8631356e6a6d67d77c612e43eac441d52e32edde49cac7d585e070c869594849f9e3ff1c5ee
- SHA256:e7d8432ef1b6f7e0218d88dcc49691d233a2bdcd1f8d6a91be65120ded9a47ff
- SHA1:f3ce375ebf6672c552dbe4705c8558031b9a1196 [weak]
- MD5Sum:f8171552e0513df7e9b3aa88f1092240 [weak]
- Filesize:1613160 [weak]
Last modification reported: Mon, 25 Oct 2021 16:15:46 +0000
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
full output
so i gave a read to this answer on another ask ubuntu thread and tried all of its suggested solutions,
$ sudo rm -rf /var/lib/apt/lists/*
$ sudo apt-get update
no errors now, but now when i try to do
$ sudo apt install g++
or even
$ sudo apt install -f g++
i get the same error as mentioned above, any help would be appreciated, its worth noting this is a fresh install of kubuntu 20.04