Я новичок в Ubuntu, использую Xubuntu 18.04 LTS Bionic Beaver.
Все работало нормально, внезапно, когда я сегодня включил свой ноутбук, Wi-Fi перестал работать. Было показано, что устройство не готово, найденное в одном из решений в Интернете для использования sudo apt-get autoremove
, sudo apt-get clean
и sudo apt-get update
. Это не работает.
Однако, когда я выполнял вышеуказанные команды, я получаю следующие сообщения об ошибках.
Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Could not resolve 'security.ubuntu.com'
Err:2 http://dl.google.com/linux/chrome/deb stable InRelease
Could not resolve 'dl.google.com'
Err:3 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic InRelease
Could not resolve 'ppa.launchpad.net'
Err:4 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
Could not resolve 'ppa.launchpad.net'
Err:5 http://de.archive.ubuntu.com/ubuntu bionic InRelease
Could not resolve 'de.archive.ubuntu.com'
Err:6 http://de.archive.ubuntu.com/ubuntu bionic-updates InRelease
Could not resolve 'de.archive.ubuntu.com'
Err:7 http://de.archive.ubuntu.com/ubuntu bionic-backports InRelease
Could not resolve 'de.archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/bionic/InRelease Could not resolve 'de.archive.ubuntu.com'
W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Could not resolve 'de.archive.ubuntu.com'
W: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Could not resolve 'de.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease Could not resolve 'security.ubuntu.com'
W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/InRelease Could not resolve 'dl.google.com'
W: Failed to fetch http://ppa.launchpad.net/libreoffice/ppa/ubuntu/dists/bionic/InRelease Could not resolve 'ppa.launchpad.net'
W: Failed to fetch http://ppa.launchpad.net/webupd8team/java/ubuntu/dists/bionic/InRelease Could not resolve 'ppa.launchpad.net'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Когда я попробовал, ping us.archive.ubuntu.com
, он сказал:
Имя или служба неизвестны
Когда я выполнил host - v us.archive.ubuntu.com
, в нем говорится:
Хост us.archive.ubuntu.com не найден: 2 (SERVFAIL), получено 39 байт из 127.0.0.53 # 53 за 0 мс
Примечание: в /etc/resolv.conf
уже был сервер имен 127.0.0.53
.
Когда я добавил сервер имен 8.8.8.8
и сервер имен 8.8.4.4
, а затем попробовал команду обновления, появляются те же ошибки.
Пытался (2), затем (1) сверху, затем запустил host - v us. archive.ubuntu.com
.Там написано:
Пробуем us.archive.ubuntu.com
Он показывает то же самое уже долгое время, он не завершается и не подключается.
I found the solution. So, from the output of sudo lshw - C network
I found out all the networks are DISABLED
, I tried, sudo ifconfig wlp2s0 up
, here wlp2s0
is the logical name of my WiFi network. Did the same for all the networks that are shown DISABLED
, then sudo service network-manager restart
and all networks are enabled. Also, sudo apt-get update
works fine now.