--- cloudinit/CloudConfig/cc_apt_update_upgrade.py 2013-01-16 22:19:13 +0000 +++ cloudinit/CloudConfig/cc_apt_update_upgrade.py 2013-03-04 21:23:28 +0000 @@ -221,10 +221,8 @@ # this is used if cfg['system_info']['package_mirrors'] is not present def_mirror_info = { - 'ubuntu': { - 'primary': "http://archive.ubuntu.com/ubuntu", - 'security': "http://security.ubuntu.com/ubuntu" - } + 'primary': "http://archive.ubuntu.com/ubuntu", + 'security': "http://security.ubuntu.com/ubuntu" } mirror = None
That looks like the fix, but I suspect that your /etc/cloud/cloud.cfg has been locally modified as the packaged version should provide a ['system_info']['package_mirrors'] entry that would make the above code irrelevant (which is why it doesn't fail elsewhere, i think). -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in Ubuntu. https://bugs.launchpad.net/bugs/1145215 Title: cloud-init mangles sources.lists if mirror can't be found To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1145215/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs