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/06/25 10:47] niziaklinux:general:apt [2026/02/06 08:17] (current) niziak
Line 1: Line 1:
-Install specified version +====== APT ======
-<code> +
-apt-get install backupninja=0.9.8.1-1 +
-apt-mark hold backupninja +
-</code>+
  
-Error: +===== Configuration ===== 
-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>+ 
 +==== Force IPv4 ====
  
 <code bash> <code bash>
-cd /var/lib/apt +echo 'Acquire::ForceIPv4 "true";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4
-sudo mv lists lists.old +
-sudo mkdir -p lists/partial +
-sudo apt-get update+
 </code> </code>
  
-This will rebuild the cache.+==== Limit download speed === 
 +To limit download speed to 250kBytes/s: 
 + 
 +<file python /etc/apt/apt.conf.d/75lowerspeed> 
 +Acquire 
 +
 +   Queue-mode "access"; 
 +   http 
 +   { 
 +      Dl-Limit "250"; 
 +   }; 
 +}; 
 +</file> 
 + 
 +==== Use apt-cacher ==== 
 +<file | /etc/apt/apt.conf.d/02proxy> 
 +Acquire::http { Proxy "http://192.168.0.231:3142"; }; 
 +Acquire::https::proxy "DIRECT"; 
 +</file> 
 +or 
 +Replace all mirror hostnames with cachinghost/hostname in sources.list, so 
 +<code>deb http://ftp.uni-kl.de/debian etch main</code> 
 + 
 +should now become: 
 +<code>deb http://192.168.0.17:3142/ftp.uni-kl.de/debian etch main</code>