[Bug Report] 执行sudo apt update到输入密码需要5秒左右?
Tofloor
poster avatar
151******42
deepin
9 hours ago
Author

每次新装25(就是最近的两次iso),执行这个命令都要卡5秒。

录屏_选择区域_20260301211349.gif

Reply Favorite View the author
All Replies
守望风雨
deepin
9 hours ago
#1

网络开了吗?看看是不是网络的原因,我也遇到过,网络一开就好了。

Reply View the author
昨夜的星辰
deepin
9 hours ago
#2

我记得论坛里有说这个问题,好像是在hosts文件里添加一行,127.0.0.1那个就好了

127.0.0.1 localhost

在/etc/hosts文件里加一行上面这个就好了

检查一下,缺哪个补哪个吧,我这是正常的,下面是我这的文件内容

~$ cat /etc/hosts
127.0.0.1 localhost

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Reply View the author
观摩
deepin
9 hours ago
#3

sudo的老问题了。

Reply View the author
151******42
deepin
8 hours ago
#4
守望风雨

网络开了吗?看看是不是网络的原因,我也遇到过,网络一开就好了。

网络没开不卡,开了才卡

Reply View the author
151******42
deepin
8 hours ago
#5
观摩

sudo的老问题了。

其他发行版都没遇到过,25之前也没遇到过

Reply View the author
151******42
deepin
8 hours ago
#6
昨夜的星辰

我记得论坛里有说这个问题,好像是在hosts文件里添加一行,127.0.0.1那个就好了

127.0.0.1 localhost

在/etc/hosts文件里加一行上面这个就好了

检查一下,缺哪个补哪个吧,我这是正常的,下面是我这的文件内容

~$ cat /etc/hosts
127.0.0.1 localhost

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

已经换发行版了,用ubuntu了,说真的越更新越失望

Reply View the author
LiuYongzhang
deepin
8 hours ago
#7

sudo命令反应慢的问题 输入sudo 需要等几秒甚至十几秒的等待,才让输入密码 在终端:运行以下命令将计算机名字加入/etc/hosts文件里面就可以了 echo "127.0.0.1 $(hostname)" |sudo tee -a /etc/hosts

Reply View the author