General
sudo apt-get update
sudo apt update -m
- Updates your system.
sudo apt-get upgrade
sudo apt full-upgrade
- Upgrades your system. Such as core system files and individual repository updates.
sudo ubuntu-drivers autoinstall
- If you have an ubuntu based system like Pop!, you can use this to autoinstall drivers which may be missing or broken.
sudo dpkg --get-selections
- Lists all installed files for Ubuntu-based distributions. For other distros here are some examples.
sudo apt --fix-missing update
- Fixes broken packages.
sudo apt clean
- Cleans local repository of retrieved package files.
sudo dpkg --configure -a
apt list –installed
- Lists all installed files.
sudo apt install <filename>
sudo apt install -f
- Installs a program.
sudo apt install pop-desktop
- Will install any missing dependencies from Pop! OS.
Programs
Install, Uninstall and Purge are the three defaults for program command line arguments. Purge is a deep clean remove which can be useful if there is some problems removing all the little parts of a program.
sudo apt-get install <program name>
sudo apt remove <program name>
sudo apt autoremove --purge
sudo apt-get --purge remove <program name>
Sound Issues
‘Turning it on and off again’ is sometimes the greatest advice for Linux sound issue tech problems.
sudo alsa force-reload
Flush DNS
sudo systemd-resolve --flush-caches
sudo systemctl restart nscd.service
sudo systemctl restart named sudo
systemctl restart dnsmasq
Boot to BIOS
systemctl reboot --firmware-setup
Boot to Recovery
If your PC is failing to boot. Such as having a headers error message (like vm-linuz) you can use this when your BIOS screen is loading to get into Pop! OS recovery.
ctrl + alt + F1
Fix Boot Partition
dpkg -l | grep linux-image
sudo apt remove --purge linux-image-(numbers here)-generic
You can also see their numbers in Disks.
You can go into nautilus (root, then type in nautilus to enter nautilus) > Boot, to delete them manually also.
Repair Filesystem
Only use these codes prior to the OS from booting, such as in Gparted to repair your filesystem. Change sd1 with your fsck -l drive’s code.
sudo fdisk -l
fsck /dev/sda1
sudo fsck -f /dev/sda1
Flatpak and Snap
List Flatpak or Snap installed programs.
flatpak list
snap list
