meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:general:apt [2015/11/07 15:49] – niziak | linux:general:apt [2026/02/06 08:17] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== APT ====== | ====== APT ====== | ||
| - | ===== Playing with apt keys ===== | + | ===== Configuration |
| - | <code bash> | + | ==== Force IPv4 ==== |
| - | sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 8B48AD6246925553 | + | |
| - | </ | + | |
| <code bash> | <code bash> | ||
| - | sudo apt-get install debian-archive-keyring | + | echo ' |
| - | wget http://ftp.pl.debian.org/debian/ | + | |
| - | sudo dpkg -i pkg-mozilla-archive-keyring_1.1_all.deb | + | |
| - | sudo apt-get update | + | |
| </ | </ | ||
| - | <code bash> | + | ==== Limit download speed === |
| - | gpg --keyserver pgpkeys.mit.edu --recv-key | + | To limit download speed to 250kBytes/s: |
| - | gpg -a --export 8B48AD6246925553 | sudo apt-key add - | + | |
| - | </code> | + | |
| - | ===== List all package versions ===== | + | <file python /etc/apt/apt.conf.d/75lowerspeed> |
| - | + | Acquire | |
| - | + | { | |
| - | ===== Install specified version ===== | + | Queue-mode " |
| - | < | + | http |
| - | apt-get install backupninja=0.9.8.1-1 | + | { |
| - | apt-mark hold backupninja | + | Dl-Limit " |
| - | </code> | + | }; |
| - | + | }; | |
| - | ===== Install from backports ===== | + | </file> |
| - | List version and priorities: | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | + | ||
| - | + | ||
| - | ===== Errors ===== | + | |
| - | Error: | + | |
| - | < | + | |
| - | http:// | + | |
| - | </ | + | |
| - | + | ||
| - | <code bash> | + | |
| - | cd / | + | |
| - | sudo mv lists lists.old | + | |
| - | sudo mkdir -p lists/ | + | |
| - | sudo apt-get update | + | |
| - | </ | + | |
| - | + | ||
| - | This will rebuild the cache. | + | |
| - | + | ||
| - | Error: | + | |
| - | < | + | |
| - | W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http:// | + | |
| - | </code> | + | |
| - | <code bash> | + | ==== Use apt-cacher ==== |
| + | <file | / | ||
| + | Acquire:: | ||
| + | Acquire:: | ||
| + | </ | ||
| + | or | ||
| + | Replace all mirror hostnames with cachinghost/ | ||
| + | < | ||
| + | should now become: | ||
| + | < | ||