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/SoftwareProperties.py", line 109, in __init__
    self.reload_sourceslist()
  File "/home/ubuntu/sour/software-properties-0.96.20/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)    
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 89, in get_sources
    (self.id, 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/Ubuntu.info.

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
BaseURI: http://archive.ubuntu.com/ubuntu/
MatchURI: archive.ubuntu.com/ubuntu|ports.ubuntu.com/ubuntu-ports
Description: Unsupported updates

I hope it helps the earlier sailors.

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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