Armadilloフォーラム

BaseOS上でのapkコマンドによるパッケージインストールについて

h-yuusuke

2022年3月24日 14時34分

お世話になっております。

掲題の件について、BaseOS上でfbiコマンドを使用するためapkコマンドでインストールしようとしたところ、下記エラーとなりインストールできませんでした。

armadillo:~# apk add fbida-fbi
fetch https://download.atmark-techno.com/alpine/v3.15/atmark/aarch64/APKINDEX.tar.gz
281473741995080:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1914:
ERROR: https://download.atmark-techno.com/alpine/v3.15/atmark: Permission denied
WARNING: Ignoring https://download.atmark-techno.com/alpine/v3.15/atmark: No such file or directory
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz
281473741995080:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1914:
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.15/main: Permission denied
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.15/main: No such file or directory
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz
281473741995080:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1914:
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.15/community: Permission denied
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.15/community: No such file or directory
WARNING: The repository tag for world dependency 'atmark-x2-base@atmark' does not exist
WARNING: The repository tag for world dependency 'conmon@atmark' does not exist
WARNING: The repository tag for world dependency 'emmc-sref@atmark' does not exist
WARNING: The repository tag for world dependency 'libubootenv@atmark' does not exist
WARNING: The repository tag for world dependency 'linux-at@atmark' does not exist
WARNING: The repository tag for world dependency 'modemmanager@atmark' does not exist
WARNING: The repository tag for world dependency 'swupdate@atmark' does not exist
ERROR: Not committing changes due to missing repository tags. Use --force-broken-world to override.

また、apk updateも試してみましたが、こちらでも下記エラーとなりました。

armadillo:~# apk update
fetch https://download.atmark-techno.com/alpine/v3.15/atmark/aarch64/APKINDEX.tar.gz
281473295780936:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1914:
ERROR: https://download.atmark-techno.com/alpine/v3.15/atmark: Permission denied
WARNING: Ignoring https://download.atmark-techno.com/alpine/v3.15/atmark: No such file or directory
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz
281473295780936:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1914:
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.15/main: Permission denied
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.15/main: No such file or directory
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz
281473295780936:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1914:
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.15/community: Permission denied
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.15/community: No such file or directory
3 errors; 185 distinct packages available

何が原因かわかりますでしょうか?

なお、BaseOSのバージョンは下記の通りです。

armadillo:~# cat /proc/version
Linux version 5.10.101-1-at (builder@a3a29b8c603b) (aarch64-alpine-linux-musl-gcc (Alpine 10.3.1_git20211027) 10.3.1 20211027, GNU ld (GNU Binutils) 2.37) #2-Alpine SMP PREEMPT Mon Feb 21 22:14:25 UTC 2022
コメント

at_dominique.m…

2022年3月24日 14時55分

h-yuusukeさん、

> 281473741995080:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1914:
> ERROR: https://download.atmark-techno.com/alpine/v3.15/atmark: Permission denied

証明が認識されない時はほとんどの場合タイムサーバから時間を設定できなかった場合だと思いますが、確認してもらえますか?

armadillo:~# date
Thu Mar 24 14:52:48 JST 2022
armadillo:~# chronyc sources
MS Name/IP address         Stratum Poll Reach LastRx Last sample               
===============================================================================
^* i160-16-113-133.ntp-sv.d>     3  10   377   745  +2278us[+2770us] +/-   14ms
^- time.cloudflare.com           3  10   377   357  +9708us[+9708us] +/-   96ms
^- x.ns.gin.ntt.net              2  10   377   863   +159us[ +638us] +/-  106ms
^- time.cloudflare.com           3  10   377   870    +10ms[  +11ms] +/-   97ms
armadillo:~# chronyc tracking
Reference ID    : A0107185 (i160-16-113-133.ntp-sv.d.rspnet.jp)
Stratum         : 4
Ref time (UTC)  : Thu Mar 24 05:40:24 2022
System time     : 0.000000106 seconds slow of NTP time
Last offset     : +0.000491664 seconds
RMS offset      : 0.001757263 seconds
Frequency       : 30.174 ppm slow
Residual freq   : +0.029 ppm
Skew            : 0.641 ppm
Root delay      : 0.023274558 seconds
Root dispersion : 0.003445351 seconds
Update interval : 512.8 seconds
Leap status     : Normal

社内のネットワークから外部のNTPサーバーが使えない場合に、自分のサーバーを設定するはできます。
(以下の例は来週のマニュアルアップデートに足す予定です…遅くなって申し訳ございません)

[armadillo ~]# vi /etc/atmark/chrony.conf.d/servers.conf
pool my.ntp.server iburst
[armadillo ~]# persist_file /etc/atmark/chrony.conf.d/servers.conf
[armadillo ~]# rc-service chronyd restart
chronyd          | * Stopping chronyd ... [ ok ]
chronyd          | * Starting chronyd ... [ ok ]
armadillo:~# chronyc sources 4
MS Name/IP address         Stratum Poll Reach LastRx Last sample
===============================================================================
^? my.ntp.server                 1   6     3     2    +88ms[  +88ms] +/-  173ms

よろしくお願いします。