Apt: Difference between revisions
From DWIKI
m (→FAQ) |
m (→FAQ) |
||
Line 66: | Line 66: | ||
===Key is stored in legacy trusted.gpg keyring=== | ===Key is stored in legacy trusted.gpg keyring=== | ||
Check [https://itsfoss.com/apt-key-deprecated/ apt-key is deprecated] | Check [https://itsfoss.com/apt-key-deprecated/ apt-key is deprecated] | ||
===Certificate verification failed: The certificate is NOT trusted.=== | |||
Maybe a craphole like ppa.launchpad, try | |||
deb [trusted=yes] ... | |||
in sources.list |
Revision as of 13:19, 16 July 2024
Debian/Ubuntu package manager
Unattended upgrades
Disable unattended upgrades
In /etc/apt/apt.conf.d/20auto-upgrades
APT::Periodic::Unattended-Upgrade "0";
HOWTO
Extract files from .deb
dpkg-deb
FAQ
Show version of packages before installing
apt-get -s install somepackage
or
apt install madison-lite apt-cache madison somepackage
or
apt-show packagename
have been kept back
Usually means you should run
apt dist-upgrade'
if that fails try
apt upgrade packagename
Unable to correct problems, you have held broken packages.
Try
dpkg --get-selections | grep hold
What packages depend on package
apt-cache rdepends --installed libc6-dev
Clear cache
apt-get clean
Could not handshake: The TLS connection was non-properly terminated.
try http instead of https
Depends: but it is not going to be installed
First try
apt-get update && apt-get upgrade
E: Unable to correct problems, you have held broken packages.
Which services should be restarted?
That's from needrestart
Prevent restarting all services when installing a package
NEEDRESTART_MODE=i apt install somepackage
Error messages
Key is stored in legacy trusted.gpg keyring
Check apt-key is deprecated
Certificate verification failed: The certificate is NOT trusted.
Maybe a craphole like ppa.launchpad, try
deb [trusted=yes] ...
in sources.list