Armadilloフォーラム

apt installについて

ikuyaka

2023年8月9日 13時38分

Armadillo-IoT G3において、apt installやapt upgradeを行うと、インストールはできるものの、Permission deniedが表示されます。
過去のカーネルバージョンと権限を比較したところ、/var/cach/man/*のオーナが軒並みproxy kmemとなっており、オーナが異なることによって発生しているのではないかと思いました。
(過去のカーネルバージョンat17ではman man)

上記エラーの原因として正しいでしょうか

/var/cach/man/*のオーナをman manに変更しても問題ないでしょうか?

実行環境

root@armadillo:~# uname -a
Linux armadillo 4.9.133-at30 #2 SMP PREEMPT Tue Jun 27 13:04:36 JST 2023 armv7l GNU/Linux
root@armadillo:~#
root@armadillo:~# apt upgrade -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  debian-archive-keyring libc-bin libksba8 libsqlite3-0 libtasn1-6
  linux-libc-dev ncurses-base ncurses-bin tzdata zlib1g
10 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 4042 kB of archives.
After this operation, 62.5 kB of additional disk space will be used.
Get:1 http://security.debian.org buster/updates/main armhf ncurses-bin armhf 6.1+20181013-2+deb10u3 [399 kB]
Get:2 http://security.debian.org buster/updates/main armhf libc-bin armhf 2.28-10+deb10u2 [664 kB]
Get:3 http://security.debian.org buster/updates/main armhf ncurses-base all 6.1+20181013-2+deb10u3 [259 kB]
Get:4 http://security.debian.org buster/updates/main armhf zlib1g armhf 1:1.2.11.dfsg-1+deb10u2 [85.2 kB]
Get:5 http://security.debian.org buster/updates/main armhf debian-archive-keyring all 2019.1+deb10u2 [110 kB]
Get:6 http://security.debian.org buster/updates/main armhf libtasn1-6 armhf 4.13-3+deb10u1 [46.9 kB]
Get:7 http://security.debian.org buster/updates/main armhf tzdata all 2021a-0+deb10u11 [267 kB]
Get:8 http://security.debian.org buster/updates/main armhf libsqlite3-0 armhf 3.27.2-3+deb10u2 [561 kB]
Get:9 http://security.debian.org buster/updates/main armhf libksba8 armhf 1.3.5-2+deb10u2 [86.9 kB]
Get:10 http://security.debian.org buster/updates/main armhf linux-libc-dev armhf 4.19.289-2 [1564 kB]
Fetched 4042 kB in 1s (6069 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 41799 files and directories currently installed.)
Preparing to unpack .../ncurses-bin_6.1+20181013-2+deb10u3_armhf.deb ...
Unpacking ncurses-bin (6.1+20181013-2+deb10u3) over (6.1+20181013-2+deb10u2) ...
Setting up ncurses-bin (6.1+20181013-2+deb10u3) ...
(Reading database ... 41799 files and directories currently installed.)
Preparing to unpack .../libc-bin_2.28-10+deb10u2_armhf.deb ...
Unpacking libc-bin (2.28-10+deb10u2) over (2.28-10+deb10u1) ...
Setting up libc-bin (2.28-10+deb10u2) ...
(Reading database ... 41799 files and directories currently installed.)
Preparing to unpack .../ncurses-base_6.1+20181013-2+deb10u3_all.deb ...
Unpacking ncurses-base (6.1+20181013-2+deb10u3) over (6.1+20181013-2+deb10u2) ...
Setting up ncurses-base (6.1+20181013-2+deb10u3) ...
(Reading database ... 41799 files and directories currently installed.)
Preparing to unpack .../zlib1g_1%3a1.2.11.dfsg-1+deb10u2_armhf.deb ...
Unpacking zlib1g:armhf (1:1.2.11.dfsg-1+deb10u2) over (1:1.2.11.dfsg-1+deb10u1) ...
Setting up zlib1g:armhf (1:1.2.11.dfsg-1+deb10u2) ...
(Reading database ... 41799 files and directories currently installed.)
Preparing to unpack .../debian-archive-keyring_2019.1+deb10u2_all.deb ...
Unpacking debian-archive-keyring (2019.1+deb10u2) over (2019.1+deb10u1) ...
Setting up debian-archive-keyring (2019.1+deb10u2) ...
(Reading database ... 41805 files and directories currently installed.)
Preparing to unpack .../libtasn1-6_4.13-3+deb10u1_armhf.deb ...
Unpacking libtasn1-6:armhf (4.13-3+deb10u1) over (4.13-3) ...
Setting up libtasn1-6:armhf (4.13-3+deb10u1) ...
(Reading database ... 41805 files and directories currently installed.)
Preparing to unpack .../tzdata_2021a-0+deb10u11_all.deb ...
Unpacking tzdata (2021a-0+deb10u11) over (2021a-0+deb10u6) ...
Preparing to unpack .../libsqlite3-0_3.27.2-3+deb10u2_armhf.deb ...
Unpacking libsqlite3-0:armhf (3.27.2-3+deb10u2) over (3.27.2-3+deb10u1) ...
Preparing to unpack .../libksba8_1.3.5-2+deb10u2_armhf.deb ...
Unpacking libksba8:armhf (1.3.5-2+deb10u2) over (1.3.5-2) ...
Preparing to unpack .../linux-libc-dev_4.19.289-2_armhf.deb ...
Unpacking linux-libc-dev:armhf (4.19.289-2) over (4.19.282-1) ...
Setting up libksba8:armhf (1.3.5-2+deb10u2) ...
Setting up libsqlite3-0:armhf (3.27.2-3+deb10u2) ...
Setting up linux-libc-dev:armhf (4.19.289-2) ...
Setting up tzdata (2021a-0+deb10u11) ...
 
Current default time zone: 'Asia/Tokyo'
Local time is now:      Wed Aug  9 13:30:20 JST 2023.
Universal Time is now:  Wed Aug  9 04:30:20 UTC 2023.
Run 'dpkg-reconfigure tzdata' if you wish to change it.
 
Processing triggers for man-db (2.8.5-2) ...
/usr/bin/mandb: fopen /var/cache/man/zh_CN/4858: Permission denied
/usr/bin/mandb: fopen /var/cache/man/zh_TW/4858: Permission denied
/usr/bin/mandb: fopen /var/cache/man/nl/4858: Permission denied
/usr/bin/mandb: fopen /var/cache/man/pt_BR/4858: Permission denied
/usr/bin/mandb: fopen /var/cache/man/ru/4858: Permission denied
/usr/bin/mandb: fopen /var/cache/man/de/4858: Permission denied
/usr/bin/mandb: fopen /var/cache/man/sr/4858: Permission denied
/usr/bin/mandb: fopen /var/cache/man/it/4858: Permission denied
/usr/bin/mandb: fopen /var/cache/man/pl/4858: Permission denied
/usr/bin/mandb: fopen /var/cache/man/ko/4858: Permission denied
/usr/bin/mandb: fopen /var/cache/man/pt/4858: Permission denied
/usr/bin/mandb: fopen /var/cache/man/da/4858: Permission denied
/usr/bin/mandb: fopen /var/cache/man/sv/4858: Permission denied
/usr/bin/mandb: fopen /var/cache/man/hu/4858: Permission denied
/usr/bin/mandb: fopen /var/cache/man/ja/4858: Permission denied
/usr/bin/mandb: fopen /var/cache/man/id/4858: Permission denied
/usr/bin/mandb: fopen /var/cache/man/sl/4858: Permission denied
/usr/bin/mandb: fopen /var/cache/man/fr/4858: Permission denied
/usr/bin/mandb: fopen /var/cache/man/cs/4858: Permission denied
/usr/bin/mandb: fopen /var/cache/man/tr/4858: Permission denied
/usr/bin/mandb: fopen /var/cache/man/fi/4858: Permission denied
/usr/bin/mandb: fopen /var/cache/man/es/4858: Permission denied
Processing triggers for libc-bin (2.28-10+deb10u2) ...
root@armadillo:~# ls -la /var/cache/man/
total 692
drwxr-xr-x 32 man   man    4096 Aug  9 13:30 .
drwxr-xr-x  8 root  root   4096 Feb 14  2019 ..
-rw-r--r--  1 man   man     190 Aug  9 13:16 CACHEDIR.TAG
drwxr-xr-x  2 proxy kmem   4096 Jul 26 16:43 cat1
drwxr-xr-x  2 proxy kmem   4096 Jul 26 16:43 cat2
drwxr-xr-x  2 proxy kmem   4096 Jul 26 16:43 cat3
drwxr-xr-x  2 proxy kmem   4096 Jul 26 16:43 cat4
drwxr-xr-x  2 proxy kmem   4096 Jul 26 16:43 cat5
drwxr-xr-x  2 proxy kmem   4096 Jul 26 16:43 cat6
drwxr-xr-x  2 proxy kmem   4096 Jul 26 16:43 cat7
drwxr-xr-x  2 proxy kmem   4096 Jul 26 16:43 cat8
drwxr-xr-x  5 proxy kmem   4096 Jul 26 16:45 cs
drwxr-xr-x  5 proxy kmem   4096 Jul 26 16:45 da
drwxr-xr-x  6 proxy kmem   4096 Jul 26 16:45 de
drwxr-xr-x  5 proxy kmem   4096 Jul 26 16:44 es
drwxr-xr-x  3 proxy kmem   4096 Jul 26 16:45 fi
drwxr-xr-x  6 proxy kmem   4096 Jul 26 16:45 fr
drwxr-xr-x  5 proxy kmem   4096 Jul 26 16:45 hu
drwxr-xr-x  5 proxy kmem   4096 Jul 26 16:45 id
-rw-r--r--  1 man   man  573440 Aug  9 13:30 index.db
drwxr-xr-x  5 proxy kmem   4096 Jul 26 16:45 it
drwxr-xr-x  5 proxy kmem   4096 Jul 26 16:45 ja
drwxr-xr-x  5 proxy kmem   4096 Jul 26 16:45 ko
drwxr-xr-x  6 proxy kmem   4096 Jul 26 16:45 nl
drwxr-xr-x  5 proxy kmem   4096 Jul 26 16:45 pl
drwxr-xr-x  5 proxy kmem   4096 Jul 26 16:45 pt
drwxr-xr-x  5 proxy kmem   4096 Jul 26 16:45 pt_BR
drwxr-xr-x  5 proxy kmem   4096 Jul 26 16:44 ru
drwxr-xr-x  4 proxy kmem   4096 Jul 26 16:44 sl
drwxr-xr-x  5 proxy kmem   4096 Jul 26 16:44 sr
drwxr-xr-x  5 proxy kmem   4096 Jul 26 16:45 sv
drwxr-xr-x  5 proxy kmem   4096 Jul 26 16:45 tr
drwxr-xr-x  5 proxy kmem   4096 Jul 26 16:45 zh_CN
drwxr-xr-x  5 proxy kmem   4096 Jul 26 16:45 zh_TW
root@armadillo:~#
コメント

at_syunya.ohshio

2023年8月9日 17時31分

大塩です。

> Armadillo-IoT G3において、apt installやapt upgradeを行うと、インストールはできるものの、Permission deniedが表示されます。

確認したところ、/var/cach/man/*のオーナをman manに変更することでパーミッションエラーが発生しなくなりました。

この現象について、ubuntu ですが同様の現象とその対応が記載されたページがありますので参考にしてください。
https://askubuntu.com/questions/1018269/permission-denied-every-install…

at_syunya.ohshio

2023年8月22日 12時55分

大塩です。

> 今後こちらの事象はアットマークとして改修するのでしょうか?

この現象につきまして、こちらでも確認と原因調査を行い、改修可能ですので
今後のアップデートにて修正予定となります。