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 [2017/02/08 08:13] – niziak | linux:general:apt [2026/02/06 08:17] (current) – niziak | ||
|---|---|---|---|
| Line 34: | Line 34: | ||
| should now become: | should now become: | ||
| < | < | ||
| - | |||
| - | ====== Commandline ====== | ||
| - | ===== 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 from backports ===== | ||
| - | List version and priorities: | ||
| - | < | ||
| - | < | ||
| - | < | ||
| - | |||
| - | ===== Hold package ===== | ||
| - | <code bash> | ||
| - | |||
| - | |||
| - | ====== Errors ====== | ||
| - | 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> | ||
| - | |||