Skip to main content

Linux Command

Basic

sudo apt update        # Fetches the list of available updates
sudo apt upgrade # Installs some updates; does not remove packages
sudo apt full-upgrade # Installs updates; may also remove some packages, if needed
sudo apt autoremove # Removes any old packages that are no longer needed

AIO Update

sudo -- sh -c 'apt-get update; apt-get upgrade -y; apt-get full-upgrade -y; apt-get autoremove -y; apt-get autoclean -y'

Install tar gz

sudo tar xfz rider-*.tar.gz -C /opt/

Remove snap app

sudo snap remove appname

List Snap app

snap list

Update snap

sudo snap refresh appname
snap refresh --list

Check DNS Ubuntu

nmcli dev show | grep DNS

Restart Wifi after changing DNS

sudo systemctl restart NetworkManager

Fix Broken Update

Looks like your sources file is corrupted and there are broken packages. Remove the corrupted source file by pressing Ctrl + Alt + T to open a terminal, and type in:

sudo rm /etc/apt/sources.list
sudo software-properties-gtk

tick 4 ticks and revert