sudo apt update && sudo apt upgrade -y
提示
报错 E: The repository ‘http://xxx Release‘ does not have a Release file.
编辑文件 /etc/apt/sources.list, 添加下面代码保存
deb http://nl3.archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
deb http://nl3.archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
deb http://nl3.archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
deb http://nl3.archive.ubuntu.com/ubuntu jammy-proposed main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu jammy-security main restricted universe multiverse