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/22 10:45] – niziak | linux:general:apt [2026/02/06 08:17] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== APT ====== | ====== APT ====== | ||
| - | ===== Limit download speed ==== | + | ===== Configuration ===== |
| + | |||
| + | ==== Force IPv4 ==== | ||
| + | |||
| + | <code bash> | ||
| + | echo ' | ||
| + | </ | ||
| + | |||
| + | ==== Limit download speed === | ||
| To limit download speed to 250kBytes/ | To limit download speed to 250kBytes/ | ||
| Line 15: | Line 23: | ||
| </ | </ | ||
| - | ===== Playing with apt keys ===== | + | ==== Use apt-cacher |
| - | + | <file | /etc/apt/apt.conf.d/02proxy> | |
| - | <code bash> | + | Acquire::http { Proxy "http://192.168.0.231: |
| - | sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 8B48AD6246925553 | + | Acquire:: |
| - | </code> | + | </file> |
| - | + | or | |
| - | <code bash> | + | Replace all mirror hostnames with cachinghost/hostname in sources.list, so |
| - | sudo apt-get install debian-archive-keyring | + | < |
| - | wget http:// | + | |
| - | sudo dpkg -i pkg-mozilla-archive-keyring_1.1_all.deb | + | |
| - | sudo apt-get update | + | |
| - | </code> | + | |
| - | + | ||
| - | <code bash> | + | |
| - | gpg --keyserver pgpkeys.mit.edu --recv-key | + | |
| - | gpg -a --export 8B48AD6246925553 | sudo apt-key add - | + | |
| - | </ | + | |
| - | + | ||
| - | ===== List all package versions ===== | + | |
| - | + | ||
| - | + | ||
| - | ===== Install specified version ===== | + | |
| - | < | + | |
| - | apt-get install backupninja=0.9.8.1-1 | + | |
| - | apt-mark hold backupninja | + | |
| - | </code> | + | |
| - | + | ||
| - | ===== Install from backports ===== | + | |
| - | List version and priorities: | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | + | ||
| - | + | ||
| - | ===== Errors ===== | + | |
| - | Error: | + | |
| - | < | + | |
| - | http://httpredir.debian.org squeeze-lts Release: The following signatures were invalid: BADSIG 8B48AD6246925553 Debian Archive Automatic Signing Key (7.0/wheezy) < | + | |
| - | </code> | + | |
| - | + | ||
| - | <code bash> | + | |
| - | cd /var/ | + | |
| - | sudo mv lists lists.old | + | |
| - | sudo mkdir -p lists/ | + | |
| - | sudo apt-get update | + | |
| - | </code> | + | |
| - | + | ||
| - | 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: | + | |
| - | </code> | + | |
| - | + | ||
| - | <code bash> | + | |
| + | should now become: | ||
| + | < | ||