Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 79946  / 1 Year ago, sat, may 6, 2023, 1:12:55

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.


More From » permissions

 Answers
5

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.


[#29943] Sunday, May 7, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
attagjump

Total Points: 272
Total Questions: 127
Total Answers: 124

Location: Taiwan
Member since Fri, Sep 17, 2021
3 Years ago
;