Ubuntu 24.04下使用noble-backports源执行apt upgrade报错的问题咨询
大家好,我在Ubuntu 24.04(Noble Numbat)上碰到了一个APT源相关的问题,想请教下社区里的大佬:
当我执行这条命令时:
apt-get upgrade --print-uris --yes -t noble-backports直接弹出了错误提示:
E: The value 'noble-backports' is invalid for APT::Default-Release as such a release is not available in the sources
但换成针对
noble-updates的类似命令,却能正常运行:apt-get -u dist-upgrade --print-uris --yes -t noble-updates更奇怪的是,我执行常规的更新命令
apt-get update后,输出明确显示noble-backports源是正常可用的:Hit:2 https://mirror.hetzner.com/ubuntu/packages noble-updates InRelease
Hit:3 https://mirror.hetzner.com/ubuntu/packages noble-backports InRelease
Hit:4 https://mirror.hetzner.com/ubuntu/security noble-security InRelease
Hit:5 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble InRelease
Reading package lists... Done
既然源本身是存在的,而且服务器端也能正常访问到,为什么用-t noble-backports参数执行apt-get upgrade就会报错呢?希望有懂行的朋友能帮忙解惑,谢谢!
备注:内容来源于stack exchange,提问作者Deckard

