proxmox_hassio_lxc icon indicating copy to clipboard operation
proxmox_hassio_lxc copied to clipboard

Update create_container.sh

Open justme88 opened this issue 4 years ago • 3 comments

Proxmox 7 script

justme88 avatar Jul 14 '21 09:07 justme88

bump @whiskerz007 can this be revieed/approved please PVE 7 fails LXC generation with the current script

townsmcp avatar Jul 30 '21 23:07 townsmcp

@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

townsmcp avatar Aug 16 '21 22:08 townsmcp

@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/null

It needs changing to

lxc-cmd apt-get --allow-releaseinfo-change update >/dev/null

It works, many thanks!

Actpohomoc avatar Aug 18 '21 10:08 Actpohomoc