updated for ubuntu LTS and other versions