1 安装虚拟机Ubuntu20.04
安装时如果遇到虚拟化,进到bios里修改
2 安装vscode的环境
开启ssh
sudo apt-get install openssh-sever
允许ssh访问
sudo ufw allow ssh
无法访问,检查网关VNT8
安装python3-venv时遇到bug
E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 1446 (unattended-upgr)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
处理
sudo rm /var/lib/dpkg/lock-frontend
sudo rm /var/lib/dpkg/lock