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 [2021/09/26 07:47] – niziak | linux:general:apt [2026/02/06 08:17] (current) – niziak | ||
|---|---|---|---|
| Line 35: | Line 35: | ||
| < | < | ||
| - | ====== 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 ===== | ||
| - | |||
| - | <code bash> | ||
| - | sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 8B48AD6246925553 | ||
| - | </ | ||
| - | |||
| - | <code bash> | ||
| - | sudo apt-get install debian-archive-keyring | ||
| - | wget http:// | ||
| - | sudo dpkg -i pkg-mozilla-archive-keyring_1.1_all.deb | ||
| - | sudo apt-get update | ||
| - | </ | ||
| - | |||
| - | <code bash> | ||
| - | gpg --keyserver pgpkeys.mit.edu --recv-key | ||
| - | gpg -a --export 8B48AD6246925553 | sudo apt-key add - | ||
| - | </ | ||
| - | |||
| - | <code bash> | ||
| - | apt-get update 2> / | ||
| - | </ | ||
| - | ===== List all package versions ===== | ||
| - | |||
| - | <code bash> | ||
| - | < | ||
| - | lxc: | ||
| - | Installed: 1: | ||
| - | Candidate: 1:1.1.5-1 | ||
| - | Version table: | ||
| - | | ||
| - | 500 http:// | ||
| - | *** 1: | ||
| - | 100 / | ||
| - | |||
| - | </ | ||
| - | |||
| - | ===== Install specified version ===== | ||
| - | < | ||
| - | apt-get install backupninja=0.9.8.1-1 | ||
| - | apt-mark hold backupninja | ||
| - | </ | ||
| - | |||
| - | ===== Install with low prio questions ===== | ||
| - | To change dpkg-configure question priorities: | ||
| - | <code bash> | ||
| - | |||
| - | ===== Install from backports ===== | ||
| - | List version and priorities: | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | |||
| - | <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 ===== | ||
| - | |||
| - | Error: | ||
| - | < | ||
| - | http:// | ||
| - | </ | ||
| - | |||
| - | <code bash> | ||
| - | cd / | ||
| - | sudo mv lists lists.old | ||
| - | sudo mkdir -p lists/ | ||
| - | sudo apt-get update | ||
| - | </ | ||
| - | |||
| - | 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: http:// | ||
| - | </ | ||
| - | |||
| - | <code bash> | ||
| - | |||
| - | |||
| - | ===== 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 / | ||
| - | |||
| - | </ | ||