debian apt error: Package ‘xxx‘ has no installation candidate

新的debian虚拟机可能会出现这个问题。
修改apt的source.list,位于/etc/apt/source.list,添加两行:

deb http://deb.debian.org/debian bullseye main
deb-src http://deb.debian.org/debian bullseye main

执行:

sudo apt-get update

你可能感兴趣的:(Linux,debian,linux,windows)