Hi there,
When I run
But when I run the upgrade command on my host like this:
I get errors like this:
Does anyone know how to solve this?
I want to use a script to update all my alpine containers at once
Thanks!
When I run
apk update && apk upgrade
within the console of my alpine LXC container, everything works fine. But when I run the upgrade command on my host like this:
Code:
pct exec 102 -- bash -c 'apk update && apk upgrade'
I get errors like this:
Code:
fetch https://dl-cdn.alpinelinux.org/alpine/latest-stable/main/x86_64/APKINDEX.tar.gz
080BEF15BA7F0000:error:80000002:system library:file_open:No such file or directory:providers/implementations/storemgmt/file_store.c:267:calling stat(/usr/lib/ssl/certs)
080BEF15BA7F0000:error:80000002:system library:file_open:No such file or directory:providers/implementations/storemgmt/file_store.c:267:calling stat(/usr/lib/ssl/certs)
080BEF15BA7F0000:error:80000002:system library:file_open:No such file or directory:providers/implementations/storemgmt/file_store.c:267:calling stat(/usr/lib/ssl/certs)
080BEF15BA7F0000:error:80000002:system library:file_open:No such file or directory:providers/implementations/storemgmt/file_store.c:267:calling stat(/usr/lib/ssl/certs)
080BEF15BA7F0000:error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1889:
WARNING: updating https://dl-cdn.alpinelinux.org/alpine/latest-stable/main: Permission denied
fetch https://dl-cdn.alpinelinux.org/alpine/latest-stable/community/x86_64/APKINDEX.tar.gz
080BEF15BA7F0000:error:80000002:system library:file_open:No such file or directory:providers/implementations/storemgmt/file_store.c:267:calling stat(/usr/lib/ssl/certs)
080BEF15BA7F0000:error:80000002:system library:file_open:No such file or directory:providers/implementations/storemgmt/file_store.c:267:calling stat(/usr/lib/ssl/certs)
080BEF15BA7F0000:error:80000002:system library:file_open:No such file or directory:providers/implementations/storemgmt/file_store.c:267:calling stat(/usr/lib/ssl/certs)
080BEF15BA7F0000:error:80000002:system library:file_open:No such file or directory:providers/implementations/storemgmt/file_store.c:267:calling stat(/usr/lib/ssl/certs)
080BEF15BA7F0000:error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1889:
WARNING: updating https://dl-cdn.alpinelinux.org/alpine/latest-stable/community: Permission denied
v3.19.0-305-ge031d9be776 [https://dl-cdn.alpinelinux.org/alpine/latest-stable/main]
v3.19.0-306-g8362777048f [https://dl-cdn.alpinelinux.org/alpine/latest-stable/community]
0 unavailable, 2 stale; 22985 distinct packages available
Does anyone know how to solve this?
I want to use a script to update all my alpine containers at once
Thanks!