PHG*_*PHG 3 apt dpkg sudo kvm vmbuilder
我正在尝试使用 vmbuilder 设置 VM 网络。使用 Ubuntu 12.04 进行设置时没有问题。但是,在尝试任何较新的 LTS(14.04 或 16.04)时,当我尝试构建 KVM 时出现以下错误:
Configuration file '/etc/sudoers'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** sudoers (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package sudo (--configure):
EOF on stdin at conffile prompt
Errors were encountered while processing:
sudo
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)
我已经阅读了一堆类似的问题,其中的建议或多或少是要炸毁整个系统。然而,在这种情况下这是非常不受欢迎的,因为我们每天都在计算机上运行作业。所以请,如果有人知道解决方法?
仅供参考,这就是我的 VM.sh 的样子:
vmbuilder kvm ubuntu \
--dest=/home/pett/VM \
--overwrite \
--mem=15000\
--cpus=4 \
--rootsize=10240\
--swapsize=5000\
--addpkg=openssh-server \
--addpkg=vim \
--addpkg=cron \
--addpkg=acpid \
--arch=amd64 \
--suite=trusty\
--flavour virtual \
--components main,universe,restricted \
--hostname Buri \
--user pett \
--pass hello \
--libvirt qemu:///system ;
Run Code Online (Sandbox Code Playgroud)
PS以下没有解决它:
sudo apt-get update
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get update && sudo apt-get upgrade
sudo dpkg --configure -a
sudo apt-get install -f
Run Code Online (Sandbox Code Playgroud)
小智 5
我在几个全新的 1604 安装上有完全相同的错误。我不知道为什么这没有得到解决,因为如果他们曾经测试过这个包,它就会出现。
我从另一篇文章中找到的解决方案是:
将 /usr/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/dapper.py 中的“dist-upgrade”一词更改为“update”
删除 /usr/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/dapper.pyc
烦人的是,像这样的问题的“解决方案”是编辑已安装的包,但就是这样。
| 归档时间: |
|
| 查看次数: |
4085 次 |
| 最近记录: |