automate/fix_add-repository_template.md

596 B

add ppa fails with unknown template error

Error: could not find a distribution template for Devuan/excalibur ceres

python3-apt has the file /usr/lib/python3/dist-packages/aptsources/distro.p

I solved it by hacking one python file, to pretend my distro is equal one previous:

for template in self.sourceslist.matcher.templates: if( template.name == 'Devuan/excalibur ceres'): # << added line template.name = 'focal'; # << added line if (self.is_codename(template.name) and...