I am trying to write a script which works based on the knowledge that each Linux Mint release was based on a particular Ubuntu release.
However, I do not want to install Linux Mint to verify that, but instead let the users of the script test it, if they need it.
Can I rely on the presence of /etc/debian_version, though? I am doing this in order to detect Debian and its derivatives. It works reliably on Debian and Ubuntu, but does Linux Mint have this file?
Note: I am aware of lsb_release and I am using that in order to figure out more details later on. But the existence of /etc/debian_version is a way to make assumptions about certain things before even checking for and invoking lsb_release.

if(and assuming Bash) I'd always dotype dpkg-vendor > /dev/null 2>&1 || { echo "No dpkg-dev!"; exit 1; }, which tests for the availability of the program. And it turns out this is part ofdpkg-devwhich is one of the packages that gets installed viabuild-essential, but it's not part of a base installation. Still, very cool idea and method. – 0xC0000022L Feb 02 '15 at 08:54/etc/debian_version, that reports information stored in thebase-filespackage which on Mint comes straight from Ubuntu./etc/lsb-release,/etc/issue... also come frombash-files, but themintsystempackage registersFiletriggers for them and overwrites them whenever they're modified by another package. – Stéphane Chazelas Feb 02 '15 at 21:46