Home > OS >  kali
kali

Time:11-12

Bosses, change the source, just went in to source a figure a situation has taken place, after change the source, press shift plus colon by wq again! The result is of figure 2

CodePudding user response:

Vim last doesn't normally closed, need to delete, swap file

CodePudding user response:

This is a read-only file is not allowed to modify,
So you need to,

1, add write permission
Sudo chmod a + w/etc/apt/sources list

2. Delete the swap file
Rm/etc/apt/sources. List. SWP

3. Write files, written save
: wq!

4. (if you want to change the file permissions back)
Sudo chmod 644/etc/apt/sources list