The first step tells to download ans install the public signing key
but I am getting below error:-
error: cannot open Packages index using db5 - Permission denied (13)
error: cannot open Packages database in /var/lib/rpm
error: https://artifacts.elastic.co/GPG-KEY-elasticsearch: key 1 import failed.
I am trying to create elasticsearch.repo inside /etc/yum.repos.d path using vi
I am able to insert in it.
I am able to enter command mode by pressing escape key.
But when I try to save and quit using :wq I am getting below error.
E212: Can't open file for writing
Press ENTER or type command to continue