Here is a simple recreate
$ cat > /tmp/my.user-data <<"EOF"
#cloud-config
apt:
  preserve_sources_list: false
  primary:
  - arches: [default]
    uri: http://us.archive.ubuntu.com/ubuntu
  proxy: http://192.168.122.1:8000/
  security:
  - arches: [default]
    uri: http://us.archive.ubuntu.com/ubuntu
  sources:
    launchpad_3: {source: 'deb http://ppa.launchpad.net/maas/next/ubuntu  main'}

apt_proxy: http://192.168.122.1:8000/

system_info:
  package_mirrors:
  - arches: [i386, amd64]
    failsafe: 
      primary: 'http://archive.ubuntu.com/ubuntu'
      security: 'http://security.ubuntu.com/ubuntu'
    search:
      primary: ['http://us.archive.ubuntu.com/ubuntu']
      security: ['http://us.archive.ubuntu.com/ubuntu']
  - arches: [default]
    failsafe: 
      primary: 'http://ports.ubuntu.com/ubuntu-ports'
      security: 'http://ports.ubuntu.com/ubuntu-ports'
    search:
      primary: ['http://ports.ubuntu.com/ubuntu-ports']
      security: ['http://ports.ubuntu.com/ubuntu-ports']
EOF

$ lxc launch ubuntu-daily:yakkety "--config=user.user-data=$(cat /tmp/my
.user-data)"

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1616831

Title:
  cloud-init doesn't prefer new APT config format when old and new are
  provided

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1616831/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to