I’m having problems using a different sources.list in my ubuntu container than the original.
I have added an
/etc/apt/sources.list.d/sources.list inside the container after boot, but when I run
apt-get update the original
/etc/apt/sources.list take precedence.
This is ultimately what I’m trying to solve and I thought I’d do that by configuring the apt primary uri as mentioned in cloud-init. Nothing I do seems to work though.
lxc launch ubuntu:16.04 $CONTAINER_NAME -c security.privileged=true
lxc config set $CONTAINER_NAME user.user-data - < config.yml
#cloud-config apt: primary: uri: http://internode.on.net/pub/ubuntu/ubuntu
/etc/apt/sources.list contain the apt primary uri?