栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

【ubuntu18.04】删除系统自带python3.6后自救

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

【ubuntu18.04】删除系统自带python3.6后自救

【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本来就是有的。

参考这个,发现可能我就是没有办法上网,因为米有gnome,没有配置了, 自救:

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


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/755005.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号