【ubuntu18.04】删除系统自带python3.6后自救
【ubuntu18.04】meson 安装 及python升级python3.9做的过程中,就感觉有问题果然,重启就没gnome了然后,开始自觉我remove 了,然后发现很多依赖所以我又重新安装了python3然后再安装的python3.9可惜,我自动auto remove了当时,vscode 远程就不行了。重启后不能登录gnome但是幸运的是,可以login 到无GUIubuntu 18.04
·
- 【ubuntu18.04】meson 安装 及python升级python3.9
做的过程中,就感觉有问题 - 果然,重启就没gnome了
- 然后,开始自觉
我remove 了,然后发现很多依赖
- 所以我又重新安装了python3
然后再安装的python3.9
-
可惜,我自动auto remove了
-
当时,vscode 远程就不行了。
重启后不能登录gnome
- 但是幸运的是,可以login 到无GUI
ubuntu 18.04 remove python3.6 temporary failure in name resolution
- 看了一个记录,说是这样的
I've faced the exactly same problem but I've fixed it with another approache.
Using Ubuntu 18.04, first disable systemd-resolved service.
sudo systemctl disable systemd-resolved.service
Stop the service
sudo systemctl stop systemd-resolved.service
Then, remove the link to /run/systemd/resolve/stub-resolv.conf in /etc/resolv.conf
sudo rm /etc/resolv.conf
Add a manually created resolv.conf in /etc/
sudo vim /etc/resolv.conf
Add your prefered DNS server there
nameserver 208.67.222.222
I've tested this with success.
-
我的这个 /etc/resolv.conf本来就是有的。
-
vmawer nat 不行
-
vmware 桥接模式
-
重启,发现有ens33
-
修改 vim /etc/network/interfaces
-
修改为:
auto ens33
iface ens33inet static
address 192.168.50.175
netmask 255.255.255.0
gateway 192.168.50.1
dns-nameservers 8.8.8.8
- 重启:
- sudo /etc/init.d/networking start
原始gnome: sudo apt install gnome-session gdm3
- 有报错,可能是安装了?
- 干脆装个完整的吧:
完整版gnome
sudo apt install tasksel
- sudo tasksel install ubuntu-desktop
- 有了
不能自送适应客户机了
- open-vm-tools-dkms 这个额没有找到,安装了下面的这个就立马好了:
sudo apt-get install open-vm-tools open-vm-tools-desktop
ubuntu gnome wired unmanaged
- 不显示有线连接
sudo vim /etc/NetworkManager/NetworkManager.conf
将managed=false
改成managed=true
然后重启network-manager
sudo service network-manager restart - 有了:

GitCode 天启AI是一款由 GitCode 团队打造的智能助手,基于先进的LLM(大语言模型)与多智能体 Agent 技术构建,致力于为用户提供高效、智能、多模态的创作与开发支持。它不仅支持自然语言对话,还具备处理文件、生成 PPT、撰写分析报告、开发 Web 应用等多项能力,真正做到“一句话,让 Al帮你完成复杂任务”。
更多推荐
所有评论(0)