Using pre Alpha releases

If you are eager to use Ubuntu as seen as it starts building the daily build, you might find some problems, as the most important one I face usually is the lack of information about that distro in the python-apt-common package.

You will know that you hit this problem when you see the following stack:

Traceback (most recent call last):
  File "./add-apt-repository", line 95, in <module>
    sp = SoftwareProperties(options=options)
  File "/home/ubuntu/sour/software-properties-0.96.20/softwareproperties/", line 109, in __init__
  File "/home/ubuntu/sour/software-properties-0.96.20/softwareproperties/", line 599, in reload_sourceslist
  File "/usr/lib/python3/dist-packages/aptsources/", line 89, in get_sources
    (, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Ubuntu/yakkety

It means that Canonical still didn’t include the information about that release in the file /usr/share/python-apt/templates/

You can do that very easily using something like the following, replacing yakkety by the new version.

RepositoryType: deb
Description: Unsupported updates

Suite: yakkety
ParentSuite: yakkety
RepositoryType: deb-src
Description: Unsupported updates

I hope it helps the earlier sailors.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s