proxmox_hassio_lxc
proxmox_hassio_lxc copied to clipboard
Update create_container.sh
Proxmox 7 script
bump @whiskerz007 can this be revieed/approved please PVE 7 fails LXC generation with the current script
@justme88 and @whiskerz007 your script needs updating. When running this script now there is an error:
root@Proxmox2:/opt# bash ./create_container.sh
[INFO] Using 'local' for template storage.
[INFO] Using 'hdd2-img' for container storage.
Updating LXC template list...
Creating LXC container...
[INFO] LXC container '115' was successfully created.
Starting LXC container...
Setting up container OS...
Updating container OS...
E: Repository 'http://security.debian.org buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
E: Repository 'http://ftp.debian.org/debian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
E: Repository 'http://ftp.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'stable-updates' to 'oldstable-updates'
[ERROR] 100@113 Unknown failure occured.
The issue is due to line 113 being
lxc-cmd apt-get update >/dev/null
It needs changing to
lxc-cmd apt-get --allow-releaseinfo-change update >/dev/null
@justme88 and @whiskerz007 your script needs updating. When running this script now there is an error:
The issue is due to line 113 being
lxc-cmd apt-get update >/dev/nullIt needs changing to
lxc-cmd apt-get --allow-releaseinfo-change update >/dev/null
It works, many thanks!