DEEPIN现在改不了HOSTS文件,高手请都来指点一下
Tofloor
poster avatar
弓长俊
deepin
2019-02-19 04:49
Author
本帖最后由 jgtm1984 于 2019-2-19 20:02 编辑

DEEPIN现在改不了HOSTS文件,越来越失望了。还不如WINDOWS系统,WINDOWS都能改HOSTS。系统就是系统,搞那么多限制做什么呢?
Reply Favorite View the author
All Replies
1 / 2
To page
avatar
Dracarys
deepin
2019-02-19 05:17
#1
详细说说,怎么个改不了
Reply View the author
avatar
aksss
deepin
2019-02-19 05:23
#2
linux 系统限制多  ? 老哥不上欢乐喜剧人真是浪费了。 
Reply View the author
avatar
魔法师
deepin
2019-02-19 05:24
#3
你是个傻子?sudo vim /etc/hosts 就改完了,你还想说什么?不会vim??  sudo apt install gedit ,sudo gedit /etc/hosts 应该会了吧?还不会?ubuntu 你又是怎么改的?ubuntu root 用户登录文管里双击是吧。那不好意思,deepin可能不适合你。
Reply View the author
avatar
nhnhwsnh
deepin
2019-02-19 05:36
#4
估计是方法不对,Linux的hosts文件在/etc/hosts,文件所有者是root,注意权限!
Reply View the author
avatar
DaveMax
deepin
2019-02-19 05:39
#5
这玩意难改吗````
就算不会命令行,直接管理员权限打开文件夹修改文件不就行了
Reply View the author
avatar
thisbug
deepin
2019-02-19 06:13
#6
去应用商店搜SwitchHosts,下载下来安装就完了
Reply View the author
avatar
弓长俊
deepin
2019-02-19 06:27
#7
(gedit:4826): dbind-WARNING **: 22:26:51.393: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
Reply View the author
avatar
弓长俊
deepin
2019-02-19 06:29
#8
https://bbs.deepin.org/post/174847
这玩意难改吗````
就算不会命令行,直接管理员权限打开文件夹修改文件不就行了 ...

DEEPIN 15.7直接 sudo gedit /etc/hosts 直接改,现在升级以后不行了。造成不能访问维基百科……
Reply View the author
avatar
弓长俊
deepin
2019-02-19 06:30
#9
https://bbs.deepin.org/post/174847
你是个傻子?sudo vim /etc/hosts 就改完了,你还想说什么?不会vim??  sudo apt install gedit ,sudo g ...

DEEPIN 15.7直接 sudo gedit /etc/hosts 直接改,现在升级以后不行了。造成不能访问维基百科……
Reply View the author
avatar
弓长俊
deepin
2019-02-19 06:31
#10
https://bbs.deepin.org/post/174847
linux 系统限制多  ? 老哥不上欢乐喜剧人真是浪费了。 

菜鸟一个,多包涵
Reply View the author
avatar
弓长俊
deepin
2019-02-19 06:32
#11
https://bbs.deepin.org/post/174847
详细说说,怎么个改不了

DEEPIN 15.7直接 sudo gedit /etc/hosts 直接改,现在升级以后不行了。造成不能访问维基百科……
Reply View the author
avatar
Dracarys
deepin
2019-02-19 06:53
#12
https://bbs.deepin.org/post/174847
DEEPIN 15.7直接 sudo gedit /etc/hosts 直接改,现在升级以后不行了。造成不能访问维基百科…… ...

我尝试了一下,没有复现,添加的条目有效
Reply View the author
avatar
cosct
deepin
2019-02-19 07:08
#13
https://bbs.deepin.org/post/174847
DEEPIN 15.7直接 sudo gedit /etc/hosts 直接改,现在升级以后不行了。造成不能访问维基百科…… ...

sudo dedit /etc/hosts
试试这个,你不了解deepin用自己写的dedit替代了gedit么?不了解deepin反而奇怪的指责真的好吗?
Reply View the author
avatar
152******80
Advanced Packager
2019-02-19 17:13
#14
https://bbs.deepin.org/post/174847
DEEPIN 15.7直接 sudo gedit /etc/hosts 直接改,现在升级以后不行了。造成不能访问维基百科…… ...

也太菜了吧,升级后默认编辑器变了,用不了gedit,用deepin-editor

sudo deepin-editor /etc/hosts
Reply View the author
avatar
dhc0715
deepin
2019-02-19 18:09
#15
发帖的标题太容易让人误会了,你没法修改HOSTS文件,就应该问Deepin升级之后应该如何修改HOSTS文件,而不是武断的说无法修改HOSTS文件,让大家误会,还太失望,估计大家对你也是够失望的,多注意提问的方式和内容。
Reply View the author
avatar
俺不要昵称
deepin
2019-02-19 18:21
#16
推荐一款工具switchHost,你值得拥有
https://oldj.github.io/SwitchHosts/
Reply View the author
avatar
177******80
deepin
2019-02-19 19:40
#17
我没用Deepin,但如果它所有GUI工具修改不了系统文件,可以试试vi或者vim这种命令行工具,如果不会用 ,我想到一种最最简单的方法:
cp /etc/host  ~/
修改好覆盖
sudo mv host /etc/host
source /etc/host
修改其他系统文件也是一样的方法。


Reply View the author
avatar
SiyerBOBO
deepin
2019-02-19 19:55
#18
标题简直欠骂
Reply View the author
avatar
Amadeus
deepin
2019-02-19 20:02
#19
  1. sudo dedit /etc/hosts
Copy the Code

你真的是欠骂,win10也要管理员权限才能改hosts,linux上自然要root权限才能改。
Reply View the author
avatar
coldlook
deepin
2019-02-19 20:17
#20
看了看评论,我放心了,楼主应该学的会吧
Reply View the author
1 / 2
To page