sensorii / rpi-cloud-init-builder

Build cloud-init for Raspberry Pi
MIT License
1 stars 1 forks source link

/etc/apt/sources.list is broken #2

Open sensorii opened 6 years ago

sensorii commented 6 years ago
$ cat /etc/apt/sources.list
## Note, this file is written by cloud-init on first boot of an instance
## modifications made here will not survive a re-bundle.
## if you wish to make changes you can:
## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
##     or do the same in user-data
## b.) add sources in /etc/apt/sources.list.d
## c.) make changes to template file /etc/cloud/templates/sources.list.debian.tmpl
###

# See http://www.debian.org/releases/stable/i386/release-notes/ch-upgrading.html
# for how to upgrade to newer versions of the distribution.
deb http://ports.ubuntu.com/ubuntu-ports jessie main
deb-src http://ports.ubuntu.com/ubuntu-ports jessie main

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ports.ubuntu.com/ubuntu-ports jessie/updates main
deb-src http://ports.ubuntu.com/ubuntu-ports jessie/updates main
deb http://ports.ubuntu.com/ubuntu-ports jessie-updates main
deb-src http://ports.ubuntu.com/ubuntu-ports jessie-updates main

## Uncomment the following two lines to add software from the 'backports'
## repository.
## 
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
deb http://ports.ubuntu.com/ubuntu-ports jessie-backports main
deb-src http://ports.ubuntu.com/ubuntu-ports jessie-backports main
sensorii commented 6 years ago

may come from /etc/cloud/cloud.cfg:

$ cat /etc/cloud/cloud.cfg | grep ubuntu
     name: ubuntu
         primary: http://archive.ubuntu.com/ubuntu
         security: http://security.ubuntu.com/ubuntu
           - http://%(ec2_region)s.ec2.archive.ubuntu.com/ubuntu/
           - http://%(availability_zone)s.clouds.archive.ubuntu.com/ubuntu/
           - http://%(region)s.clouds.archive.ubuntu.com/ubuntu/
         primary: http://ports.ubuntu.com/ubuntu-ports
         security: http://ports.ubuntu.com/ubuntu-ports