cd /etc/apt
cp trusted.gpg trusted.gpg.d -v
Tag Archives: apt
apt install keep skip alternatives
To keep php7.2 default
before apt change priority value 72 -> 92 to keep this value biggest
/var/lib/dpkg/alternatives/php
/var/lib/dpkg/alternatives/php-fpm.sock
update-alternatives --query php
Name: php
Link: /usr/bin/php
Slaves:
php.1.gz /usr/share/man/man1/php.1.gz
Status: auto
Best: /usr/bin/php7.2
Value: /usr/bin/php7.2
Alternative: /usr/bin/php7.2
Priority: 92
Slaves:
php.1.gz /usr/share/man/man1/php7.2.1.gz
Alternative: /usr/bin/php7.4
Priority: 74
Slaves:
php.1.gz /usr/share/man/man1/php7.4.1.gz
server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
mv -v /usr/share/ca-certificates/mozilla/DST_Root_CA_X3.crt /tmp/
'/usr/share/ca-certificates/mozilla/DST_Root_CA_X3.crt' -> '/tmp/DST_Root_CA_X3.crt'
update-ca-certificates
Updating certificates in /etc/ssl/certs...
W: /usr/share/ca-certificates/mozilla/DST_Root_CA_X3.crt not found, but listed in /etc/ca-certificates.conf.
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
apt update
apt show upgradable security
apt list --upgradable | grep "\-security"
Unable to locate package lsb_release
apt install -y lsb-release
bash: lsb_relase: command not found
apt update && apt install -y lsb-release && apt clean all
linux-image-generic : Depends: linux-image-4.4.0-184-generic but it is not going to be installed or
Check /boot is not 100% full and remove some old kernels, than run:
apt-get -f install
The following packages were automatically installed and are no longer required
apt-get autoremove
W: GPG error: http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E5267A6C
E: Unable to locate package add-apt-repository
apt-get install software-properties-common
E: Could not get lock /var/lib/dpkg/lock-frontend – open (11: Resource temporarily unavailable)
ps aux | grep -i apt
root 13794 0.1 0.5 148856 91052 ? S Apr20 58:38 apt-get upgrade -y
kill 13794
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem
dpkg --configure -a
apt-get check updates
apt-get --just-print upgrade