Download PDF
Download page Ошибки обновления Astra Linux Special Edition x.7.
Ошибки обновления Astra Linux Special Edition x.7
Проблема
Не удается установить обновление: возникают ошибки.
Диагностика
- Проверить вывод команды
dokg -lна предмет наличия пакетов:ii kesl 12.0.0-6672 amd64 Kaspersky Endpoint Security 12.0 for Linux ii klnagent64 15.0.0.12912 amd64 The Kaspersky Network Agent
Возможная причина: Kaspersky препятствует установке обновления. Перейти к решению.
- Файл
/var/log/astra_update_дата.logсодержит сообщение вида:Setting up exim4-config (4.96-15+deb12u5.astra4) ... pdpl-file: /var/lib/exim4: Permission denied
Возможная причина: Высокая целостность каталогов exim4. Перейти к решению.
- Убедиться, что при обновлении возникает сообщение вида:
/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_819eba13-ebd4-46b1-8 does not exist, so cannot grub-install to it!
Возможная причина: Изменилась ссылка на блочное устройство в виртуальной среде. Перейти к решению.
- В файле журнала
/var/log/astra-updateприсутствуют ошибки вида:При обработке следующих пакетов произошли ошибки: /tmp/apt-dpkg-install-o5ff1Z/08-libip4tc2_1.8.5-3~bpo10+1+b1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
Возможная причина: На файлах установлены атрибуты. Перейти к решению.
- В процессе обновления ОС проверить на предмет отображения ошибок вида:
проблемы зависимостей — оставляем не настроенным При обработке следующих пакетов произошли ошибки: auditd parsec-aud parsec-tools afick parsec E: Sub-process /usr/bin/dpkg returned an error code (1)
- В файле
/var/log/syslogпроверить наличие сообщений вида:systemd[1]: auditd.service: Control process exited, code=exited, status=6/NOTCONFIGURED
Возможная причина: Некорректно сконфигурирован /etc/audit/auditd.conf. Перейти к решению.
- При попытке обновления проверить на наличие ошибок вида:
Job for parsecfs.mount failed
Проверить вывод команды:
sudo systemctl status parsecfs.mount
на наличие сообщений вида:
Failed unmounting PARSEC File System
- С помощью утилиты
dpkgпроверить наличие связанных с parsec пакетов в статусе отличном отii:Например:dpkg -l | grep parsec
iU parsec 3.4+ci71+b1 all metapackage for PARSEC system iU parsec-aud 3.4+ci71+b1 amd64 audit base utils for PARSEC security system iF parsec-base 3.4+ci71+b1 amd64 base files for PARSEC security system iU parsec-cap 3.4+ci71+b1 amd64 capabilities base utils for PARSEC security system ii parsec-cups 29.19+b1 amd64 CUPS support executables for PARSEC - server support ii parsec-cups-client 29.19+b1 amd64 CUPS support executables for PARSEC - client programs ii parsec-kiosk2 1.1.1+ci6+b1 amd64 PARSEC system kiosk implementation ii parsec-kiosk2-profiles 1.1.0+ci28 amd64 PARSEC system kiosk profiles iU parsec-mac 3.4+ci71+b1 amd64 mandate labels base utils for PARSEC security system iU parsec-sumic 3.4+ci71+b1 amd64 sumic util for PARSEC security system iU parsec-tests 3.4+ci71+b1 amd64 PARSEC testing system. iU parsec-tools 3.4+ci71+b1 amd64 additional PARSEC system utilities
Возможная причина: Некорректно установленные пакеты Parsec . Перейти к решению.
- Проверить, что при запуске обновления процесс обрывается моментально и без ошибок.
Возможная причина: Неправильная оболочка у пользователя root. Перейти к решению.
Проверить, что команда
pdp-idвозвращает строку вида:Уровень конф.=0(Несекретно), Уровень целостности:0(Низкий), Категории=0x0(Нет) Роли=()
Возможная причина: Низкий уровень целостности пользователя. Перейти к решению.
Проверить наличие сообщений вида:
W: Загрузка выполняется от лица суперпользователя без ограничений песочницы, так как файл "/var/lib/apt/lists/partial/dl.astralinux.ru_astra_stable_1.7%5fx86-64_repository-main_dists_1.7%5fx86-64_InRelease" недоступен для пользователя "_apt". - pkgAcquire::Run (13: Отказано в доступе)
или:
W: Download is performed unsandboxed as root as file '/var/lib/apt/lists/partial/dl.astralinux.ru_astra_stable_1.7%5fx86-64_repository-main_dists_1.7%5fx86-64_InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
Выполнить команды:
sudo ls -la /var/lib/apt/lists/
итого 46000 drwx------ 4 root root 12288 мая 15 18:40 . drwxr-xr-x 5 root root 4096 мая 16 16:36 .. drwxr-xr-x 2 _apt root 4096 фев 23 19:26 auxfiles -rwx------ 1 root root 5402 ноя 4 2022 dl.astralinux.ru_astra_stable_1.7%5fx86-64_repository-base_dists_1.7%5fx86-64_contrib_binary-amd64_Packages -rw-r--r-- 1 root root 5303 ноя 4 2022 dl.astralinux.ru_astra_stable_1.7%5fx86-64_repository-base_dists_1.7%5fx86-64_InRelease -rwx------ 1 root root 16045363 ноя 4 2022 dl.astralinux.ru_astra_stable_1.7%5fx86-64_repository-base_dists_1.7%5fx86-64_main_binary-amd64_Packages -rwx------ 1 root root 230797 ноя 4 2022 dl.astralinux.ru_astra_stable_1.7%5fx86-64_repository-base_dists_1.7%5fx86-64_non-free_binary-amd64_Packages -rwx------ 1 root root 19206 ноя 24 02:57 dl.astralinux.ru_astra_stable_1.7%5fx86-64_repository-extended_dists_1.7%5fx86-64_contrib_binary-amd64_Packages -rw-r--r-- 1 root root 7201 ноя 24 02:59 dl.astralinux.ru_astra_stable_1.7%5fx86-64_repository-extended_dists_1.7%5fx86-64_InRelease -rwx------ 1 root root 6899053 ноя 24 02:57 dl.astralinux.ru_astra_stable_1.7%5fx86-64_repository-extended_dists_1.7%5fx86-64_main_binary-amd64_Packages -rwx------ 1 root root 321175 ноя 24 02:58 dl.astralinux.ru_astra_stable_1.7%5fx86-64_repository-extended_dists_1.7%5fx86-64_non-free_binary-amd64_Packages -rwx------ 1 root root 5702 июн 11 2021 dl.astralinux.ru_astra_stable_1.7%5fx86-64_repository-main_dists_1.7%5fx86-64_contrib_binary-amd64_Packages -rwx------ 1 root root 3855962 июн 11 2021 dl.astralinux.ru_astra_stable_1.7%5fx86-64_repository-main_dists_1.7%5fx86-64_main_binary-amd64_Packages -rwx------ 1 root root 183509 июн 11 2021 dl.astralinux.ru_astra_stable_1.7%5fx86-64_repository-main_dists_1.7%5fx86-64_non-free_binary-amd64_Packages -rw-r--r-- 1 root root 5766 июн 11 2021 dl.astralinux.ru_astra_stable_1.7%5fx86-64_repository-main_dists_1.7%5fx86-64_Release -rwx------ 1 root root 833 июн 11 2021 dl.astralinux.ru_astra_stable_1.7%5fx86-64_repository-main_dists_1.7%5fx86-64_Release.gpg -rwx------ 1 root root 3988 ноя 4 2022 dl.astralinux.ru_astra_stable_1.7%5fx86-64_repository-update_dists_1.7%5fx86-64_contrib_binary-amd64_Packages -rw-r--r-- 1 root root 5289 ноя 4 2022 dl.astralinux.ru_astra_stable_1.7%5fx86-64_repository-update_dists_1.7%5fx86-64_InRelease -rwx------ 1 root root 2031596 ноя 4 2022 dl.astralinux.ru_astra_stable_1.7%5fx86-64_repository-update_dists_1.7%5fx86-64_main_binary-amd64_Packages -rwx------ 1 root root 181906 ноя 4 2022 dl.astralinux.ru_astra_stable_1.7%5fx86-64_repository-update_dists_1.7%5fx86-64_non-free_binary-amd64_Packages -rwx------ 1 root root 5402 мар 3 21:29 dl.astralinux.ru_astra_stable_1.7%5fx86-64_uu_last_repository-base_dists_1.7%5fx86-64_contrib_binary-amd64_Packages -rw-r--r-- 1 root root 5303 мар 3 21:41 dl.astralinux.ru_astra_stable_1.7%5fx86-64_uu_last_repository-base_dists_1.7%5fx86-64_InRelease -rwx------ 1 root root 16118815 мар 3 21:29 dl.astralinux.ru_astra_stable_1.7%5fx86-64_uu_last_repository-base_dists_1.7%5fx86-64_main_binary-amd64_Packages -rwx------ 1 root root 232280 мар 3 21:29 dl.astralinux.ru_astra_stable_1.7%5fx86-64_uu_last_repository-base_dists_1.7%5fx86-64_non-free_binary-amd64_Packages -rw-r--r-- 1 root root 5250 мар 3 21:47 dl.astralinux.ru_astra_stable_1.7%5fx86-64_uu_last_repository-update_dists_1.7%5fx86-64_InRelease -rwx------ 1 root root 798109 мар 3 21:45 dl.astralinux.ru_astra_stable_1.7%5fx86-64_uu_last_repository-update_dists_1.7%5fx86-64_main_binary-amd64_Packages -rwx------ 1 root root 48276 мар 3 21:45 dl.astralinux.ru_astra_stable_1.7%5fx86-64_uu_last_repository-update_dists_1.7%5fx86-64_non-free_binary-amd64_Packages -rwx------ 1 root root 0 фев 23 19:26 lock drwx------ 2 _apt root 12288 мая 15 18:53 partial
sudo ls -la /var/lib/apt/
итого 132 drwxr-xr-x 5 root root 4096 мая 16 16:36 . drwxr-xr-x 54 root root 4096 мая 12 14:17 .. -rw-r--r-- 1 root root 165 фев 23 19:27 cdroms.list -rw-r--r-- 1 root root 165 фев 23 19:26 cdroms.list~ -rw-r--r-- 1 root root 0 мая 19 11:29 daily_lock -rw-r--r-- 1 root root 97721 мая 16 16:36 extended_states drwx------ 4 root root 12288 мая 15 18:40 lists drwxr-xr-x 3 root root 4096 фев 23 19:25 mirrors drwxr-xr-x 2 root root 4096 июн 8 2022 periodic
Возможная причина: Пользователь _apt не является владельцем. Перейти к решению.