![]() Also, the Canonical "partner" repository (closed source and proprietary) doesn't work with mirrors so these lines are unchanged.įirst, run the following to make a backup and delete your sources list file: sudo mv /etc/apt/sources.list /etc/apt/sources.listbackup Note: the lines for "proposed" are commented out. This includes the main, restricted, universe, multiverse, proposed, and canonical repositories. I made a complete list to replace the original sources list file. We need to replace the original contents of the file to prevent this problem Also, because apt only checks for duplicate lines, there is no error. Simply adding deb mirror lines to /etc/apt/sources.list will give you duplicate sources. ![]() | Yes | Yes | Up to date | 446.07 KB/s |įull URLs which are too long to be shown in above table: | Yes | No | 4 weeks behind | 514.31 KB/s | | 4 | | Yes | No | Up to date | 1.35 MB/s | | Rank | Mirror URL | Available? | Updating? | Last updated | Bandwidth | With -l, or -list-mirrors, you will get ( example output from Travis CI U.S. You can easily install apt-smart via pip, for detailed copy'n'paste install commands please see Project Readme.Ī usage example that lets you list ranked mirrors within your country: $ apt-smart -l apt-smart is being maintained, whereas apt-select leaves isusues unfix for almost 3 years.apt-smart does real HTTP download from each mirror to get more accurate results ( bandwidth & status ) and supports HTTP proxy, whereas apt-select only uses ping and relies on launchpad 's inaccurate data.apt-smart automaticly finds where you are so you don't need to specify the country when you travel abroad.The differences between apt-smart and other answer mentioned apt-select are: ![]() My Python script apt-smart that finds mirrors automaticly within your country, benchmarks and ranks them by status and speed, finally changes sources.list if you want to. Thanks to the post regarding the GUI tool to change this, I found that mirror and set it as default. Staying on your ISP's network can bypass some speed throttles you might otherwise have to the outside world. ![]() Pretty things such as Network Exchanges can make for a fast connection to specific places. I recommend knowing your local internet network topology. It seems the university has the same ISP as I, and so transfer rates are measured in megabytes per second, as opposed to the 50-100 kilobytes per second I get from a default mirror. However, here in the north my ISP (unlike the phone company) has only one fiber line out of this city, and it goes straight to Calgary (1000km east of here) where it plugs a NEX shared with the line to ucalgary, where they have a lovely debian and ubuntu and who-knows-what-else mirror. For example, I live in BC Canada, and most who are in this province should find a mirror in BC, California, or any Pacific state, maybe even Arizona. The Geographic location does not always give the best mirror.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |