[Bug Report] 执行sudo apt update到输入密码需要5秒左右?
Tofloor
poster avatar
151******42
deepin
2026-03-01 21:14
Author

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

录屏_选择区域_20260301211349.gif

Reply Favorite View the author
All Replies
守望风雨
deepin
2026-03-01 21:34
#1

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

Reply View the author
昨夜的星辰
deepin
2026-03-01 21:54
#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
2026-03-01 21:56
#3

sudo的老问题了。

Reply View the author
151******42
deepin
2026-03-01 22:14
#4
守望风雨

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

网络没开不卡,开了才卡

Reply View the author
151******42
deepin
2026-03-01 22:15
#5
观摩

sudo的老问题了。

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

Reply View the author
151******42
deepin
2026-03-01 22:16
#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
2026-03-01 22:47
#7

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

Reply View the author
昨夜的星辰
deepin
2026-03-02 09:45
#8
151******42

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

哈哈,欢迎啥时候再用回来,我也试过ubuntu,不过用用又换回deepin了

Reply View the author
HMOS1
deepin
2026-03-02 16:36
#9

我用命令行的频率极少,另外,等几秒问题也不大,也不至于因此换发行版

Reply View the author
观摩
deepin
2026-03-02 17:24
#10
151******42

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

我只能说是sudo的问题,不是deepin的问题,动动手就能解决。

在多个发行版都遇到过,至于为什么莫名其妙的出现,我也说不好。

Reply View the author
151******42
deepin
2026-03-03 11:23
#11
观摩

我只能说是sudo的问题,不是deepin的问题,动动手就能解决。

在多个发行版都遇到过,至于为什么莫名其妙的出现,我也说不好。

首先感谢你的再次回复,我提出这个不是为了说谁的问题。

新系统,预置的不是要没问题吗?有问题没办法修复的不是要显注标明吗?

举个例子,你去买了台新手机,屏幕坏了,手机厂商要说啥,不是手机问题?

自己装的,改动了然后出问题,再说是这这这,那那那完全没问题。

至于你说的多个发行版都有这个问题,我只能说我用过快20个发行版(不算版本),就连deepin23都没遇到过。

Reply View the author
151******42
deepin
2026-03-03 11:25
#12
HMOS1

我用命令行的频率极少,另外,等几秒问题也不大,也不至于因此换发行版

刚好在新装系统,然后发现了这个问题,索性就不用了。现在工作用的是mint(排名还是有些说法的),家里的就随便换。

提这个问题也是为了让deepin重视下,稳定才是核心。解决方案很多人也提了,ai查查也很方便,连原理都告诉你了。

Reply View the author
151******42
deepin
2026-03-03 11:30
#13
昨夜的星辰

我记得论坛里有说这个问题,好像是在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

这个解决方案我补充下,不是固定localhost,而是配置的主机名或者叫(电脑名,好像deepin25在装好系统进入配置中是这么叫的,没特别留心了)

Reply View the author
151******42
deepin
2026-03-03 11:33
#14
昨夜的星辰

哈哈,欢迎啥时候再用回来,我也试过ubuntu,不过用用又换回deepin了

会的,等出新的iso我再来试试

Reply View the author
晚秋(lateautumn)
Moderator
2026-03-03 16:09
#15
昨夜的星辰

哈哈,欢迎啥时候再用回来,我也试过ubuntu,不过用用又换回deepin了

agree 我的龙芯电脑,试用过5个操作系统,目前为止还是咱深度v25最好用。

Reply View the author
132******96
deepin
2026-03-05 19:11
#16
昨夜的星辰

哈哈,欢迎啥时候再用回来,我也试过ubuntu,不过用用又换回deepin了

deepin就是一个巨大的围城哈哈,我这昨晚还在试着在ubuntu上装deepin的桌面呢

Reply View the author
昨夜的星辰
deepin
2026-03-06 13:29
#17
151******42

这个解决方案我补充下,不是固定localhost,而是配置的主机名或者叫(电脑名,好像deepin25在装好系统进入配置中是这么叫的,没特别留心了)

正常可能是要用户名,但是遇到两次反应慢的,用localhost也能解决问题

建议deepin默认先写个localhost上去,不行了让用户自己再改

Reply View the author