sudo apt install postgresql-10 postgresql-plpython-10 postgresql-plperl-10 libpq-dev
If you have PL/R functions in your existing database, then this is necessary:
I installed 17.04 ("Zesty Zapus")
I have an HP machine and I installed drivers for it from the CD.
I followed instructions found here. Except I should have replaced