Several problems in cgclear
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libcgroup (Ubuntu) |
In Progress
|
Medium
|
Unassigned | ||
Bug Description
On an up to date Oneiric, I tried to start a virtual machine via libvirt and got:
error: Failed to start domain sec-hardy-amd64
error: Unable to create cgroup for sec-hardy-amd64: No such file or directory
This may or may not be bug #795905, but since I was only playing around with cgroups and don't actually use them, I decided to simply remove the cgroup packages, so I did:
$ sudo apt-get remove --purge libcgroup1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
cgroup-bin* libcgroup1*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 487 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 289248 files and directories currently installed.)
Removing cgroup-bin ...
cgred stop/waiting
stop: Job failed while stopping
invoke-rc.d: initscript cgconfig, action "stop" failed.
dpkg: error processing cgroup-bin (--purge):
subprocess installed pre-removal script returned error exit status 1
cgconfig start/running
libvirt-cgred-wait stop/waiting
dpkg: libcgroup1: dependency problems, but removing anyway as you requested:
cgroup-bin depends on libcgroup1.
Removing libcgroup1 ...
Purging configuration files for libcgroup1 ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
cgroup-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)
I then had to perform the following two times (the first fails similarly as above):
$ sudo apt-get remove --purge cgroup-bin
Once I removed cgroup-bin, I still had to stop then start libvirt to use my VMs with:
$ sudo stop libvirt-bin
$ sudo start libvirt-bin
description: | updated |
summary: |
- Failed to uninstall cgroup-bin + Several problems with maintainer scripts when uninstalling |
Changed in libcgroup (Ubuntu): | |
status: | Confirmed → In Progress |
tags: | added: patch |
Changed in libcgroup (Ubuntu): | |
assignee: | Jon Bernard (jbernard) → nobody |
tags: | added: oneiric |
Thanks, Jamie. Your original problem appears to be a dup of bug 827538 in libvirt, but the purge failures of course must be fixed here.