Ошибки установки пакетов при сборке контейнерного образа Astra Linux

ep4sh

New member
Сообщения
6
#1
Коллеги, добрый день!

Прошу помощи с инсталляцией пакетов (docker.io). Мне требуется собрать контейнерный образ Astra Linux, пользуюсь инструкцией:
https://wiki.astralinux.ru/pages/viewpage.action?pageId=61572388


На первом же этапе возникают проблемы с установкой пакетов из репозитория - пользуюсь стандартным образом в Yandex Cloud:

Код:
pradchenko@pradchenko-astra:~$ sudo apt install docker.io
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  cgroupfs-mount containerd git git-man iptables libcurl3-gnutls liberror-perl libgdbm-compat4 libip6tc2 libjansson4 libltdl7 libnetfilter-conntrack3 libnfnetlink0 libnftables1
  libnftnl11 libnspr4 libnss3 libpcre2-8-0 libperl5.28 nftables patch perl perl-base perl-modules-5.28 runc tini xz-utils
Suggested packages:
  containernetworking-plugins docker-doc aufs-tools btrfs-progs debootstrap rinse rootlesskit zfs-fuse | zfsutils-linux git-daemon-run | git-daemon-sysvinit git-doc git-el
  git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn firewalld ed diffutils-doc perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl make libb-debug-perl
  liblocale-codes-perl
Recommended packages:
  needrestart criu
The following NEW packages will be installed:
  cgroupfs-mount containerd docker.io git git-man iptables libcurl3-gnutls liberror-perl libgdbm-compat4 libip6tc2 libjansson4 libltdl7 libnetfilter-conntrack3 libnfnetlink0
  libnftables1 libnftnl11 libnspr4 libnss3 libpcre2-8-0 libperl5.28 nftables patch perl runc tini xz-utils
The following packages will be upgraded:
  perl-base perl-modules-5.28
