Comment 0 for bug 1568391

Revision history for this message
mert özgür akdeniz (mert-akdeniz) wrote :

On Ubuntu 16.04 Beta 2, "sudo unity8-lxc-setup" returns the following error.

Determining latest LXC image release...
Traceback (most recent call last):
File "/usr/bin/unity8-lxc-setup", line 129, in <module>
current_release = get_latest_lxc_image(architecture)
File "/usr/bin/unity8-lxc-setup", line 87, in get_latest_lxc_image
release = last_line.decode().split('\t')
UnboundLocalError: local variable 'last_line' referenced before assignment.

To fix this, i edited script like that:

On line 76:
    cmd = ['/usr/share/lxc/templates/lxc-download', '-d', 'ubuntu', '-a', arch, '-l']

added "--no-validate" parameter, because it did not return with validation :

    cmd = ['/usr/share/lxc/templates/lxc-download', '-d', 'ubuntu', '-a', arch, '-l', '--no-validate']