# [add ppa fails with unknown template error](https://askubuntu.com/questions/49040/apt-could-not-find-a-distribution-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...

