Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
share|improve this question
2  
There is similar question exists on another SE site, hope that helps .. unix.stackexchange.com/questions/30210/… –  JackLock Nov 13 '13 at 14:36

1 Answer 1

up vote 1 down vote accepted

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:

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.