Installation issues on Debian and Ubuntu

Solutions to different installation issues on Debian and Ubuntu