我有一台 HP Pavilion 15-ab217ng 笔记本电脑(https://support.hp.com/us-en/document/c04908430)我正在使用Ubuntu 22.04.5 LTS。
自从最近更新(几天前)以来,由于某种原因,我的网络流量一直非常慢。
症状如下:
- 当我登录后在 bash 中启动 ping(某个 Web 服务器)时,我得到了
Temporary failure in name resolution
。 - 几分钟后,ping 开始工作,时间约为 10 毫秒,这是合理的。
- 但是当我启动 Thunderbird 并想要检查我的电子邮件时,我收到了
Failed to connect to server
错误Connection timed out
消息。 - 当我打开 Firefox 并想要浏览网页时,页面需要 10 秒钟才能加载,有时还会显示错误消息
Server Not Found
或无法Secure Connection Failed
加载页面。或者它确实加载了页面,但页面上的任何/某些图像都没有加载。
WLAN 信号强度很好,重新连接也无法解决问题。
编辑:我做了一个互联网速度测试,结果如下:
- 下载速度:39.56 Mbps
- 上传速度 21.26 Mbps
这是正常的。
的内容/var/log/apt/history.log
是这样的:
Start-Date: 2022-12-05 20:55:24
Commandline: apt-get upgrade
Requested-By: krisztian (1000)
Upgrade: linux-libc-dev:amd64 (5.4.0-132.148, 5.4.0-135.152), libfprint-2-2:amd64 (1:1.90.2+tod1-0ubuntu1~20.04.9, 1:1.90.2+tod1-0ubuntu1~20.04.10), snapd:amd64 (2.57.5+20.04, 2.57.5+20.04ubuntu0.1), ubuntu-advantage-tools:amd64 (27.11.3~20.04.1, 27.12~20.04.1), dnsmasq-base:amd64 (2.80-1.1ubuntu1.5, 2.80-1.1ubuntu1.6), passwd:amd64 (1:4.8.1-1ubuntu5.20.04.2, 1:4.8.1-1ubuntu5.20.04.4), apport:amd64 (2.20.11-0ubuntu27.24, 2.20.11-0ubuntu27.25), libtiff5:amd64 (4.1.0+git191117-2ubuntu0.20.04.6, 4.1.0+git191117-2ubuntu0.20.04.7), python3-apport:amd64 (2.20.11-0ubuntu27.24, 2.20.11-0ubuntu27.25), lintian:amd64 (2.62.0ubuntu2.1, 2.62.0ubuntu2.2), login:amd64 (1:4.8.1-1ubuntu5.20.04.2, 1:4.8.1-1ubuntu5.20.04.4), libmysqlclient21:amd64 (8.0.31-0ubuntu0.20.04.1, 8.0.31-0ubuntu0.20.04.2), apport-gtk:amd64 (2.20.11-0ubuntu27.24, 2.20.11-0ubuntu27.25), libxml2:amd64 (2.9.10+dfsg-5ubuntu0.20.04.4, 2.9.10+dfsg-5ubuntu0.20.04.5), ca-certificates:amd64 (20211016~20.04.1, 20211016ubuntu0.20.04.1), linux-firmware:amd64 (1.187.34, 1.187.35), python3-problem-report:amd64 (2.20.11-0ubuntu27.24, 2.20.11-0ubuntu27.25), xdg-desktop-portal:amd64 (1.6.0-1ubuntu1, 1.6.0-1ubuntu2)
End-Date: 2022-12-05 20:56:55
Start-Date: 2022-12-05 21:43:02
Commandline: aptdaemon role='role-commit-packages' sender=':1.283'
Install: linux-image-5.4.0-135-generic:amd64 (5.4.0-135.152, automatic), linux-headers-5.4.0-135:amd64 (5.4.0-135.152, automatic), linux-modules-extra-5.4.0-135-generic:amd64 (5.4.0-135.152, automatic), linux-modules-5.4.0-135-generic:amd64 (5.4.0-135.152, automatic), linux-headers-5.4.0-135-generic:amd64 (5.4.0-135.152, automatic)
Upgrade: linux-headers-generic:amd64 (5.4.0.132.132, 5.4.0.135.133), linux-image-generic:amd64 (5.4.0.132.132, 5.4.0.135.133), linux-generic:amd64 (5.4.0.132.132, 5.4.0.135.133)
End-Date: 2022-12-05 21:45:09
Start-Date: 2022-12-05 21:45:31
Commandline: aptdaemon role='role-commit-packages' sender=':1.283'
Remove: linux-image-5.4.0-132-generic:amd64 (5.4.0-132.148), linux-headers-5.4.0-132:amd64 (5.4.0-132.148), linux-modules-extra-5.4.0-132-generic:amd64 (5.4.0-132.148), linux-modules-5.4.0-132-generic:amd64 (5.4.0-132.148), linux-headers-5.4.0-132-generic:amd64 (5.4.0-132.148)
End-Date: 2022-12-05 21:45:43
Start-Date: 2022-12-13 22:03:24
Commandline: apt-get upgrade
Requested-By: krisztian (1000)
Upgrade: libgssapi3-heimdal:amd64 (7.7.0+dfsg-1ubuntu1.1, 7.7.0+dfsg-1ubuntu1.2), libwind0-heimdal:amd64 (7.7.0+dfsg-1ubuntu1.1, 7.7.0+dfsg-1ubuntu1.2), binutils-dev:amd64 (2.34-6ubuntu1.3, 2.34-6ubuntu1.4), libpython3.8-minimal:amd64 (3.8.10-0ubuntu1~20.04.5, 3.8.10-0ubuntu1~20.04.6), libctf-nobfd0:amd64 (2.34-6ubuntu1.3, 2.34-6ubuntu1.4), libwbclient0:amd64 (2:4.13.17~dfsg-0ubuntu1.20.04.1, 2:4.13.17~dfsg-0ubuntu1.20.04.2), libheimntlm0-heimdal:amd64 (7.7.0+dfsg-1ubuntu1.1, 7.7.0+dfsg-1ubuntu1.2), binutils:amd64 (2.34-6ubuntu1.3, 2.34-6ubuntu1.4), python3-pil:amd64 (7.0.0-4ubuntu0.6, 7.0.0-4ubuntu0.7), libheimbase1-heimdal:amd64 (7.7.0+dfsg-1ubuntu1.1, 7.7.0+dfsg-1ubuntu1.2), libpython3.8:amd64 (3.8.10-0ubuntu1~20.04.5, 3.8.10-0ubuntu1~20.04.6), python3.8:amd64 (3.8.10-0ubuntu1~20.04.5, 3.8.10-0ubuntu1~20.04.6), samba-libs:amd64 (2:4.13.17~dfsg-0ubuntu1.20.04.1, 2:4.13.17~dfsg-0ubuntu1.20.04.2), binutils-x86-64-linux-gnu:amd64 (2.34-6ubuntu1.3, 2.34-6ubuntu1.4), python3.8-minimal:amd64 (3.8.10-0ubuntu1~20.04.5, 3.8.10-0ubuntu1~20.04.6), libhcrypto4-heimdal:amd64 (7.7.0+dfsg-1ubuntu1.1, 7.7.0+dfsg-1ubuntu1.2), libsmbclient:amd64 (2:4.13.17~dfsg-0ubuntu1.20.04.1, 2:4.13.17~dfsg-0ubuntu1.20.04.2), binutils-common:amd64 (2.34-6ubuntu1.3, 2.34-6ubuntu1.4), libbinutils:amd64 (2.34-6ubuntu1.3, 2.34-6ubuntu1.4), libpython3.8-stdlib:amd64 (3.8.10-0ubuntu1~20.04.5, 3.8.10-0ubuntu1~20.04.6), libroken18-heimdal:amd64 (7.7.0+dfsg-1ubuntu1.1, 7.7.0+dfsg-1ubuntu1.2), libasn1-8-heimdal:amd64 (7.7.0+dfsg-1ubuntu1.1, 7.7.0+dfsg-1ubuntu1.2), libkrb5-26-heimdal:amd64 (7.7.0+dfsg-1ubuntu1.1, 7.7.0+dfsg-1ubuntu1.2), libhx509-5-heimdal:amd64 (7.7.0+dfsg-1ubuntu1.1, 7.7.0+dfsg-1ubuntu1.2), libctf0:amd64 (2.34-6ubuntu1.3, 2.34-6ubuntu1.4), tzdata:amd64 (2022f-0ubuntu0.20.04.1, 2022g-0ubuntu0.20.04.1)
End-Date: 2022-12-13 22:03:41
Start-Date: 2022-12-19 18:14:21
Commandline: aptdaemon role='role-commit-packages' sender=':1.112'
Upgrade: xserver-common:amd64 (2:1.20.13-1ubuntu1~20.04.4, 2:1.20.13-1ubuntu1~20.04.5), xserver-xorg-core:amd64 (2:1.20.13-1ubuntu1~20.04.4, 2:1.20.13-1ubuntu1~20.04.5), xserver-xorg-legacy:amd64 (2:1.20.13-1ubuntu1~20.04.4, 2:1.20.13-1ubuntu1~20.04.5), xserver-xephyr:amd64 (2:1.20.13-1ubuntu1~20.04.4, 2:1.20.13-1ubuntu1~20.04.5), firefox-locale-de:amd64 (107.0+build2-0ubuntu0.20.04.1, 108.0+build2-0ubuntu0.20.04.1), firefox-locale-en:amd64 (107.0+build2-0ubuntu0.20.04.1, 108.0+build2-0ubuntu0.20.04.1), xwayland:amd64 (2:1.20.13-1ubuntu1~20.04.4, 2:1.20.13-1ubuntu1~20.04.5), python3-tz:amd64 (2019.3-1, 2019.3-1ubuntu0.20.04.0), firefox:amd64 (107.0+build2-0ubuntu0.20.04.1, 108.0+build2-0ubuntu0.20.04.1)
End-Date: 2022-12-19 18:14:37
最后几行/var/log/dpkg.log
是:
2022-12-19 18:14:21 startup archives unpack
2022-12-19 18:14:22 upgrade firefox:amd64 107.0+build2-0ubuntu0.20.04.1 108.0+build2-0ubuntu0.20.04.1
2022-12-19 18:14:22 status half-configured firefox:amd64 107.0+build2-0ubuntu0.20.04.1
2022-12-19 18:14:22 status unpacked firefox:amd64 107.0+build2-0ubuntu0.20.04.1
2022-12-19 18:14:22 status half-installed firefox:amd64 107.0+build2-0ubuntu0.20.04.1
2022-12-19 18:14:31 status triggers-pending gnome-menus:amd64 3.36.0-1ubuntu1
2022-12-19 18:14:31 status triggers-pending desktop-file-utils:amd64 0.24-1ubuntu3
2022-12-19 18:14:31 status triggers-pending mime-support:all 3.64ubuntu1
2022-12-19 18:14:31 status triggers-pending bamfdaemon:amd64 0.5.3+18.04.20180207.2-0ubuntu2
2022-12-19 18:14:31 status triggers-pending hicolor-icon-theme:all 0.17-2
2022-12-19 18:14:31 status triggers-pending man-db:amd64 2.9.1-1
2022-12-19 18:14:31 status unpacked firefox:amd64 108.0+build2-0ubuntu0.20.04.1
2022-12-19 18:14:31 upgrade firefox-locale-de:amd64 107.0+build2-0ubuntu0.20.04.1 108.0+build2-0ubuntu0.20.04.1
2022-12-19 18:14:31 status half-configured firefox-locale-de:amd64 107.0+build2-0ubuntu0.20.04.1
2022-12-19 18:14:31 status unpacked firefox-locale-de:amd64 107.0+build2-0ubuntu0.20.04.1
2022-12-19 18:14:31 status half-installed firefox-locale-de:amd64 107.0+build2-0ubuntu0.20.04.1
2022-12-19 18:14:31 status unpacked firefox-locale-de:amd64 108.0+build2-0ubuntu0.20.04.1
2022-12-19 18:14:32 upgrade firefox-locale-en:amd64 107.0+build2-0ubuntu0.20.04.1 108.0+build2-0ubuntu0.20.04.1
2022-12-19 18:14:32 status half-configured firefox-locale-en:amd64 107.0+build2-0ubuntu0.20.04.1
2022-12-19 18:14:32 status unpacked firefox-locale-en:amd64 107.0+build2-0ubuntu0.20.04.1
2022-12-19 18:14:32 status half-installed firefox-locale-en:amd64 107.0+build2-0ubuntu0.20.04.1
2022-12-19 18:14:32 status unpacked firefox-locale-en:amd64 108.0+build2-0ubuntu0.20.04.1
2022-12-19 18:14:32 upgrade python3-tz:all 2019.3-1 2019.3-1ubuntu0.20.04.0
2022-12-19 18:14:32 status half-configured python3-tz:all 2019.3-1
2022-12-19 18:14:32 status unpacked python3-tz:all 2019.3-1
2022-12-19 18:14:32 status half-installed python3-tz:all 2019.3-1
2022-12-19 18:14:32 status unpacked python3-tz:all 2019.3-1ubuntu0.20.04.0
2022-12-19 18:14:32 upgrade xserver-common:all 2:1.20.13-1ubuntu1~20.04.4 2:1.20.13-1ubuntu1~20.04.5
2022-12-19 18:14:32 status half-configured xserver-common:all 2:1.20.13-1ubuntu1~20.04.4
2022-12-19 18:14:32 status unpacked xserver-common:all 2:1.20.13-1ubuntu1~20.04.4
2022-12-19 18:14:32 status half-installed xserver-common:all 2:1.20.13-1ubuntu1~20.04.4
2022-12-19 18:14:32 status unpacked xserver-common:all 2:1.20.13-1ubuntu1~20.04.5
2022-12-19 18:14:32 upgrade xserver-xephyr:amd64 2:1.20.13-1ubuntu1~20.04.4 2:1.20.13-1ubuntu1~20.04.5
2022-12-19 18:14:32 status half-configured xserver-xephyr:amd64 2:1.20.13-1ubuntu1~20.04.4
2022-12-19 18:14:33 status unpacked xserver-xephyr:amd64 2:1.20.13-1ubuntu1~20.04.4
2022-12-19 18:14:33 status half-installed xserver-xephyr:amd64 2:1.20.13-1ubuntu1~20.04.4
2022-12-19 18:14:33 status unpacked xserver-xephyr:amd64 2:1.20.13-1ubuntu1~20.04.5
2022-12-19 18:14:33 upgrade xserver-xorg-legacy:amd64 2:1.20.13-1ubuntu1~20.04.4 2:1.20.13-1ubuntu1~20.04.5
2022-12-19 18:14:33 status half-configured xserver-xorg-legacy:amd64 2:1.20.13-1ubuntu1~20.04.4
2022-12-19 18:14:33 status unpacked xserver-xorg-legacy:amd64 2:1.20.13-1ubuntu1~20.04.4
2022-12-19 18:14:33 status half-installed xserver-xorg-legacy:amd64 2:1.20.13-1ubuntu1~20.04.4
2022-12-19 18:14:33 status unpacked xserver-xorg-legacy:amd64 2:1.20.13-1ubuntu1~20.04.5
2022-12-19 18:14:33 upgrade xserver-xorg-core:amd64 2:1.20.13-1ubuntu1~20.04.4 2:1.20.13-1ubuntu1~20.04.5
2022-12-19 18:14:33 status half-configured xserver-xorg-core:amd64 2:1.20.13-1ubuntu1~20.04.4
2022-12-19 18:14:33 status unpacked xserver-xorg-core:amd64 2:1.20.13-1ubuntu1~20.04.4
2022-12-19 18:14:33 status half-installed xserver-xorg-core:amd64 2:1.20.13-1ubuntu1~20.04.4
2022-12-19 18:14:33 status unpacked xserver-xorg-core:amd64 2:1.20.13-1ubuntu1~20.04.5
2022-12-19 18:14:33 upgrade xwayland:amd64 2:1.20.13-1ubuntu1~20.04.4 2:1.20.13-1ubuntu1~20.04.5
2022-12-19 18:14:33 status half-configured xwayland:amd64 2:1.20.13-1ubuntu1~20.04.4
2022-12-19 18:14:33 status unpacked xwayland:amd64 2:1.20.13-1ubuntu1~20.04.4
2022-12-19 18:14:33 status half-installed xwayland:amd64 2:1.20.13-1ubuntu1~20.04.4
2022-12-19 18:14:34 status unpacked xwayland:amd64 2:1.20.13-1ubuntu1~20.04.5
2022-12-19 18:14:34 startup packages configure
2022-12-19 18:14:34 configure firefox:amd64 108.0+build2-0ubuntu0.20.04.1 <none>
2022-12-19 18:14:34 status unpacked firefox:amd64 108.0+build2-0ubuntu0.20.04.1
2022-12-19 18:14:34 status half-configured firefox:amd64 108.0+build2-0ubuntu0.20.04.1
2022-12-19 18:14:34 status installed firefox:amd64 108.0+build2-0ubuntu0.20.04.1
2022-12-19 18:14:34 configure python3-tz:all 2019.3-1ubuntu0.20.04.0 <none>
2022-12-19 18:14:34 status unpacked python3-tz:all 2019.3-1ubuntu0.20.04.0
2022-12-19 18:14:34 status half-configured python3-tz:all 2019.3-1ubuntu0.20.04.0
2022-12-19 18:14:34 status installed python3-tz:all 2019.3-1ubuntu0.20.04.0
2022-12-19 18:14:34 configure firefox-locale-en:amd64 108.0+build2-0ubuntu0.20.04.1 <none>
2022-12-19 18:14:34 status unpacked firefox-locale-en:amd64 108.0+build2-0ubuntu0.20.04.1
2022-12-19 18:14:34 status half-configured firefox-locale-en:amd64 108.0+build2-0ubuntu0.20.04.1
2022-12-19 18:14:34 status installed firefox-locale-en:amd64 108.0+build2-0ubuntu0.20.04.1
2022-12-19 18:14:34 configure xserver-common:all 2:1.20.13-1ubuntu1~20.04.5 <none>
2022-12-19 18:14:34 status unpacked xserver-common:all 2:1.20.13-1ubuntu1~20.04.5
2022-12-19 18:14:34 status half-configured xserver-common:all 2:1.20.13-1ubuntu1~20.04.5
2022-12-19 18:14:34 status installed xserver-common:all 2:1.20.13-1ubuntu1~20.04.5
2022-12-19 18:14:34 configure xwayland:amd64 2:1.20.13-1ubuntu1~20.04.5 <none>
2022-12-19 18:14:34 status unpacked xwayland:amd64 2:1.20.13-1ubuntu1~20.04.5
2022-12-19 18:14:34 status half-configured xwayland:amd64 2:1.20.13-1ubuntu1~20.04.5
2022-12-19 18:14:34 status installed xwayland:amd64 2:1.20.13-1ubuntu1~20.04.5
2022-12-19 18:14:34 configure firefox-locale-de:amd64 108.0+build2-0ubuntu0.20.04.1 <none>
2022-12-19 18:14:34 status unpacked firefox-locale-de:amd64 108.0+build2-0ubuntu0.20.04.1
2022-12-19 18:14:34 status half-configured firefox-locale-de:amd64 108.0+build2-0ubuntu0.20.04.1
2022-12-19 18:14:34 status installed firefox-locale-de:amd64 108.0+build2-0ubuntu0.20.04.1
2022-12-19 18:14:34 configure xserver-xorg-legacy:amd64 2:1.20.13-1ubuntu1~20.04.5 <none>
2022-12-19 18:14:34 status unpacked xserver-xorg-legacy:amd64 2:1.20.13-1ubuntu1~20.04.5
2022-12-19 18:14:34 status half-configured xserver-xorg-legacy:amd64 2:1.20.13-1ubuntu1~20.04.5
2022-12-19 18:14:36 status installed xserver-xorg-legacy:amd64 2:1.20.13-1ubuntu1~20.04.5
2022-12-19 18:14:36 configure xserver-xorg-core:amd64 2:1.20.13-1ubuntu1~20.04.5 <none>
2022-12-19 18:14:36 status unpacked xserver-xorg-core:amd64 2:1.20.13-1ubuntu1~20.04.5
2022-12-19 18:14:36 status half-configured xserver-xorg-core:amd64 2:1.20.13-1ubuntu1~20.04.5
2022-12-19 18:14:36 status installed xserver-xorg-core:amd64 2:1.20.13-1ubuntu1~20.04.5
2022-12-19 18:14:36 configure xserver-xephyr:amd64 2:1.20.13-1ubuntu1~20.04.5 <none>
2022-12-19 18:14:36 status unpacked xserver-xephyr:amd64 2:1.20.13-1ubuntu1~20.04.5
2022-12-19 18:14:36 status half-configured xserver-xephyr:amd64 2:1.20.13-1ubuntu1~20.04.5
2022-12-19 18:14:36 status installed xserver-xephyr:amd64 2:1.20.13-1ubuntu1~20.04.5
2022-12-19 18:14:36 trigproc desktop-file-utils:amd64 0.24-1ubuntu3 <none>
2022-12-19 18:14:36 status half-configured desktop-file-utils:amd64 0.24-1ubuntu3
2022-12-19 18:14:36 status installed desktop-file-utils:amd64 0.24-1ubuntu3
2022-12-19 18:14:36 trigproc mime-support:all 3.64ubuntu1 <none>
2022-12-19 18:14:36 status half-configured mime-support:all 3.64ubuntu1
2022-12-19 18:14:36 status installed mime-support:all 3.64ubuntu1
2022-12-19 18:14:36 trigproc hicolor-icon-theme:all 0.17-2 <none>
2022-12-19 18:14:36 status half-configured hicolor-icon-theme:all 0.17-2
2022-12-19 18:14:36 status installed hicolor-icon-theme:all 0.17-2
2022-12-19 18:14:36 trigproc gnome-menus:amd64 3.36.0-1ubuntu1 <none>
2022-12-19 18:14:36 status half-configured gnome-menus:amd64 3.36.0-1ubuntu1
2022-12-19 18:14:36 status installed gnome-menus:amd64 3.36.0-1ubuntu1
2022-12-19 18:14:36 trigproc man-db:amd64 2.9.1-1 <none>
2022-12-19 18:14:36 status half-configured man-db:amd64 2.9.1-1
2022-12-19 18:14:37 status installed man-db:amd64 2.9.1-1
2022-12-19 18:14:37 trigproc bamfdaemon:amd64 0.5.3+18.04.20180207.2-0ubuntu2 <none>
2022-12-19 18:14:37 status half-configured bamfdaemon:amd64 0.5.3+18.04.20180207.2-0ubuntu2
2022-12-19 18:14:37 status installed bamfdaemon:amd64 0.5.3+18.04.20180207.2-0ubuntu2
更新:我买了一个外置 WLAN 棒,使用它时无线连接没有问题。所以问题与笔记本电脑内集成 WLAN 设备的驱动程序有关。这不可能是硬件问题,因为当我启动 Windows 10 时没有出现此问题。
我读到过 HP 笔记本电脑中的无线设备在 Ubuntu 下通常会出现问题。:-(
如何修复此问题?
答案1
偶然间我发现了这个问题的原因。出于某种原因,我在网络设置中手动配置了 DNS 服务器。在 Ubuntu 22.04 上,可以在此处看到:
- 左键单击右上角状态栏中的“网络”图标
- 在下拉菜单中选择“编辑连接...”(我的系统上的最后一个条目)
- 选择您的网络并单击“设置”轮图标(窗口左下角)
- 导航到“IPv4 设置”选项卡
- 检查“其他 DNS 服务器”字段是否为空