$ vim /etc/apt/sources.list 步驟2.收到"/etc/apt/sources.list"E212: Can't open file for writing 錯誤。 步驟3.執行 sudo 權限修復錯誤。 $ sudo vim /etc/apt/sources.list 方法2. 檢查檔案是否被鎖定,修復無法打開文件寫入 如果你是 root 或 sudo 用戶,但你仍然無法打開文件進行寫入。然後,您可以...
We can always entercommand mode(regardless of the mode we’re working on) by pressing theEsckey. Let’s see how we can perform the same operations that we outlined fornanoin the previous section, but now withvim. Don’t forget to hit theEnterkey to confirm the vim command! To access ...
Method 2. Check If the File Is Locked to Fix Can't Open File for Writing If you are a root or sudo user, but you still can't open the file for writing. Then, you can try to exit the file and check if the "I" command locks it. Step 1.Find the file with this command: lsatt...
$ vim /etc/apt/sources.list 步驟2.收到"/etc/apt/sources.list"E212: Can't open file for writing 錯誤。 步驟3.執行 sudo 權限修復錯誤。 $ sudo vim /etc/apt/sources.list 方法2. 檢查檔案是否被鎖定,修復無法打開文件寫入 如果你是 root 或 sudo 用戶,但你仍然無法打開文件進行寫入。然後,您可以...