1. 解决无法从宿主机复制文件到vmware下的虚拟机问题。
解:(1)菜单栏,选择虚拟机->安装vmware tools,根据提示安装,安装成功后重启虚拟机;
(2)在宿主机里新建一个文件夹,右键->属性->共享->共享->选择用户并添加;
(3)回到虚拟机,在虚拟机->设置->选项->共享文件夹,改为总是启用,并把宿主机的文件夹路径添加上去。接着,如果vmware tools安装成功,会在硬盘里生成 ./mnt/hgfs路径,进入此路径,会看到在宿主机内新建的共享文件夹在里面。之后只需把要拷贝的文件放到这个文件夹内即可。
2. apt换源
解:(1)/etc/apt文件夹内有个"sources.list"的文件,terminal内通过 chmod 777 /etc/apt/sources.list 给权限;
(2)删除 sources.list内所有内容并替换为:
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
3. pip3 换源
解:
在home/用户名/目录下创建.pip文件夹
然后cd .pip
创建pip.conf文件,命令:touch pip.conf
往该文件内输入以下内容然后保存即可:
[global]timeout = 6000
index-url = http://mirrors.aliyun.com/pypi/simple/
trusted-host = mirrors.aliyun.com