I am trying to edit sources.list using vi editor but getting the following error while saving the file:
/etc/apt/sources.list\" E212: Can\'t open file for wr
You just need to access to Gemfile with root access. Before vi:
vi
command:
sudo su -
then:
vi ~/...