Узнать версию устанавливаемого пакета

sudo apt-cache search samba

sudo apt-cache show samba | grep -i version