问题:
执行sudo apt-get update
报错:
命中:1 http://packages.microsoft.com/repos/vscode stable InRelease
命中:2 http://mirrors.aliyun.com/ubuntu bionic InRelease
命中:3 http://mirrors.aliyun.com/ubuntu bionic-security InRelease
命中:4 http://mirrors.aliyun.com/ubuntu bionic-updates InRelease
命中:5 http://mirrors.aliyun.com/ubuntu bionic-proposed InRelease
命中:6 http://mirrors.aliyun.com/ubuntu bionic-backports InRelease
正在读取软件包列表... 完成
N: 鉴于仓库 'http://packages.microsoft.com/repos/vscode stable InRelease' 不支持 'arm64' 体系结构,跳过配置文件 'main/binary-arm64/Packages' 的获取。
N: 鉴于仓库 'http://packages.microsoft.com/repos/vscode stable InRelease' 不支持 'armhf' 体系结构,跳过配置文件 'main/binary-armhf/Packages' 的获取。
解决:
sudo apt-get clean
sudo mv /var/lib/apt/lists /tmp 或者 sudo rm -rf /var/lib/apt/lists/
sudo mkdir -p /var/lib/apt/lists/partial
sudo apt-get clean
sudo apt-get update
另外,要更换源可以参考:Ubuntu18.04 修改apt-get国内镜像源的方法