[Freezing/Lagging] 终端提权卡顿 V23 Nightly
Tofloor
poster avatar
186******69
deepin
2022-03-09 04:28
Author

问题/建议描述 

终端在提权 sudo 的时候会出现卡顿,等待30+秒后才出现输入密码验证。

问题如何重现

打开终端,sudo vim file 就会出现。 

问题重现频率

每次提权操作都会卡顿。

Reply Favorite View the author
All Replies
观摩
deepin
2022-03-09 04:56
#1

据说如果不小心把 /etc/hosts 文件里面的127.0.0.1 localhost 给删了,就会出现此类情况

Reply View the author
大多时候吃素
deepin
2022-03-09 08:31
#2

我也卡顿,不过没那么长时间,2、3秒

Reply View the author
大多时候吃素
deepin
2022-03-09 08:33
#3

你说提权我还以为是pkexec

呢,,

Reply View the author
186******69
deepin
2022-03-09 16:56
#4
大多时候吃素

我也卡顿,不过没那么长时间,2、3秒

我是虚拟机上跑的deepin,也不知道会不会有一定影响,不过之前用ubuntu的时候倒没出现这种状况(虚拟机给的配置是一样的)。

Reply View the author
186******69
deepin
2022-03-09 17:00
#5
观摩

据说如果不小心把 /etc/hosts 文件里面的127.0.0.1 localhost 给删了,就会出现此类情况

检查了下 /etc/host 文件,127.0.0.1 localhost还在。

Reply View the author
大多时候吃素
deepin
2022-03-10 02:07
#6
186******69

我是虚拟机上跑的deepin,也不知道会不会有一定影响,不过之前用ubuntu的时候倒没出现这种状况(虚拟机给的配置是一样的)。

那这确实挺影响心情的哈哈,,,

Reply View the author
思凡
deepin
2022-03-13 12:19
#7

我的解决方法:

  1. 终端输入hostname查看主机名
  2. 在/etc/host加上127.0.0.1 主机名
Reply View the author
186******69
deepin
2022-03-15 17:34
#8
思凡

我的解决方法:

  1. 终端输入hostname查看主机名
  2. 在/etc/host加上127.0.0.1 主机名

按照你的方法操作后,确实快了,👍

Reply View the author