我正在尝试使用vmbuilder设置一个虚拟机网络。在使用Ubuntu 12.04进行设置时没有任何问题。然而,当我尝试使用更新的LTS版本(14.04或16.04)时,在构建我的KVM时出现以下错误:
PS以下的方法都没有解决问题:
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)
我已经阅读了很多类似的问题,推荐的解决方法大致上都是重新整个系统。但在这种情况下,这是非常不可取的,因为我们每天都在计算机上运行任务。所以,请问有没有人知道一个变通方法?
顺便提一下,这是我的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 ;
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
vm-builder
似乎过时且缺乏维护,无法派上用场。我想知道是否有合理的虚拟化助手可用。 - Amir Ali Akbari