You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 24.04下使用noble-backports源执行apt upgrade报错的问题咨询

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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.17 07:49:30