I have installed lxd using snap on an Ubuntu 14.04 LTS host with extended support. After installing a container like Ubuntu 18.04 LTS, I am unable to update sources or packages on the device even though I can ping and resolve internet sites.
Output from lxc exec climbing-hamster – /bin/bash -c ‘apt update -y’:
Err:5 Index of /ubuntu bionic Release
404 [IP: 185.125.190.39 80]
Err:6 Index of /ubuntu bionic-updates Release
404 [IP: 185.125.190.39 80]
Reading package lists… Done
E: The repository ‘Index of /ubuntu bionic-security Release’ no longer has a Release file.
I had to truncate the output due to new users not being able to post too many web addresses (silly IMO).
lxc network list shows:
±-------±---------±--------±----------------±-----±------------------±--------±--------+
| NAME | TYPE | MANAGED | IPV4 | IPV6 | DESCRIPTION | USED BY | STATE |
±-------±---------±--------±----------------±-----±------------------±--------±--------+
| eth0 | physical | NO | | | | 0 | |
±-------±---------±--------±----------------±-----±------------------±--------±--------+
| eth1 | physical | NO | | | | 0 | |
±-------±---------±--------±----------------±-----±------------------±--------±--------+
| eth2 | physical | NO | | | | 0 | |
±-------±---------±--------±----------------±-----±------------------±--------±--------+
| eth3 | physical | NO | | | | 0 | |
±-------±---------±--------±----------------±-----±------------------±--------±--------+
| eth4 | physical | NO | | | | 0 | |
±-------±---------±--------±----------------±-----±------------------±--------±--------+
| eth5 | physical | NO | | | | 0 | |
±-------±---------±--------±----------------±-----±------------------±--------±--------+
| lxdbr0 | bridge | YES | 10.160.188.1/24 | none | Edited by Michael | 2 | CREATED |
±-------±---------±--------±----------------±-----±------------------±--------±--------+
lxc network show lxdbr0
config:
ipv4.address: 10.160.188.1/24
ipv4.firewall: “false”
ipv4.nat: “true”
ipv6.address: none
ipv6.firewall: “false”
description: Edited by Michael
name: lxdbr0
type: bridge
used_by:
-
/1.0/instances/climbing-hamster
-
/1.0/profiles/default
managed: true
status: Created
locations: -
none
I can run apt-get update and upgrade from the Ubuntu 14.04 LTS host just fine.
I had similar results when trying a Ubuntu 20.04 container. I turned off IPv6 in the lxc network configuration without success. Does anyone have suggestions on what to try next? I have a separate test server on a different network also configured with Ubuntu 14.04 LTS and did not encounter any problems like this. Thank you.
Michael