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 [2016/04/18 08:39] – niziak | linux:general:apt [2021/09/26 07:47] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== APT ====== | ====== APT ====== | ||
| + | |||
| ===== Configuration ===== | ===== Configuration ===== | ||
| + | |||
| + | ==== Force IPv4 ==== | ||
| + | |||
| + | <code bash> | ||
| + | echo ' | ||
| + | </ | ||
| ==== Limit download speed === | ==== Limit download speed === | ||
| Line 28: | Line 35: | ||
| < | < | ||
| - | ===== Commandline ===== | + | ====== Commandline ====== |
| + | |||
| + | ===== Disable fsync ===== | ||
| + | |||
| + | This trick helps on BTRFS FS | ||
| + | <code bash> | ||
| + | apt-get install eatmydata | ||
| + | eatmydata apt-get update | ||
| + | </ | ||
| + | |||
| + | Or wrap some commands permanently with eatmydata | ||
| + | <code bash> | ||
| + | ln -s / | ||
| + | ln -s / | ||
| + | ln -s / | ||
| + | </ | ||
| ===== Playing with apt keys ===== | ===== Playing with apt keys ===== | ||
| Line 47: | Line 70: | ||
| </ | </ | ||
| + | <code bash> | ||
| + | apt-get update 2> / | ||
| + | </ | ||
| ===== List all package versions ===== | ===== List all package versions ===== | ||
| Line 67: | Line 93: | ||
| apt-mark hold backupninja | apt-mark hold backupninja | ||
| </ | </ | ||
| + | |||
| + | ===== Install with low prio questions ===== | ||
| + | To change dpkg-configure question priorities: | ||
| + | <code bash> | ||
| ===== Install from backports ===== | ===== Install from backports ===== | ||
| Line 74: | Line 104: | ||
| < | < | ||
| + | <file | / | ||
| + | Package: * | ||
| + | Pin: release a=jessie-backports | ||
| + | Pin-Priority: | ||
| + | |||
| + | Package: * | ||
| + | Pin: release a=stretch-backports | ||
| + | Pin-Priority: | ||
| + | </ | ||
| + | |||
| + | ===== Hold package ===== | ||
| + | <code bash> | ||
| + | |||
| + | |||
| + | ====== Errors ====== | ||
| + | |||
| + | ===== trying to overwrite | ||
| + | < | ||
| + | dpkg: error processing archive / | ||
| + | | ||
| + | dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) | ||
| + | Errors were encountered while processing: | ||
| + | / | ||
| + | Config is in use. | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | apt-get -f -o Dpkg:: | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== BADSIG ===== | ||
| - | ===== Errors ===== | ||
| Error: | Error: | ||
| < | < | ||
| Line 98: | Line 159: | ||
| + | ===== Download is performed unsandboxed ===== | ||
| + | Warning: | ||
| + | < | ||
| + | W: Download is performed unsandboxed as root as file '/ | ||
| + | </ | ||
| + | <code bash> | ||
| + | |||
| + | sudo chown -Rv _apt:root / | ||
| + | sudo chmod -Rv 774 / | ||
| + | |||
| + | </ | ||