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']
On Ubuntu 16.04 Beta 2, "sudo unity8-lxc-setup" returns the following error.
Determining latest LXC image release... unity8- lxc-setup" , line 129, in <module> lxc_image( architecture) unity8- lxc-setup" , line 87, in get_latest_ lxc_image decode( ).split( '\t')
Traceback (most recent call last):
File "/usr/bin/
current_release = get_latest_
File "/usr/bin/
release = last_line.
UnboundLocalError: local variable 'last_line' referenced before assignment.
To fix this, i edited script like that:
On line 76: share/lxc/ templates/ lxc-download' , '-d', 'ubuntu', '-a', arch, '-l']
cmd = ['/usr/
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']