-1

I am trying to install postgreSQL

I open terminal and type the

gedit  /etc/apt/sources.list.d/pgdg.list

then in Gedit I enter this line

deb http://apt.postgresql.org/pub/repos/apt/ zesty-pgdg main

The when I try to save the file red colored text appears saying:

Could not save the file “/etc/apt/sources.list.d/pgdg.list”. you do not have the permission necessary to save the file. Please check that you typed the location correctly and try again

How do I solve this problem?

Zanna
  • 72,312

1 Answers1

1

You need to modify this file as root. From the terminal, type

sudo -H gedit /etc/apt/sources.list.d/pgdg.list

Then you can modify inside gedit and save it as you tried before

The sudo command means that you will run the command as root and it will ask you for your password

Félicien
  • 1,203