首页 > 系统服务 > 详细

Ubuntu问题:E45: 'readonly' option is set (add ! to override)错误解决

时间:2017-10-05 20:49:47      阅读:3435      评论:0      收藏:0      [点我收藏+]

问题描述:E45: ‘readonly‘ option is set (add ! to override)

问题分析:该错误为当前用户没有权限对文件作修改

问题解决:

输入

 

:w !sudo tee %
  • :w – write
  • !sudo – call shell sudo command
  • tee – the output of write (:w) command is redirected using tee
  • % – current file name

Ubuntu问题:E45: 'readonly' option is set (add ! to override)错误解决

原文:http://www.cnblogs.com/haimishasha/p/7629935.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!