When I try to do apt-get update, nothing is working. I have got info that I should edit /etc/sources.list, but when I try writing  deb http://ftp.de.debian.org/debian/ jessie main contrib non-freeI am unable to save the file, as I get an error saying that I cannot edit the sources list. 
Unable to edit /etc/apt/sources.list
debian