Because you are using Ubuntu, you can only get root permission with sudo. To edit the file /etc/apt/sources.list with vim, you would issue command:
Code:
sudo vim /etc/apt/sources.list
To learn how to use vim editor, type: vimtutor in a terminal/console and take a quick half hour course. If you want to edit the file with gedit you would issue command:
Code:
sudo gedit /etc/apt/sources.list
Any time you need to do something as root/administrator in Ubuntu, you have to put "sudo" at the beginning of your command, then you will be required to enter the administrator password before you gain root privilege.