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/07/01 07:48] – 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> | + | |
| + | <file python / | ||
| + | Acquire | ||
| + | { | ||
| + | | ||
| + | http | ||
| + | { | ||
| + | Dl-Limit " | ||
| + | }; | ||
| + | }; | ||
| + | </ | ||
| - | ===== Install specified version ===== | + | ==== Use apt-cacher |
| - | <code> | + | <file | /etc/apt/apt.conf.d/02proxy> |
| - | apt-get install backupninja=0.9.8.1-1 | + | Acquire::http { Proxy "http://192.168.0.231: |
| - | apt-mark hold backupninja | + | Acquire:: |
| - | </code> | + | </file> |
| - | + | or | |
| - | Error: | + | Replace all mirror hostnames with cachinghost/hostname in sources.list, so |
| - | < | + | < |
| - | 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: | ||
| + | < | ||