

I used to work night shifts and sometimes had to function afterwards, sometimes for long periods of time. What helped me to stay awake and somewhat clear-minded is light physical activity. Don’t sit too much, move, walk around, do some squats, do push ups if you can. Get some fresh air. Cold water on the face helps. If your eyes tend to get tired get some eye drops (artificial tears). And of course coffee helps too.
Also be careful, it’s easy to lose balance in a sleep deprived state. So no dangerous surroundings if you can help it.
Gnome-Software and GDebi can do exactly that for you. Download a deb, right click “open with X”, and they’ll install it for you using GUI. You can even change file associations so debs are opened by gdebi/gnome-software by simple double-clicking.