Jus*_*tin 4 server aptitude kvm virtualization 16.04
我只是(愚蠢地)完成了从 14.04.4 到 16.04 的升级。显然,由于引入 systemd 会破坏 libvirt ……或者我破坏了 aptitude。是否有解决方法或修复方法?我应该回到 14.04 吗?
root@KVM0:~# apt-get install libvirt-bin
Reading package
lists... Done
Building dependency tree
Reading state information... Done
libvirt-bin is already the newest version (1.3.1-1ubuntu10).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up libvirt-bin (1.3.1-1ubuntu10) ...
Job for libvirt-bin.service failed because the control process exited with error code. See "systemctl status libvirt-bin.service" and "journalctl -xe" for details.
invoke-rc.d: initscript libvirt-bin, action "start" failed.
dpkg: error processing package libvirt-bin (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
libvirt-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)
小智 5
这似乎是由 apparmor 引起的,因为您会在系统日志中找到与此类似的内容:
内核:[2386.130467] 审计:类型=1400 审计(1461767119.644:89):apparmor="DENIED" operation="create" profile="/usr/sbin/libvirtd" pid=21368 comm="libvirtd" family="netlink" sock_type="raw" protocol=0 requests_mask="创建" denied_mask="创建"
在修复错误之前,一种不安全的解决方法是暂时禁用安装的 apparmor:
sudo systemctl stop apparmor.service
sudo apt-get -f install
sudo systemctl start apparmor.service
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6082 次 |
| 最近记录: |