When I try to edit my sources.list file using the command:
$ gksu gedit /etc/apt/sources.list
It requests an administrative password and when I type the password, It says incorrect and try again.What to do? I am new to Linux and Ubuntu.
When I try to edit my sources.list file using the command:
$ gksu gedit /etc/apt/sources.list
It requests an administrative password and when I type the password, It says incorrect and try again.What to do? I am new to Linux and Ubuntu.
Use the default terminal text editor program nano instead of gedit to edit /etc/apt/sources.list
. Open the terminal and type:
sudo nano /etc/apt/sources.list
Alternatively you can also replace sudo nano /etc/apt/sources.list
with sudoedit /etc/apt/sources.list
. Because nano is the default terminal editor in Ubuntu the two commands do exactly the same thing.
The instructions for using nano are always displayed at the bottom of the page. Use the keyboard combination Ctrl + O and after that press Enter to save the file to its current location. Use the keyboard combination Ctrl + X to exit nano.