HTTP or FTP in sources.list?

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

For example:

deb saucy main universe restricted multiverse

or:

deb ftp:// saucy main universe restricted multiverse
1

1 Answer

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:

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like