Apt: Difference between revisions
From DWIKI
(10 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
| | ||
=Unattended upgrades= | |||
*https://pimylifeup.com/unattended-upgrades-debian-ubuntu/ | |||
==Disable unattended upgrades== | |||
In /etc/apt/apt.conf.d/20auto-upgrades | |||
APT::Periodic::Unattended-Upgrade "0"; | |||
=HOWTO= | |||
==Extract files from .deb== | |||
dpkg-deb | |||
= FAQ = | = FAQ = | ||
Line 13: | Line 22: | ||
apt install madison-lite | apt install madison-lite | ||
apt-cache madison somepackage | apt-cache madison somepackage | ||
or | |||
apt-show packagename | |||
== have been kept back == | == have been kept back == | ||
Usually means you should run dist-upgrade | Usually means you should run | ||
apt dist-upgrade' | |||
if that fails try | |||
apt upgrade packagename | |||
| | ||
Line 24: | Line 38: | ||
dpkg --get-selections | grep hold | dpkg --get-selections | grep hold | ||
==What packages depend on package== | |||
apt-cache rdepends --installed libc6-dev | |||
=== Clear cache === | === Clear cache === | ||
apt-get clean | apt-get clean | ||
==Could not handshake: The TLS connection was non-properly terminated.== | |||
try http instead of https | |||
==Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead== | |||
fart a lot | |||
==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 |
Latest revision as of 15:27, 18 April 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
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead
fart a lot
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