2 upgraded, 26 newly installed, 0 to remove and 157 not upgraded.
Need to get 75.6 MB/80.2 MB of archives.
After this operation, 345 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base 1.7_x86-64/main amd64 libjansson4 amd64 2.12-1 [38.2 kB]
Get:2 https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base 1.7_x86-64/main amd64 libnftnl11 amd64 1.1.7-1~bpo10+1 [61.2 kB]
Get:3 https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base 1.7_x86-64/main amd64 libnftables1 amd64 0.9.6-1~bpo10+1 [244 kB]
Get:4 https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base 1.7_x86-64/main amd64 nftables amd64 0.9.6-1~bpo10+1 [66.7 kB]
Get:5 https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base 1.7_x86-64/main amd64 libgdbm-compat4 amd64 1.18.1-4 [44.2 kB]
Get:6 https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base 1.7_x86-64/main amd64 libperl5.28 amd64 5.28.1-6+deb10u1+ci202302101838+astra1 [3898 kB]
Get:7 https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base 1.7_x86-64/main amd64 perl amd64 5.28.1-6+deb10u1+ci202302101838+astra1 [204 kB]
Get:8 https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base 1.7_x86-64/main amd64 libltdl7 amd64 2.4.6-9 [390 kB]
Get:9 https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base 1.7_x86-64/main amd64 libnspr4 amd64 2:4.35-1 [114 kB]
Get:10 https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base 1.7_x86-64/main amd64 libnss3 amd64 2:3.87-1+ci202302091740+astra2 [1362 kB]
Get:11 https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base 1.7_x86-64/main amd64 runc amd64 1.1.4+ds1-1 [2702 kB]
Get:12 https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base 1.7_x86-64/main amd64 containerd amd64 1.4.13~ds1-1~deb11u2astra.se2+ci2 [20.8 MB]
Get:13 https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base 1.7_x86-64/main amd64 libip6tc2 amd64 1.8.5-3~bpo10+1 [34.9 kB]
Get:14 https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base 1.7_x86-64/main amd64 libnfnetlink0 amd64 1.0.1-3 [13.9 kB]
Get:15 https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base 1.7_x86-64/main amd64 libnetfilter-conntrack3 amd64 1.0.7-1 [42.5 kB]
Get:16 https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base 1.7_x86-64/main amd64 iptables amd64 1.8.5-3~bpo10+1 [395 kB]
Get:17 https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base 1.7_x86-64/main amd64 tini amd64 0.18.0-1 [249 kB]
Get:18 https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base 1.7_x86-64/main amd64 docker.io amd64 20.10.2+dfsg1-2astra.se10+ci22 [37.1 MB]
Get:19 https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base 1.7_x86-64/main amd64 xz-utils amd64 5.2.4-1+deb10u1 [182 kB]
Get:20 https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base 1.7_x86-64/main amd64 cgroupfs-mount all 1.4 [6244 B]
Get:21 https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base 1.7_x86-64/main amd64 libcurl3-gnutls amd64 7.64.0-4+deb10u5+astra3 [333 kB]
Get:22 https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base 1.7_x86-64/main amd64 liberror-perl all 0.17027-2 [30.9 kB]
Get:23 https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base 1.7_x86-64/main amd64 git-man all 1:2.30.2-1+deb11u2 [1827 kB]
Get:24 https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base 1.7_x86-64/main amd64 git amd64 1:2.30.2-1+deb11u2 [5330 kB]
Get:25 https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base 1.7_x86-64/main amd64 patch amd64 2.7.6-3+deb10u1 [124 kB]
Fetched 75.6 MB in 21s (3661 kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_TERMINAL = "iTerm2",
    LC_CTYPE = "UTF-8",
    LANG = "ru_RU.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("ru_RU.UTF-8").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: ?????????? ?????????? LC_ALL ? ?????? ?? ?????????.: ??? ?????? ????? ??? ????????
dpkg-deb (subprocess): failed to create directory: Permission denied
dpkg-deb: error: tar subprocess returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/perl-base_5.28.1-6+deb10u1+ci202302101838+astra1_amd64.deb (--unpack):
dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/perl-base_5.28.1-6+deb10u1+ci202302101838+astra1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
pradchenko@pradchenko-astra:~$ export LC_ALL=C
pradchenko@pradchenko-astra:~$ sudo apt install docker.io
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  cgroupfs-mount containerd git git-man iptables libcurl3-gnutls liberror-perl libgdbm-compat4 libip6tc2 libjansson4 libltdl7 libnetfilter-conntrack3 libnfnetlink0 libnftables1
  libnftnl11 libnspr4 libnss3 libpcre2-8-0 libperl5.28 nftables patch perl perl-base perl-modules-5.28 runc tini xz-utils
Suggested packages:
  containernetworking-plugins docker-doc aufs-tools btrfs-progs debootstrap rinse rootlesskit zfs-fuse | zfsutils-linux git-daemon-run | git-daemon-sysvinit git-doc git-el
  git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn firewalld ed diffutils-doc perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl make libb-debug-perl
  liblocale-codes-perl
Recommended packages:
  needrestart criu
The following NEW packages will be installed:
  cgroupfs-mount containerd docker.io git git-man iptables libcurl3-gnutls liberror-perl libgdbm-compat4 libip6tc2 libjansson4 libltdl7 libnetfilter-conntrack3 libnfnetlink0
  libnftables1 libnftnl11 libnspr4 libnss3 libpcre2-8-0 libperl5.28 nftables patch perl runc tini xz-utils
The following packages will be upgraded:
  perl-base perl-modules-5.28
2 upgraded, 26 newly installed, 0 to remove and 157 not upgraded.
Need to get 0 B/80.2 MB of archives.
After this operation, 345 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg-deb (subprocess): failed to create directory: Permission denied
dpkg-deb: error: tar subprocess returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/perl-base_5.28.1-6+deb10u1+ci202302101838+astra1_amd64.deb (--unpack):
dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/perl-base_5.28.1-6+deb10u1+ci202302101838+astra1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
И такое поведение со множеством пакетов (docker/ansible/etc).


Пакета fly-docker вообще кажется не существует:

Код:
pradchenko@pradchenko-astra:~$ sudo apt-get update && sudo apt install fly-docker
Hit:1 https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base 1.7_x86-64 InRelease
Hit:2 https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-update 1.7_x86-64 InRelease
Hit:3 https://download.astralinux.ru/astra/stable/1.7_x86-64/repository-extended 1.7_x86-64 InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package fly-docker

Цель - создать CI по сборке контейнерного образа Astra Linux с принятыми условиями лиц. соглашения - возможно кто-то уже сделал - прошу поделиться.


Версия ОС:

Код:
pradchenko@pradchenko-astra:~$ cat /etc/*release

DISTRIB_ID="AstraLinux"

DISTRIB_DESCRIPTION="Astra Linux 1.7 x86-64"

DISTRIB_RELEASE=1.7_x86-64

DISTRIB_CODENAME=1.7_x86-64

PRETTY_NAME="Astra Linux"

NAME="Astra Linux"

ID=astra

ID_LIKE=debian

ANSI_COLOR="1;31"

HOME_URL="https://astralinux.ru"

SUPPORT_URL="https://astralinux.ru/support"

LOGO=astra

VERSION_ID=1.7_x86-64

VERSION_CODENAME=1.7_x86-64
 

ep4sh

New member
Сообщения
6
#2
Кажется первая проблема с отсутствием пакетов типа docker.io/ ansible решена сменой ОС в Яндекс Облаке.
но пакет docker-fly до сих пор не доступен? может быть необходимо подключить сторонний реп?

Код:
root@pradchenko-astra:/home/pradchenko# cat /etc/apt/sources.list
deb https://dl.astralinux.ru/astra/stable/1.7_x86-64/repository-main/     1.7_x86-64 main contrib non-free
deb https://dl.astralinux.ru/astra/stable/1.7_x86-64/repository-update/   1.7_x86-64 main contrib non-free
deb https://dl.astralinux.ru/astra/stable/1.7_x86-64/repository-base/     1.7_x86-64 main contrib non-free
deb https://dl.astralinux.ru/astra/stable/1.7_x86-64/repository-extended/ 1.7_x86-64 main contrib non-free
deb https://dl.astralinux.ru/astra/stable/1.7_x86-64/repository-extended/ 1.7_x86-64 astra-ce
deb https://dl.astralinux.ru/astra/stable/1.7_x86-64/uu/last/repository-update/ 1.7_x86-64 main contrib non-free
 

ep4sh

New member
Сообщения
6
#4
Возможно действия не применимы к другим ОС - мне требуется собрать официальный образ для любой AstraLinux ОС желательно с любой доступной мне ОС (в идеале MacosX)