I need to install postgres server 11 on ubuntu linux.
because it is recommended during the installation of postgres-11 and apache-age from source code:
i used this command in ubuntu linux
sudo apt install postgresql-server-dev-11
but it gives error:
Unable to locate package postgresql-server-dev-11
can someone please help me
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:
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt update
And then run your code
sudo apt install postgresql-server-dev-11
Here's my reference Setup PostgreSQL 11