Failed to fetch because of size mismatch error while upgrading [duplicate]

Try

sudo apt-get update --fix-missing

in terminal and then

sudo apt-get upgrade

sudo apt-get update && sudo apt-get install --fix-missing


There may be a problem with the package on the repository's end. I suggest you wait a day or two, check for updates, and then install the updates again later. That should solve the problem.