Chrome: Your connection was interrupted

ee

最近系统升级到22.04LTS之后,chrome总是提示连接中断,一开始以为是系统升级的原因,坐等chrome修复。

等了一段时间,chrome更新了好几次,问题依然存在,估计不是软件问题了。

1 先试着清理浏览器DNS缓存:

chrome://net-internals/#dns

2 还不行再清理操作系统的DNS缓存

Windows系统:

CMD(以管理员身份运行):ipconfig /flushdns

Ubuntu系统:

systemd-resolved.service用于运行DNS查询和维护DNS缓存

Flush the DNS settings

  • 检查服务状态:sudo systemctl status systemd-resolved
  • 检查DNS缓存统计信息:sudo systemd-resolve --statistics

报错systemd-resolve: command not found

解决方式一:

 Ubuntu 22.04 

suggestion that "resolvectl" can be used instead of "systemd-resolve"

Creating a symbolic link like below

ln -s /usr/bin/resolvectl /usr/bin/systemd-resolve

解决方式二

# 我用的是方式一

apt install systemd

  • 清除上的DNS缓存:sudo systemd-resolve --flush-caches
  • 清除所有缓存统计信息:sudo systemctl restart systemd-resolved

补充:

经本人亲测,然而以上并没有任何作用

一次偶然的机会,发现这跟计算机的代理设置有关系,ubuntu系统不知道什么时候把web代理关闭了,将代理改为“自动代理”,问题解决。

Ubuntu如下:

Win10如下:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

wsdhla

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值