2016-04-09 21:29:38 |
mert özgür akdeniz |
description |
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...
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})
added "--no-validate":
container.create("download", "--no-validate", 0,
{"dist": "ubuntu",
"release": current_release,
"arch": architecture}) |
|
2016-04-09 21:50:57 |
mert özgür akdeniz |
description |
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})
added "--no-validate":
container.create("download", "--no-validate", 0,
{"dist": "ubuntu",
"release": current_release,
"arch": architecture}) |
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})
added "--no-validate":
container.create("download", 0,
{"dist": "ubuntu",
"release": current_release,
"arch": architecture,
"no-validate": ""}) |
|