Can't Add Repository "Could not find a distribution template for elementary/hera"

elementary OS Asked by Heru Setiawan on August 28, 2021

I wanted to add Inkscape repository to download Inkscape 1.0 which is not available in the default elementary repository. Before I’ve ever done sudo add-apt-repository and it just worked fine. Only recently when I tried to add Krita’s repo it didn’t work and have some aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for elementary/hera so I did a workaround by manually adding the link to synaptic. But the problem is, ppa for Inkscape is not a http but ppa: and when I tried to manually do the same it couldn’t find the repository.

Here’s the full result of sudo add-apt-repository

sudo add-apt-repository

Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 107, in
sp = SoftwareProperties(options=options)
File "/usr/lib/python3/dist-packages/softwareproperties/", line 117, in init
File "/usr/lib/python3/dist-packages/softwareproperties/", line 612, in reload_sourceslist
File "/usr/lib/python3/dist-packages/aptsources/", line 93, in get_sources
(, self.codename))

aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for elementary/hera

There’s a similar question here but I guess it only works for Freya.


Here’s the output of tail /etc/lsb-release

DISTRIB_DESCRIPTION="elementary OS 5.1.3 Hera"

2 Answers

i solved this (workaround i guess) by following this article.

It worked for me on elementaryOs Hera

  1. wget
  2. Edit script: change lucid to bionic (line 14)
  3. sudo cp /usr/sbin/add-apt-repository
  4. sudo chmod o+x /usr/sbin/add-apt-repository


Answered by federico sanchez on August 28, 2021

Inkscape are availble from Flathub, ready to be installed. ;)

Answered by Storm on August 28, 2021

Add your own answers!

Related Questions

Can i add multiple docks?

1  Asked on August 28, 2021


Validity Fingerprint 138a:0090 reader

3  Asked on August 28, 2021 by jason-murphy


Select muliple files does not function

1  Asked on August 28, 2021 by josepablo


How to enable manual login?

1  Asked on August 28, 2021 by cng


What happened to the Applications Menu?

3  Asked on August 28, 2021 by christopher-collins


Lenovo touchpad does not work

1  Asked on February 25, 2021 by amir-2mi


Install hangs with gray rectangle accross screen

1  Asked on February 22, 2021 by user2777128


root login from GUI

2  Asked on February 15, 2021 by jung


elementary OS hangs a lot

0  Asked on February 12, 2021 by awais-mirza


Thunderbird update not available

0  Asked on February 10, 2021 by bigera


Can i install elementary OS without grub bootloader?

0  Asked on February 6, 2021 by quark405


Ask a Question

Get help from others!

© 2023 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP