@arutaz Did you install Mastodon as a DEB? If not, the package manager does not know that it uses the packages and suggests to remove them. One solution is to mark the ones that Mastodon depends on directly as manually installed (apt install package-name), then it will stop suggesting to delete them and their dependencies.