Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update create_container.sh #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

justme88
Copy link

Proxmox 7 script

Proxmox 7 script
@townsmcp
Copy link

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

@townsmcp
Copy link

@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

Actpohomoc added a commit to Actpohomoc/proxmox_hassio_lxc that referenced this pull request Aug 18, 2021
@Actpohomoc
Copy link

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants