CodePudding user response:
Vim last doesn't normally closed, need to delete, swap fileCodePudding 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