Error Starting RStudio?

R Session Startup Failure Report

RStudio Version

RStudio 1.4.1717, "Juliet Rose" (df86b69e, 2021-05-24) for Ubuntu Bionic

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.8 Chrome/69.0.3497.128 Safari/537.36

Error message

[No error available]

Process Output

The R session exited with code 127.

Error output:

/usr/lib/rstudio/bin/rsession: error while loading shared libraries: libpq.so.5: cannot open shared object file: No such file or directory

Standard output:

[No output emitted]

Logs

Log File

[No logs available]