Ubuntu-vm-builder fails in / etc / sudoers - any workaround?

I am on 04/16 and trying to establish a 16.04 guest using this:

ubuntu-vm-builder kvm xenial -v --mem 1024  --hostname tester 
   --addpkg openssh-server --mirror http://office:3142/ubuntu

Pretty normal?

He dies with:

Setting up sudo (1.8.16-0ubuntu1.2) ...

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 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):
 end of file on stdin at conffile prompt
    .... more message....
Errors were encountered while processing:
 sudo
Extracting templates from packages: 100%
W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any ideas on this?

Is ubuntu-vm-builder even the right tool to use now, or is there a modern replacement? I am a little lost in the various virtual machine tools out there.

I was looking for this information and the only information I found for editing / usr / lib / python 2.7 / dist-packages / VMBuilder / plugins / ubuntu / dapper.py. I could do it, but ... is this really a standard way to manage VM creation on Ubuntu these days?

: dist-update , , . , Ubuntu LTS , ( ), - .

+4
1

: https://askubuntu.com/questions/819844/kvm-vmbuilder-fails

:

/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

It sounds weird, but it just works. Do not confuse, editing the dapper file, it works for trusty and xenial (the only ones I tested it on), just changing the dapper file.

+1
source

Source: https://habr.com/ru/post/1657688/


All Articles