[Seek Help] 终端执行sudo特别卡
Tofloor
poster avatar
qq80358145
deepin
2022-10-24 00:08
Author

终端执行命令 需要授权 所以加sudo 但是加了以后 会卡住好几秒才弹出来输入密码

这个是怎么回事,求大佬帮忙

Reply Favorite View the author
All Replies
心平气和
deepin
2022-10-24 02:02
#1

插眼,一样的问题,你是虚拟机吗?

Reply View the author
Lwh2008-Equinox
deepin
2022-10-24 02:52
#2

如果su用的频繁干脆直接sudo su

Reply View the author
liwl
deepin
2022-10-24 03:22
#3

坛子里面可以检索一下看看

据说是修改etc/hosts,我就是这么做的

Reply View the author
qq80358145
deepin
2022-10-24 04:22
#4
心平气和

插眼,一样的问题,你是虚拟机吗?

不是哦

解决啦 sudo -i 然后 echo -e "127.0.0.1\t hostname.localdomain\t hostname" >> /etc/hosts 解决了

Reply View the author
qq80358145
deepin
2022-10-24 04:22
#5
liwl

坛子里面可以检索一下看看

据说是修改etc/hosts,我就是这么做的

非常感谢 搜索hosts 找到了

Reply View the author
shendu001
deepin
2022-10-24 16:33
#6

一样的问题,终于找到解决办法了.

Reply View the author
忘记、过去
deepin
2022-10-24 19:58
#7
qq80358145

不是哦

解决啦 sudo -i 然后 echo -e "127.0.0.1\t hostname.localdomain\t hostname" >> /etc/hosts 解决了

咳咳......目前 V23 也需要这么改,不然 sudo 直接提示找不到主机。虽然不影响用,但是总是有提示也挺烦的

Reply View the author