简体   繁体   中英

sudo vi /usr/share/nautilus-python/extensions not allowing to sav ethe file

I am editing the file to add sub version

    To install for all users, copy RabbitVCS.py to:
    /usr/share/nautilus-python/extensions

 Sort sequence: [\/]$,\<core\%(\.\d\+\)\=\>,\.h$,\.c$,\.cpp$,\~\=\*$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\RabbitVCS.py,\~$

Buty while saving its showing error

E45: 'readonly' option is set (add ! to override)    

Tried command

:w ! sudo tee %

But not allowing to save bcz of directory

Maybe chattr attribute is set ?
Check it lsattr /usr/share/nautilus-python/extensions . If i is present in the output unset it chattr -i /usr/share/nautilus-python/extensions

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM