PDF
Download PDF
Download page Пользователь _apt не является владельцем.
Пользователь _apt не является владельцем
Статья является возможным решением инцидента Ошибки при обновлении ОС
Окружение
Astra Linux Special Edition 1.7 Update 3 (№ 2022-1110SE17)
Диагностика
Проверить наличие сообщений вида:
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: Отказано в доступе)
CODEили:
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)
CODEВыполнить команды:
sudo ls -la /var/lib/apt/lists/
CODEитого 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
CODEsudo ls -la /var/lib/apt/
CODEитого 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
CODE
Решение
Ответ доступен с подключенной услугой «Техническая поддержка».
Внимание! Для авторизации используйте учетные данные Личного кабинета
Если учетная запись от новой версии личного кабинета отсутствует, просим писать на почту lk@astralinux.ru
Проверить наличие сообщений вида:
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 не является владельцем. Перейти к решению.