5

Which protocols are better to use in /etc/apt/sources.list file? HTTP or FTP?

For example:

deb http://archive.ubuntu.com/ubuntu saucy main universe restricted multiverse

or:

deb ftp://ftp.archive.ubuntu.com/ubuntu/ saucy main universe restricted multiverse
1

1 Answer 1

5

You should always use HTTP. In this sense I found this nice answer:

You're not going to save much time using one over the other, but if efficiency is what you care about, use HTTP. An FTP client has to send a username and password and receive acknowledgments for those, and then issue several commands to set up the file transfer and receive acks for those, too. All this back and forth magnifies the effect of network latency; with 100-200ms ping times to the server you could waste a second setting up the transfer. With HTTP, the client opens the connection, sends one command and the file transfer starts immediately.

(Thanks to Kyle Jones for this answer)

Also, I will add that I personally always use the best server found by Ubuntu (in System Settings...Software & UpdatesUbuntu Software tab, and choose Othher...):

choose server

You may be also interested by:

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .