I mainly use Windows, but sometimes I try out Linux (currently with Kubuntu), so I’ll put her the resources that helped me.
Show which ports are used and the related processes :
sudo lsof -n -P -i +c 13
gdebi : gdebi is a simple tool to install deb files. It lets you install local deb packages resolving and installing its dependencies.