Additional checks for aptitude to make the script functional on Ubuntu