-
Notifications
You must be signed in to change notification settings - Fork 0
Ubuntu
vzhgit edited this page Mar 19, 2021
·
12 revisions
sudo apt update && sudo apt upgrade && sudo apt autoremove -y && cat /var/run/reboot-required
only for current session:
alias apt-get="sudo apt-get"
permanently
sudo gedit ~/.bashrc
alias apt-get="sudo apt-get"
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
How To Add Swap Space on Ubuntu 18.04
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.
Universal command to fix this issue for many different packages that have this issue:
sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com