DEV Community

Muhammad Farooq
Muhammad Farooq

Posted on

How to install postgresql-server-dev-11 on ubuntu

to install postgresql-server-dev-11 on ubuntu

you need to run this command:

sudo apt install postgresql-server-dev-11

but it may give the following Error:

Unable to locate package postgresql-server-dev-11

This is probably happening because your version of Ubuntu does not have this package available. You could add the PostgreSQL package repository on your system, add the GPG key of it, and then update the package list. Just use these commands:

# Create the file repository configuration:
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'

# Import the repository signing key:
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -

# Update the package lists:
sudo apt-get update
Enter fullscreen mode Exit fullscreen mode

I hope this will help you.

Reference

postgresql-server-dev-11 is recommended for the installation of apache Age and Age viewer

see more about Apache Age:

official website: https://age.apache.org/

Github: https://github.com/apache/age

Top comments (0)