Ubantu E325 错误的解决办法

 

这个错误是由于未正确关闭文本编辑器导致的:

图一

解决办法:退出后输入 sudo vim /etc/hosts

图二

直接输入 D 即可!

注意:退出文本编辑器的正确方式是:ESC键 + :wq.

 

我们可能注意到 ,图一和图二的 绿字 部分是有差别的,这是什么原因造成的呢?

图一的提示是出现在输入:vim /etc/hosts  时出现的

图二的提示是出现在输入:sudo vim /etc/hosts 时出现的

我们可以看到二者的指令差别在于有没有 sudo,那么 sudo 的作用是什么,让我们看一下:

在没有进入 root 目录下时,输入vim /etc/hosts 获得的文件是 [readonly] 类型的,不具有更改权限,更改后会报错。

在没有进入 root 目录下时,输入sudo vim /etc/hosts 时,获得了文件的改写权限,对文件更改不会出错。 

结论:sudo 可以获得文件更多的操作权限。

 

转载于:https://www.cnblogs.com/zhibei/p/9930839.html

Retrying Downloading key 5b05ccde140c2876 for org.eclipse.jgit:org.eclipse.jgit:5.6.0.201912101111-r@jar.asc (attempt 1 of 40, 2a00:c6c0:0:154:1:0:0:1, hkp://keys.openpgp.org): Keyserver should respond with successful HTTP codes (200..300), actual code is 404, url: http://keys.openpgp.org:11371/pks/lookup?op=get&options=mr&search=0x5b05ccde140c2876 Retrying Downloading key 2c7b12f2a511e325 for org.slf4j:slf4j-api:1.7.2@jar.asc (attempt 1 of 40, 37.218.245.50, hkp://keys.openpgp.org): Keyserver should respond with successful HTTP codes (200..300), actual code is 404, url: http://keys.openpgp.org:11371/pks/lookup?op=get&options=mr&search=0x2c7b12f2a511e325 Retrying Downloading key 5b05ccde140c2876 for org.eclipse.jgit:org.eclipse.jgit:5.6.0.201912101111-r@jar.asc (attempt 2 of 40, 2a00:c6c0:0:154:1:0:0:1, hkp://keys.openpgp.org): Keyserver should respond with successful HTTP codes (200..300), actual code is 404, url: http://keys.openpgp.org:11371/pks/lookup?op=get&options=mr&search=0x5b05ccde140c2876 Retrying Downloading key 2c7b12f2a511e325 for org.slf4j:slf4j-api:1.7.2@jar.asc (attempt 2 of 40, 37.218.245.50, hkp://keys.openpgp.org): Keyserver should respond with successful HTTP codes (200..300), actual code is 404, url: http://keys.openpgp.org:11371/pks/lookup?op=get&options=mr&search=0x2c7b12f2a511e325 Retrying Downloading key efe8086f9e93774e for junit:junit:4.12@jar.asc (attempt 1 of 40, 37.218.245.50, hkp://keys.openpgp.org): Keyserver should respond with successful HTTP codes (200..300), actual code is 404, url: http://keys.openpgp.org:11371/pks/lookup?op=get&options=mr&search=0xefe8086f9e93774e
03-12
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值