编译Android10、Android11等系统源码的前期准备
VMware Workstation 15 Pro虚拟机,Ubuntu20.04.2.0环境的安装与配置过程,如图所示:
Ubuntu20.04.2.0下更改apt源为阿里云源
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo apt-get install vim
将原有的内容注释掉,添加以下内容
sudo vim /etc/apt/sources.list
或
sudo gedit /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted
deb http://mirrors.aliyun.com/ubuntu/ focal universe
deb http://mirrors.aliyun.com/ubuntu/ focal-updates universe
deb http://mirrors.aliyun.com/ubuntu/ focal multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted
deb http://mirrors.aliyun.com/ubuntu/ focal-security universe
deb http://mirrors.aliyun.com/ubuntu/ focal-security multiverse
更新软件列表
sudo apt-get update
更新软件包
sudo apt-get upgrade
扩展磁盘容量
Ubuntu磁盘空间清理的方法
Ubuntu虚拟机环境搭建Android系统源码编译环境及问题解决方法
Ubuntu18.04/20.04虚拟机编译Android4/5/6/7/8/9/10/11系统源码的问题解决