問題描述
在 Linux Mint 20.1 / Ubuntu 20.04 上安裝/卸載 Docker 後網絡連接斷開 (Broken network connection after Docker install/uninstall on Linux Mint 20.1 / Ubuntu 20.04)
我最近安裝,然後卸載了 Docker,使用 sudo apt install docker.io
,重新啟動,然後在 Linux Mint 20.1 上 sudo apt remove docker.io
。
從那以後(實際上是在安裝之後),我的網絡連接失敗了。然後我在 Linux Mint 上使用 Timeshift 將我的系統恢復到安裝 Docker 之前,但連接仍然不起作用:“網絡連接激活失敗” 從網絡彈出窗口。
我讀過一些關於其他人在安裝 Docker 後失去網絡連接的帖子,但我讀到的所有建議都是如何在安裝 Docker 的情況下修復它,但我已將其刪除現在,並想讓我的網絡連接正常工作。
我的 systemd‑resolve ‑‑status
輸出:
參考解法
方法 1:
Docker and networking are pretty unpredictable and as I do it for work on Linux mint, my experience is that docker and networking are flaky and could suddenly stop working seemingly without cause. But what you're seeing is a step too far. Because network issues, especially in Linux, are so hard with that info to debug I can't really offer any specific help, but I'll go ahead and rattle off the first giant handful of things I'd try or think about. At least that stuff would be the stuff I'd be googling about:
- check the
etc/hosts
file,etc/hosts.allow
,etc/hosts.deny
,etc/resolv.conf
. - Restart all the network services ex) service networking restart
- service network‑manager restart
- ifconfig
- nslookup google.com
- Could it be a router/modem/ISP issue?
(by user3340499、GDub)