![sudo add-apt-repository 在 Ubuntu 22.04 中不起作用](https://linux22.com/image/952992/sudo%20add-apt-repository%20%E5%9C%A8%20Ubuntu%2022.04%20%E4%B8%AD%E4%B8%8D%E8%B5%B7%E4%BD%9C%E7%94%A8.png)
我刚刚将 Ubuntu 20.04 升级到 Ubuntu 22.04,并sudo add-apt-repository universe
在 Ubuntu 22.04 上运行,出现以下错误。
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 363, in <module>
addaptrepo = AddAptRepository()
File "/usr/bin/add-apt-repository", line 41, in __init__
self.distro.get_sources(self.sourceslist)
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 91, in get_sources
raise NoDistroTemplateException(
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Ubuntu/jammy