Saturday, May 4, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1809  / 2 Years ago, sat, december 11, 2021, 11:08:52

So if I list libertine containters and then try to destroy some I get an error message suggesting that the container doesn't exist.



Is the list command faulty or the destroy command?



listing containers



phablet@ubuntu-phablet:~$ libertine-container-manager list
puritine
vivid2


trying to destroy one container



phablet@ubuntu-phablet:~$ libertine-container-manager destroy -i vivid2
Traceback (most recent call last):
File "/usr/bin/libertine-container-manager", line 857, in <module>
args.func(args)
File "/usr/bin/libertine-container-manager", line 430, in destroy
destroy_container_by_id(args.id)
File "/usr/bin/libertine-container-manager", line 416, in destroy_container_by_id
container = LibertineContainer(id)
File "/usr/lib/python3/dist-packages/libertine/Libertine.py", line 287, in __init__
from libertine.LxcContainer import LibertineLXC
ImportError: No module named 'libertine.LxcContainer'


listing containers again



phablet@ubuntu-phablet:~$ libertine-container-manager list
puritine
vivid2

More From » ubuntu-touch

 Answers
5

It seems the error occurred because I had earlier tried to create lxc containers and the Ubuntu-touch kernel doesn't currently support this.



Details on https://bugs.launchpad.net/libertine/+bug/1609086



eDevise and Bjarne Roß both give working methods to destroy containers in their answers. The most 'correct' way is the following syntax



libertine-container-manager destroy -i container_name


As outlined in the bug comments this isn't an issue that should affect users from now on.


[#14264] Sunday, December 12, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ouschee

Total Points: 485
Total Questions: 88
Total Answers: 106

Location: Central African Republic
Member since Mon, Aug 10, 2020
4 Years ago
;