I'm trying to install postgreSQL 9.6 in Ubuntu 18.04 via Ubuntu Software Centre and type from terminal
sudo apt-get install postgresql-9.6
according to official documentation https://www.postgresql.org/download/linux/ubuntu/
Create the file /etc/apt/sources.list.d/pgdg.list and add a line for the repository
deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main
Import the repository signing key, and update the package lists
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
The version to be installaed is 10
Any help?
Thanks in advance.
postgresql:
Installed: (none) Candidate: 10+191.pgdg18.04+1 Version table: 10+191.pgdg18.04+1 500 500 http://apt.postgresql.org/pub/repos/apt bionic-pgdg/main amd64 Packages 500 http://apt.postgresql.org/pub/repos/apt bionic-pgdg/main i386 Packages 10+190 500 500 http://gr.archive.ubuntu.com/ubuntu bionic/main amd64 Packages 500 http://gr.archive.ubuntu.com/ubuntu bionic/main i386 Packages
If I check where are the postgresql folders, it seems that I have both versions, 9.6 and 10
wget
command. What exactly goes wrong?sudo apt remove postgresql-10
.