meta data for this page
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| linux:general:apt [2015/06/19 12:13] – created niziak | linux:general:apt [2026/02/06 08:17] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Error: | + | ====== APT ====== |
| - | http:// | + | |
| + | ===== Configuration ===== | ||
| - | cd /var/lib/apt | + | ==== Force IPv4 ==== |
| - | sudo mv lists lists.old | + | |
| - | sudo mkdir -p lists/partial | + | <code bash> |
| - | sudo apt-get update | + | echo ' |
| + | </ | ||
| + | |||
| + | ==== Limit download speed === | ||
| + | To limit download speed to 250kBytes/ | ||
| + | |||
| + | <file python / | ||
| + | Acquire | ||
| + | { | ||
| + | Queue-mode " | ||
| + | | ||
| + | { | ||
| + | Dl-Limit " | ||
| + | }; | ||
| + | }; | ||
| + | </file> | ||
| + | |||
| + | ==== Use apt-cacher ==== | ||
| + | <file | / | ||
| + | Acquire:: | ||
| + | Acquire:: | ||
| + | </ | ||
| + | or | ||
| + | Replace all mirror hostnames with cachinghost/ | ||
| + | < | ||
| + | |||
| + | should now become: | ||
| + | < | ||
| - | This will rebuild the cache. | ||