Why always have an Error when updating and upgrading in Ubuntu 21.10 [duplicate]

After I have performed one of sudo apt-get install eclipse eclipse-cdt g++ procedure I found that Ubuntu is planning to download more than 400Mb and it will take more than 2 hours. It is too long. I also found that it downloads from the US:

Get:21 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libservlet3.0-java 
all 7.0.52-1ubuntu0.3 [294 kB]

I'm in Europe, maybe should I somehow tell Ubuntu to download from a source located closer. How should I do that?


Go to software & updates app in dash and on the first page it says Download from: set the server here

enter image description here

Set your nearest server, of course, in the dropdown.


edit your /etc/apt/sources.list to contain the url of your closest mirror.

e.g.

deb http://ch.archive.ubuntu.com/ubuntu/ trusty main restricted universe

or whichever mirror you choose. change all the occurrences of http://us.archive.ubuntu.com/ to the URL of the mirror of your choice.


Go to Software & UpdatesUbuntu Software tab → Download fromOther...Select Best Server

screenshot of "Software & Updates"

screenshot of "Choose a Download Server"