Added bigger timeout and exception handling for apt calls