Skip to content
vzhgit edited this page Mar 19, 2021 · 12 revisions

Update OS

sudo apt update && sudo apt upgrade && sudo apt autoremove -y && cat /var/run/reboot-required

Add Alias

only for current session:

alias apt-get="sudo apt-get"

permanently

sudo gedit ~/.bashrc
alias apt-get="sudo apt-get"

Update certificates

if after apt update command you see:

An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: ...

sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com

Turn on swap file:

How To Add Swap Space on Ubuntu 18.04

Systemd logs (journalctl) are too large and slow

To limit log files to a specific size systemd provides a vacuum feature to "suck out" older information from log files.

journalctl --vacuum-size=200M

To archive:

> journalctl --disk-usage
Archived and active journals take up 136.0M on disk.

And set SystemMaxUse=200M in /etc/systemd/journald.conf.

Yarn package and so on ... key expiry date updated (EXPKEYSIG ...)

Universal command to fix this issue for many different packages that have this issue:

sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com
Clone this wiki locally