-1

I just installed ubuntu 20.0 LTS as a dual boot to windows 11. My WIFI works fine when surfing the internet through firefox. when i try to update running:

sudo apt update

I get the following error:

Screen shot from terminal

I also have a question mark on the top right WIFI icon.


This seems to be related to my WIFI because when I try the same when connected to phone Hotspot it works fine. However, This would be very costly as it is a metered connection. Also changing the update mirror doesn't seem to work.
stumblebee
  • 4,379

2 Answers2

0

This error can happen when fetching the latest repositories during "apt-get update" was interrupted, and a subsequent "apt-get update" is not able to resume the interrupted fetch. In this case, remove the content in /var/lib/apt/lists before retrying "apt-get update".try this:

$ sudo rm -rf /var/lib/apt/lists/* $ sudo apt-get update

More you can find here

-2

It turns out that for some reason my ISP doesn't like the Ubuntu repos, even the country specific ones. I figured that i could get a mirror from launchpad.net and update /etc/apt/source-list with it. And voila, sudo apt update works like a charm or at least that's how it appears so.

Zanna
  • 72,312