Score:2

Ubuntu 20.04 trouble with "Software & Updates" - "Error while refreshing cache"

fr flag

In the "Software & Updates" application, when I check/uncheck any sources or ppa and click "close", I get this (which is normal):

Screenshot 1

After clicking "Reload", I have these errors:

Screenshot 2

It seems like the problems with proxy. I do use proxy, but even when I disable it in "Settings", the problem remains. However, I don't have any problem with sudo apt update.

I don't have any proxy-related env variables, nor proxies for apt. I don't know why it keeps reporting proxy issues.

Edit 1: The output of sudo apt update:

Hit:1 http://mirrors.huaweicloud.com/repository/ubuntu focal InRelease
Hit:2 http://mirrors.huaweicloud.com/repository/ubuntu focal-updates InRelease
Hit:3 http://mirrors.huaweicloud.com/repository/ubuntu focal-backports InRelease
Hit:4 http://mirrors.huaweicloud.com/repository/ubuntu focal-security InRelease
Hit:5 http://archive.canonical.com/ubuntu focal InRelease
Reading package lists... Done                           
Building dependency tree       
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
N0rbert avatar
zw flag
Please run `sudo apt-get update` and paste its full output to question body. If long - use pastebin and share a link.
ChanganAuto avatar
us flag
@trondhansen Synaptic is just a front-end and no, you shouldn't run a "partial update". We need to see the full error messages as requested by N0rbert.
habibun avatar
va flag
https://askubuntu.com/questions/1182803/what-causes-failed-to-fetch-file-has-unexpected-size-mirror-sync-progress/1229971#1229971
Score:1
cn flag

Try sudo ldconfig /usr/bin/gpg. See: https://unix.stackexchange.com/a/677711/114401

It worked for me. sudo apt update now works again.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.