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/06/02 19:16] – 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 === | ||
| To limit download speed to 250kBytes/ | To limit download speed to 250kBytes/ | ||
| Line 28: | Line 36: | ||
| ====== 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 46: | Line 70: | ||
| </ | </ | ||
| + | <code bash> | ||
| + | apt-get update 2> / | ||
| + | </ | ||
| ===== List all package versions ===== | ===== List all package versions ===== | ||
| Line 66: | 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 72: | Line 103: | ||
| < | < | ||
| < | < | ||
| + | |||
| + | <file | / | ||
| + | Package: * | ||
| + | Pin: release a=jessie-backports | ||
| + | Pin-Priority: | ||
| + | |||
| + | Package: * | ||
| + | Pin: release a=stretch-backports | ||
| + | Pin-Priority: | ||
| + | </ | ||
| ===== Hold package ===== | ===== Hold package ===== | ||
| - | echo package_name hold | sudo dpkg --set-selections | + | <code bash>echo package_name hold | sudo dpkg --set-selections</ |
| ====== Errors ====== | ====== 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 ===== | ||
| + | |||
| Error: | Error: | ||
| < | < | ||
| Line 100: | 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 / | ||
| + | |||
| + | </ | ||