Узнать версию устанавливаемого пакета sudo apt-cache search sambasudo apt-cache show samba | grep -i version