1.源码包获取
tar -zxf xxxx.tar.gz
cd 进入解压的文件夹
2.安装SDL库
sudo apt-get update && sudo apt-get install -y build-essential libsdl2-dev
3.安装vscode
百度网盘 请输入提取码百度网盘为您提供文件的网络备份、同步和分享服务。空间大、速度快、安全稳固,支持教育网加速,支持手机端。注册使用百度网盘即可享受免费存储空间https://pan.baidu.com/s/1bSUNXrKt20t19YMpZDyz9w?pwd=gec6下载安装包到Ubuntu:code_1.68.1-1655263094_amd64.deb
安装:dpkg -i code_1.68.1-1655263094_amd64.deb
默认安装到/usr/share/code/
出现E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/问题的解决办法:
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock