I know the question how to correct a malformed line in sources.list has been asked. I tried to follow the instructions on the posted answer but I can't access sources.list when I enter sudo -H gedit /etc/apt/sources.list I get the following:
o protocol specified
Unable to init server: Could not connect: Connection refused
(gedit:18598): Gtk-WARNING **: cannot open display: :0
bill@bill-GA-880GA-UD3H:~$