I'm trying to set up a VM network using vmbuilder. When setting it up using Ubuntu 12.04 there are no problems. However, when trying any of the newer LTS (14.04 or 16.04) i get the following error when I try to build my 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)
I have read a bunch of similar issues where the recommendation is more or less to blow out the whole system. This is however VERY undesirable in this case since we are running jobs on the computer each day. So please, if anyone knows a workaround??
FYI, this is how my VM.sh looks:
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 the following did NOT solve it:
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