** Description changed: 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 line 132: container.create("download", 0, - {"dist": "ubuntu", - "release": current_release, - "arch": architecture}) + {"dist": "ubuntu", + "release": current_release, + "arch": architecture}) added "--no-validate": - container.create("download", "--no-validate", 0, - {"dist": "ubuntu", - "release": current_release, - "arch": architecture}) + container.create("download", 0, + {"dist": "ubuntu", + "release": current_release, + "arch": architecture, + "no-validate": ""})
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1568391 Title: unity8-lxc-setup local variable 'last_line' referenced before assignment To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/unity8-lxc/+bug/1568391/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs