小工具知识网

当前位置: 首页 > 行业知识 > 【ubuntu添加apt-add-repository 报错“could not find a distribution template for Ubuntu/jammy”】

行业知识

【ubuntu添加apt-add-repository 报错“could not find a distribution template for Ubuntu/jammy”】

2026-10-28 03:07:17 来源:互联网转载

使用apt-add-repository时提示 “could not find a distribution template for Ubuntu/jammy”

()

解决方法:

/usr/share/python-apt/templates/Ubuntu.info

()

把第一个Suite: devel 改为Suite: jammy

ChangelogURI: http://changelogs.ubuntu.com/changelogs/pool/%s/%s/%s/%s_%s/changelog  Suite: jammyRepositoryType: debBaseURI: http://ports.ubuntu.com/ubuntu-ports/MatchURI: ports.ubuntu.com/ubuntu-portsBaseURI-amd64: http://archive.ubuntu.com/ubuntuMatchURI-amd64: archive.ubuntu.com/ubuntuBaseURI-i386: http://archive.ubuntu.com/ubuntuMatchURI-i386: archive.ubuntu.com/ubuntuMirrorsFile-amd64: Ubuntu.mirrorsMirrorsFile-i386: Ubuntu.mirrorsDescription: Ubuntu development seriesComponent: mainCompDescription: Officially supportedCompDescriptionLong: Canonical-supported free and open-source softwareComponent: universeCompDescription: Community-maintainedCompDescriptionLong: Community-maintained free and open-source softwareComponent: restrictedCompDescription: Non-free driversCompDescriptionLong: Proprietary drivers for devicesComponent: multiverseParentComponent: universeCompDescription: Restricted softwareCompDescriptionLong: Software restricted by copyright or legal issues

再使用apt-add-repository安装即可

上一篇:域服务器怎么创建ftp?

下一篇:炖猪蹄的秘诀大揭秘,轻松炖出美味佳肴,口感绝佳!