Skip to content

Reference (Ubuntu)

manx52 edited this page Aug 27, 2024 · 6 revisions

Ubuntu Package issues

pkill -f 'PATTERN' #kill all with pattern

# Force remove package
sudo dpkg --remove --force-remove-reinstreq <package name>

# Search all ubuntu packages
dpkg -l | grep <package name>

# Upgrade and update
sudo apt update
sudo apt upgrade
sudo apt autoclean

# Install specific version of a package
sudo apt install packagename=package_version

# Check ubuntu package list version
sudo vim /etc/apt/sources.list

# Remove unnecessary ubuntu package lists
cd /etc/apt/sources.list.d
rm -rf <unnecessary package lists>

Network Issues

# Identify processes in a system using a certain port
sudo netstat -tulpn | grep <port>

# Ping
ping <ip address>

# Check if a certain port is open at a certain IP address
telnet <ip address> <port>

# Check packets
sudo apt-get install wireshark
sudo wireshark
# In the wireshark command do a filter such as udp.port=<port_id> to get packets

Nvidia driver problems

sudo apt-get --purge remove nvidia-*
sudo ubuntu-drivers autoinstall

Switch to nvidia driver metapackage