I compiled from source. I looked by samba3 packages, but found nothing. How can I remove the 3.x version? "apt-get" probably... "apt-cache search samba" should probably help you know what the package names might be. See also: https://www.debian.org/doc/manuals/debian-faq/ch-pkgtools.en.html