libvirt0 breaks libvirt-bin compiled from sources
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
The package libvirt0-
I've tested this with libvirt 3.4 and libvirt 3.5, both versions will fail if libvirt0 is installed.
To reproduce:
1. Install qemu-kvm package, and virt-manager with all recommended dependencies. libvirt0 gets automatically installed.
2. Download, compile and install libvirt 3.4+ from the official sources.
3. attempt to restart the libvirtd service.
Expected behavior:
The service should have worked.
What really happened:
The service failed to start without any useful information about why.
Temporary workaround:
1. forcefully uninstall libvirt0 ignoring dependencies: "dpkg -r --ignore-
2. reinstall the compiled version of libvirt (for good measure)
3. For each update: do "apt-get -f install" first, do the updates and uninstall libvirt0 again.
Everything seems to be working fine without libvirt0, except of course, APT, which wants to fix the dependency issue.
Suggested fix:
Make libvirt0 a metapackage, so it installs an updated version of libvirt. 3.4.0 is stable, and there's no special requirements to create a usable .deb package.
Hi Cesar,
thank you for your report - although I must admit I need to understand your point a bit better.
Here my initial check of your case, please comment on it so we find if/what action one should take.
First of all - what is libvirt0 - it is the collection of .so files, the actual library that libvirt is. lib/x86_ 64-linux- gnu/libvirt. so.0
That means files like:
/usr/
Furthermore lets check why it was installed for you, you listed "qemu-kvm package, and virt-manager with all recommended dependencies":
- qemu-kvm you can install even with recommends it will not bring libvirt in
- virt-manager "depends" on the python-libvirt it was built for and that depends on the matching
libvirt0 then.
I'd expect a self built/installed libvirt to conflict with the packaged one anyway.
The self build one likely picks up the .so files from the packaged version.
When you start your custom built libvirtd you'd need to ensure it does not pick up those.
But I mist admit - and I beg your pardon if I overlook something - I don't consider this an issue of the packaging - libs conflict with the same libs in other paths, I miss the special part.
If we would make libvirt0 a metapackage we would just need a different package to carry the .so's and that would conflict with your manual built libvirt.
My personal way to go in your case would be to install all from the archive as usual; Then stop and disable the libvirt service. And finally for your custom build libvirt make sure it picks up only its own libraries which should fix your conflict.
That implies that the packaged virt-manager can work with the python-libvirt that you have to provide it from your manual build then.