12

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?

wjandrea
  • 14,109
  • 4
  • 48
  • 98
vico
  • 4,447
  • 20
  • 55
  • 87
  • 2
    Related but very old 2011 http://askubuntu.com/questions/37753/how-can-i-get-apt-to-use-a-mirror-close-to-me-or-choose-a-faster-mirror – Mark Kirby Oct 07 '15 at 11:34
  • Visit [Community Help Wiki](https://help.ubuntu.com/community/Repositories/Ubuntu#Download_Server) – Pandya Oct 07 '15 at 14:20

3 Answers3

8

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.

Mark Kirby
  • 18,289
  • 19
  • 78
  • 113
7

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.

hiro protagonist
  • 1,489
  • 15
  • 32
5

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

screenshot of "Software & Updates"

screenshot of "Choose a Download Server"

wjandrea
  • 14,109
  • 4
  • 48
  • 98
Ravan
  • 9,309
  • 17
  • 57
  • 80