meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:general:apt [2015/07/01 07:48] niziaklinux: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>+
  
 <code bash> <code bash>
-sudo apt-get install debian-archive-keyring +echo 'Acquire::ForceIPv4 "true";'sudo tee /etc/apt/apt.conf.d/99force-ipv4
-wget http://ftp.pl.debian.org/debian/pool/main/p/pkg-mozilla-archive-keyring/pkg-mozilla-archive-keyring_1.1_all.deb +
-sudo dpkg -i pkg-mozilla-archive-keyring_1.1_all.deb +
-sudo apt-get update+
 </code> </code>
  
-<code bash> +==== Limit download speed === 
-gpg --keyserver pgpkeys.mit.edu --recv-key  8B48AD6246925553       +To limit download speed to 250kBytes/s:
-gpg -a --export 8B48AD6246925553 | sudo apt-key add - +
-</code>+
  
 +<file python /etc/apt/apt.conf.d/75lowerspeed>
 +Acquire
 +{
 +   Queue-mode "access";
 +   http
 +   {
 +      Dl-Limit "250";
 +   };
 +};
 +</file>
  
-===== 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:3142"; }; 
-apt-mark hold backupninja +Acquire::https::proxy "DIRECT"; 
-</code+</file
- +or 
-Error: +Replace all mirror hostnames with cachinghost/hostname in sources.list, so 
-<code> +<code>deb http://ftp.uni-kl.de/debian etch main</code>
-http://httpredir.debian.org squeeze-lts Release: The following signatures were invalid: BADSIG 8B48AD6246925553 Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org> +
-</code+
- +
-<code bash> +
-cd /var/lib/apt +
-sudo mv lists lists.old +
-sudo mkdir -p lists/partial +
-sudo apt-get update +
-</code> +
- +
-This will rebuild the cache. +
- +
-Error: +
-<code> +
-W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repository.spotify.com stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 13B00F1FD2C19886 +
-</code> +
- +
-<code bash>sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 13B00F1FD2C19886</code>+
  
 +should now become:
 +<code>deb http://192.168.0.17:3142/ftp.uni-kl.de/debian etch main</code>