- Package:
- apt-show-versions
- Source:
- apt-show-versions
- Submitter:
- Vincent Lefevre
- Date:
- 2024-05-15 10:15:06 UTC
- Severity:
- normal
When running "apt-show-versions -u" in a cron script, I got Failed to open file /var/lib/apt/lists//debug.mirrors.debian.org_debian-debug_dists_stable-debug_InRelease for reading: Permission denied I don't know why could cause the error, but the pathname with "//" is incorrect.
Hi Vincent, Am 11.05.24 um 11:53 schrieb Vincent Lefevre: // in the path should not be a problem. Can you do a 'ls -l /var/lib/apt/lists/' to see the permissions? Which user does the cronjob run with? Christoph
Hi Christoph, zsh completion cannot handle it, so I was wondering. lrwxrwxrwx 1 root root 25 2024-05-11 22:36:06 _var_local_apt_._Packages -> /var/local/apt/./Packages drwxr-xr-x 2 _apt root 4096 2023-10-07 13:42:54 auxfiles -rw-r--r-- 1 root root 52957 2024-05-11 16:15:34 debug.mirrors.debian.org_debian-debug_dists_proposed-updates-debug_InRelease -rw-r--r-- 1 root root 308541 2024-05-08 22:34:42 debug.mirrors.debian.org_debian-debug_dists_proposed-updates-debug_main_binary-amd64_Packages -rw-r--r-- 1 root root 49779 2024-02-10 12:17:11 debug.mirrors.debian.org_debian-debug_dists_stable-debug_InRelease -rw-r--r-- 1 root root 14314273 2024-02-10 10:44:17 debug.mirrors.debian.org_debian-debug_dists_stable-debug_main_binary-amd64_Packages -rw-r--r-- 1 root root 56601 2024-05-11 16:15:45 debug.mirrors.debian.org_debian-debug_dists_unstable-debug_InRelease -rw-r--r-- 1 root root 11867 2024-05-11 16:07:07 debug.mirrors.debian.org_debian-debug_dists_unstable-debug_main_Contents-amd64.lz4 -rw-r--r-- 1 root root 15598917 2024-05-11 16:07:09 debug.mirrors.debian.org_debian-debug_dists_unstable-debug_main_binary-amd64_Packages -rw-r--r-- 1 root root 12615 2024-05-11 16:07:07 debug.mirrors.debian.org_debian-debug_dists_unstable-debug_main_i18n_Translation-en -rw-r--r-- 1 root root 101035 2024-05-11 16:15:38 ftp.debian.org_debian_dists_experimental_InRelease -rw-r--r-- 1 root root 6832935 2024-05-11 16:10:22 ftp.debian.org_debian_dists_experimental_main_Contents-all.lz4 -rw-r--r-- 1 root root 2536358 2024-05-11 16:10:42 ftp.debian.org_debian_dists_experimental_main_Contents-amd64.lz4 -rw-r--r-- 1 root root 3972604 2024-05-11 16:10:44 ftp.debian.org_debian_dists_experimental_main_binary-amd64_Packages -rw-r--r-- 1 root root 2424480 2024-05-11 16:10:15 ftp.debian.org_debian_dists_experimental_main_i18n_Translation-en -rw-r--r-- 1 root root 3112151 2024-05-11 16:11:36 ftp.debian.org_debian_dists_experimental_main_source_Sources -rw-r--r-- 1 root root 55443 2024-05-11 16:15:26 ftp.debian.org_debian_dists_stable-updates_InRelease -rw-r--r-- 1 root root 317 2024-02-16 21:02:45 ftp.debian.org_debian_dists_stable-updates_contrib_Contents-amd64.lz4 -rw-r--r-- 1 root root 1224 2024-02-16 21:01:38 ftp.debian.org_debian_dists_stable-updates_contrib_binary-amd64_Packages -rw-r--r-- 1 root root 538 2024-02-16 21:01:38 ftp.debian.org_debian_dists_stable-updates_contrib_i18n_Translation-en -rw-r--r-- 1 root root 1251 2024-02-16 21:01:38 ftp.debian.org_debian_dists_stable-updates_contrib_source_Sources -rw-r--r-- 1 root root 351371 2023-12-29 15:14:53 ftp.debian.org_debian_dists_stable-updates_main_Contents-all.lz4 -rw-r--r-- 1 root root 429325 2024-04-23 22:45:52 ftp.debian.org_debian_dists_stable-updates_main_Contents-amd64.lz4 -rw-r--r-- 1 root root 73340 2024-04-23 22:45:52 ftp.debian.org_debian_dists_stable-updates_main_binary-amd64_Packages -rw-r--r-- 1 root root 90213 2024-04-23 22:45:51 ftp.debian.org_debian_dists_stable-updates_main_i18n_Translation-en -rw-r--r-- 1 root root 333130 2024-04-23 22:46:05 ftp.debian.org_debian_dists_stable-updates_main_source_Sources -rw-r--r-- 1 root root 361 2024-02-16 21:02:46 ftp.debian.org_debian_dists_stable-updates_non-free-firmware_Contents-amd64.lz4 -rw-r--r-- 1 root root 1446 2024-02-16 21:01:38 ftp.debian.org_debian_dists_stable-updates_non-free-firmware_binary-amd64_Packages -rw-r--r-- 1 root root 696 2024-02-16 21:01:38 ftp.debian.org_debian_dists_stable-updates_non-free-firmware_i18n_Translation-en -rw-r--r-- 1 root root 12123 2024-02-16 21:01:38 ftp.debian.org_debian_dists_stable-updates_non-free-firmware_source_Sources -rw-r--r-- 1 root root 27884 2024-02-16 21:02:46 ftp.debian.org_debian_dists_stable-updates_non-free_Contents-amd64.lz4 -rw-r--r-- 1 root root 101751 2024-02-16 21:01:39 ftp.debian.org_debian_dists_stable-updates_non-free_binary-amd64_Packages -rw-r--r-- 1 root root 64597 2024-02-16 21:01:39 ftp.debian.org_debian_dists_stable-updates_non-free_i18n_Translation-en -rw-r--r-- 1 root root 6231 2024-02-16 21:01:39 ftp.debian.org_debian_dists_stable-updates_non-free_source_Sources -rw-r--r-- 1 root root 151082 2024-02-10 12:17:10 ftp.debian.org_debian_dists_stable_InRelease -rw-r--r-- 1 root root 166896 2023-05-23 22:01:16 ftp.debian.org_debian_dists_stable_contrib_Contents-all.lz4 -rw-r--r-- 1 root root 105449 2023-12-09 09:43:31 ftp.debian.org_debian_dists_stable_contrib_Contents-amd64.lz4 -rw-r--r-- 1 root root 233612 2023-12-09 09:42:40 ftp.debian.org_debian_dists_stable_contrib_binary-amd64_Packages -rw-r--r-- 1 root root 18594 2023-06-01 22:32:38 ftp.debian.org_debian_dists_stable_contrib_dep11_Components-amd64.yml.gz -rw-r--r-- 1 root root 52675 2023-04-17 03:27:44 ftp.debian.org_debian_dists_stable_contrib_dep11_icons-48x48.tar.gz -rw-r--r-- 1 root root 105852 2023-04-17 03:27:44 ftp.debian.org_debian_dists_stable_contrib_dep11_icons-64x64.tar.gz -rw-r--r-- 1 root root 189152 2023-12-09 09:42:40 ftp.debian.org_debian_dists_stable_contrib_i18n_Translation-en -rw-r--r-- 1 root root 210418 2023-12-09 09:42:41 ftp.debian.org_debian_dists_stable_contrib_source_Sources -rw-r--r-- 1 root root 55630671 2024-02-10 11:10:38 ftp.debian.org_debian_dists_stable_main_Contents-all.lz4 -rw-r--r-- 1 root root 19734099 2024-02-10 11:09:30 ftp.debian.org_debian_dists_stable_main_Contents-amd64.lz4 -rw-r--r-- 1 root root 49974557 2024-02-10 10:44:30 ftp.debian.org_debian_dists_stable_main_binary-amd64_Packages -rw-r--r-- 1 root root 6949579 2023-06-09 10:23:29 ftp.debian.org_debian_dists_stable_main_dep11_Components-amd64.yml.gz -rw-r--r-- 1 root root 3594674 2023-06-03 22:31:12 ftp.debian.org_debian_dists_stable_main_dep11_icons-48x48.tar.gz -rw-r--r-- 1 root root 7294983 2023-06-03 22:31:34 ftp.debian.org_debian_dists_stable_main_dep11_icons-64x64.tar.gz -rw-r--r-- 1 root root 32676603 2024-02-10 10:44:30 ftp.debian.org_debian_dists_stable_main_i18n_Translation-en -rw-r--r-- 1 root root 50836717 2024-02-10 10:44:04 ftp.debian.org_debian_dists_stable_main_source_Sources -rw-r--r-- 1 root root 30331 2023-05-12 03:58:32 ftp.debian.org_debian_dists_stable_non-free-firmware_Contents-all.lz4 -rw-r--r-- 1 root root 1664 2023-12-09 09:43:30 ftp.debian.org_debian_dists_stable_non-free-firmware_Contents-amd64.lz4 -rw-r--r-- 1 root root 27152 2023-12-09 09:42:39 ftp.debian.org_debian_dists_stable_non-free-firmware_binary-amd64_Packages -rw-r--r-- 1 root root 26862 2023-05-25 10:29:53 ftp.debian.org_debian_dists_stable_non-free-firmware_dep11_Components-amd64.yml.gz -rw-r--r-- 1 root root 29 2023-01-26 12:28:53 ftp.debian.org_debian_dists_stable_non-free-firmware_dep11_icons-48x48.tar.gz -rw-r--r-- 1 root root 29 2023-01-26 12:28:53 ftp.debian.org_debian_dists_stable_non-free-firmware_dep11_icons-64x64.tar.gz -rw-r--r-- 1 root root 156926 2023-10-07 10:45:44 ftp.debian.org_debian_dists_stable_non-free-firmware_i18n_Translation-en -rw-r--r-- 1 root root 28930 2023-12-09 09:42:41 ftp.debian.org_debian_dists_stable_non-free-firmware_source_Sources -rw-r--r-- 1 root root 1519712 2023-05-24 15:58:36 ftp.debian.org_debian_dists_stable_non-free_Contents-all.lz4 -rw-r--r-- 1 root root 131488 2023-12-09 09:43:31 ftp.debian.org_debian_dists_stable_non-free_Contents-amd64.lz4 -rw-r--r-- 1 root root 586829 2023-12-09 09:42:40 ftp.debian.org_debian_dists_stable_non-free_binary-amd64_Packages -rw-r--r-- 1 root root 4629 2023-05-29 10:31:22 ftp.debian.org_debian_dists_stable_non-free_dep11_Components-amd64.yml.gz -rw-r--r-- 1 root root 748 2023-04-17 03:33:59 ftp.debian.org_debian_dists_stable_non-free_dep11_icons-48x48.tar.gz -rw-r--r-- 1 root root 27482 2023-04-17 03:33:59 ftp.debian.org_debian_dists_stable_non-free_dep11_icons-64x64.tar.gz -rw-r--r-- 1 root root 402871 2023-12-09 09:42:39 ftp.debian.org_debian_dists_stable_non-free_i18n_Translation-en -rw-r--r-- 1 root root 345212 2023-12-09 09:42:41 ftp.debian.org_debian_dists_stable_non-free_source_Sources -rw-r--r-- 1 root root 168417 2024-05-11 16:15:47 ftp.debian.org_debian_dists_testing_InRelease -rw-r--r-- 1 root root 213371 2024-05-09 04:08:32 ftp.debian.org_debian_dists_testing_contrib_Contents-all.lz4 -rw-r--r-- 1 root root 191655 2024-05-08 04:07:17 ftp.debian.org_debian_dists_testing_contrib_Contents-amd64.lz4 -rw-r--r-- 1 root root 230299 2024-05-11 04:05:31 ftp.debian.org_debian_dists_testing_contrib_binary-amd64_Packages -rw-r--r-- 1 root root 24054 2024-05-11 10:38:18 ftp.debian.org_debian_dists_testing_contrib_dep11_Components-amd64.yml.gz -rw-r--r-- 1 root root 51594 2024-05-11 10:40:13 ftp.debian.org_debian_dists_testing_contrib_dep11_icons-48x48.tar.gz -rw-r--r-- 1 root root 112053 2024-05-11 10:40:14 ftp.debian.org_debian_dists_testing_contrib_dep11_icons-64x64.tar.gz -rw-r--r-- 1 root root 191460 2024-05-08 04:07:15 ftp.debian.org_debian_dists_testing_contrib_i18n_Translation-en -rw-r--r-- 1 root root 206369 2024-05-11 04:06:05 ftp.debian.org_debian_dists_testing_contrib_source_Sources -rw-r--r-- 1 root root 57586397 2024-05-11 16:12:56 ftp.debian.org_debian_dists_testing_main_Contents-all.lz4 -rw-r--r-- 1 root root 20159853 2024-05-11 16:12:41 ftp.debian.org_debian_dists_testing_main_Contents-amd64.lz4 -rw-r--r-- 1 root root 53124380 2024-05-11 16:12:38 ftp.debian.org_debian_dists_testing_main_binary-amd64_Packages -rw-r--r-- 1 root root 6986010 2024-05-11 10:27:58 ftp.debian.org_debian_dists_testing_main_dep11_Components-amd64.yml.gz -rw-r--r-- 1 root root 3482776 2024-05-09 10:34:59 ftp.debian.org_debian_dists_testing_main_dep11_icons-48x48.tar.gz -rw-r--r-- 1 root root 6987198 2024-05-09 10:35:33 ftp.debian.org_debian_dists_testing_main_dep11_icons-64x64.tar.gz -rw-r--r-- 1 root root 33204559 2024-05-11 16:12:31 ftp.debian.org_debian_dists_testing_main_i18n_Translation-en -rw-r--r-- 1 root root 54596696 2024-05-11 16:13:12 ftp.debian.org_debian_dists_testing_main_source_Sources -rw-r--r-- 1 root root 31598 2024-03-14 03:25:35 ftp.debian.org_debian_dists_testing_non-free-firmware_Contents-all.lz4 -rw-r--r-- 1 root root 1842 2024-05-03 04:05:45 ftp.debian.org_debian_dists_testing_non-free-firmware_Contents-amd64.lz4 -rw-r--r-- 1 root root 27672 2024-05-04 04:06:36 ftp.debian.org_debian_dists_testing_non-free-firmware_binary-amd64_Packages -rw-r--r-- 1 root root 27329 2024-05-04 10:44:46 ftp.debian.org_debian_dists_testing_non-free-firmware_dep11_Components-amd64.yml.gz -rw-r--r-- 1 root root 29 2023-06-26 10:45:36 ftp.debian.org_debian_dists_testing_non-free-firmware_dep11_icons-48x48.tar.gz -rw-r--r-- 1 root root 29 2023-06-26 10:45:36 ftp.debian.org_debian_dists_testing_non-free-firmware_dep11_icons-64x64.tar.gz -rw-r--r-- 1 root root 165867 2024-03-08 03:12:52 ftp.debian.org_debian_dists_testing_non-free-firmware_i18n_Translation-en -rw-r--r-- 1 root root 30976 2024-05-04 04:07:11 ftp.debian.org_debian_dists_testing_non-free-firmware_source_Sources -rw-r--r-- 1 root root 1430770 2024-05-11 04:05:30 ftp.debian.org_debian_dists_testing_non-free_Contents-all.lz4 -rw-r--r-- 1 root root 127753 2024-05-11 04:05:31 ftp.debian.org_debian_dists_testing_non-free_Contents-amd64.lz4 -rw-r--r-- 1 root root 590616 2024-05-11 04:05:31 ftp.debian.org_debian_dists_testing_non-free_binary-amd64_Packages -rw-r--r-- 1 root root 3832 2024-05-11 10:40:32 ftp.debian.org_debian_dists_testing_non-free_dep11_Components-amd64.yml.gz -rw-r--r-- 1 root root 754 2024-04-27 04:52:27 ftp.debian.org_debian_dists_testing_non-free_dep11_icons-48x48.tar.gz -rw-r--r-- 1 root root 12333 2024-04-28 05:06:44 ftp.debian.org_debian_dists_testing_non-free_dep11_icons-64x64.tar.gz -rw-r--r-- 1 root root 416493 2024-05-11 04:05:28 ftp.debian.org_debian_dists_testing_non-free_i18n_Translation-en -rw-r--r-- 1 root root 337928 2024-05-11 04:06:05 ftp.debian.org_debian_dists_testing_non-free_source_Sources -rw-r--r-- 1 root root 198381 2024-05-11 16:15:49 ftp.debian.org_debian_dists_unstable_InRelease -rw-r--r-- 1 root root 720963 2024-05-03 22:16:39 ftp.debian.org_debian_dists_unstable_contrib_Contents-all.lz4 -rw-r--r-- 1 root root 319127 2024-05-10 22:19:42 ftp.debian.org_debian_dists_unstable_contrib_Contents-amd64.lz4 -rw-r--r-- 1 root root 290695 2024-05-10 22:20:11 ftp.debian.org_debian_dists_unstable_contrib_binary-amd64_Packages -rw-r--r-- 1 root root 25300 2024-05-11 04:47:45 ftp.debian.org_debian_dists_unstable_contrib_dep11_Components-amd64.yml.gz -rw-r--r-- 1 root root 55403 2024-05-11 04:48:06 ftp.debian.org_debian_dists_unstable_contrib_dep11_icons-48x48.tar.gz -rw-r--r-- 1 root root 123863 2024-05-11 04:48:07 ftp.debian.org_debian_dists_unstable_contrib_dep11_icons-64x64.tar.gz -rw-r--r-- 1 root root 224830 2024-05-03 22:16:07 ftp.debian.org_debian_dists_unstable_contrib_i18n_Translation-en -rw-r--r-- 1 root root 263675 2024-05-06 10:15:42 ftp.debian.org_debian_dists_unstable_contrib_source_Sources -rw-r--r-- 1 root root 67241686 2024-05-11 16:08:50 ftp.debian.org_debian_dists_unstable_main_Contents-all.lz4 -rw-r--r-- 1 root root 23538957 2024-05-11 16:08:51 ftp.debian.org_debian_dists_unstable_main_Contents-amd64.lz4 -rw-r--r-- 1 root root 58023889 2024-05-11 16:08:51 ftp.debian.org_debian_dists_unstable_main_binary-amd64_Packages -rw-r--r-- 1 root root 7394735 2024-05-11 10:14:48 ftp.debian.org_debian_dists_unstable_main_dep11_Components-amd64.yml.gz -rw-r--r-- 1 root root 3735425 2024-05-11 10:23:17 ftp.debian.org_debian_dists_unstable_main_dep11_icons-48x48.tar.gz -rw-r--r-- 1 root root 7539563 2024-05-11 10:23:36 ftp.debian.org_debian_dists_unstable_main_dep11_icons-64x64.tar.gz -rw-r--r-- 1 root root 35967772 2024-05-11 16:08:10 ftp.debian.org_debian_dists_unstable_main_i18n_Translation-en -rw-r--r-- 1 root root 61117500 2024-05-11 16:10:13 ftp.debian.org_debian_dists_unstable_main_source_Sources -rw-r--r-- 1 root root 31598 2024-03-09 15:48:18 ftp.debian.org_debian_dists_unstable_non-free-firmware_Contents-all.lz4 -rw-r--r-- 1 root root 1842 2024-03-28 15:09:21 ftp.debian.org_debian_dists_unstable_non-free-firmware_Contents-amd64.lz4 -rw-r--r-- 1 root root 27672 2024-04-29 10:07:08 ftp.debian.org_debian_dists_unstable_non-free-firmware_binary-amd64_Packages -rw-r--r-- 1 root root 27267 2024-04-29 16:39:05 ftp.debian.org_debian_dists_unstable_non-free-firmware_dep11_Components-amd64.yml.gz -rw-r--r-- 1 root root 29 2023-01-08 20:25:19 ftp.debian.org_debian_dists_unstable_non-free-firmware_dep11_icons-48x48.tar.gz -rw-r--r-- 1 root root 29 2023-01-08 20:25:19 ftp.debian.org_debian_dists_unstable_non-free-firmware_dep11_icons-64x64.tar.gz -rw-r--r-- 1 root root 165867 2024-03-03 21:27:24 ftp.debian.org_debian_dists_unstable_non-free-firmware_i18n_Translation-en -rw-r--r-- 1 root root 32139 2024-04-29 10:09:16 ftp.debian.org_debian_dists_unstable_non-free-firmware_source_Sources -rw-r--r-- 1 root root 1491338 2024-05-06 16:10:17 ftp.debian.org_debian_dists_unstable_non-free_Contents-all.lz4 -rw-r--r-- 1 root root 177244 2024-05-06 16:10:28 ftp.debian.org_debian_dists_unstable_non-free_Contents-amd64.lz4 -rw-r--r-- 1 root root 777699 2024-05-10 04:12:32 ftp.debian.org_debian_dists_unstable_non-free_binary-amd64_Packages -rw-r--r-- 1 root root 5434 2024-05-10 10:38:07 ftp.debian.org_debian_dists_unstable_non-free_dep11_Components-amd64.yml.gz -rw-r--r-- 1 root root 1544 2024-04-27 04:50:14 ftp.debian.org_debian_dists_unstable_non-free_dep11_icons-48x48.tar.gz -rw-r--r-- 1 root root 28393 2024-04-27 04:50:14 ftp.debian.org_debian_dists_unstable_non-free_dep11_icons-64x64.tar.gz -rw-r--r-- 1 root root 635562 2024-05-06 16:09:49 ftp.debian.org_debian_dists_unstable_non-free_i18n_Translation-en -rw-r--r-- 1 root root 398037 2024-05-10 04:14:20 ftp.debian.org_debian_dists_unstable_non-free_source_Sources -rw-r----- 1 root root 0 2023-10-07 13:42:54 lock drwx------ 2 _apt root 28672 2024-05-11 22:36:14 partial -rw-r--r-- 1 root root 47951 2024-05-10 19:15:34 security.debian.org_debian-security_dists_stable-security_InRelease -rw-r--r-- 1 root root 1351 2024-02-05 21:52:55 security.debian.org_debian-security_dists_stable-security_contrib_binary-amd64_Packages -rw-r--r-- 1 root root 653 2023-10-17 20:17:43 security.debian.org_debian-security_dists_stable-security_contrib_i18n_Translation-en -rw-r--r-- 1 root root 1433 2024-02-05 21:52:54 security.debian.org_debian-security_dists_stable-security_contrib_source_Sources -rw-r--r-- 1 root root 958575 2024-05-10 19:15:00 security.debian.org_debian-security_dists_stable-security_main_binary-amd64_Packages -rw-r--r-- 1 root root 663419 2024-05-10 10:56:01 security.debian.org_debian-security_dists_stable-security_main_i18n_Translation-en -rw-r--r-- 1 root root 1925600 2024-05-10 19:15:01 security.debian.org_debian-security_dists_stable-security_main_source_Sources -rw-r--r-- 1 root root 1300 2023-11-23 16:43:07 security.debian.org_debian-security_dists_stable-security_non-free-firmware_binary-amd64_Packages -rw-r--r-- 1 root root 924 2023-09-24 18:52:12 security.debian.org_debian-security_dists_stable-security_non-free-firmware_i18n_Translation-en -rw-r--r-- 1 root root 1839 2023-11-23 16:43:07 security.debian.org_debian-security_dists_stable-security_non-free-firmware_source_Sources -rw-r--r-- 1 root root 43463 2024-05-10 19:15:35 security.debian.org_dists_testing-security_InRelease root, AFAIK (the mail was from root). Regards,
Hi Vincent, Am 13.05.24 um 15:34 schrieb Vincent Lefevre: Please try to access the file e.g. 'less /var/lib/apt/lists//debug.mirrors.debian.org_debian-debug_dists_stable-debug_InRelease' What is _var_local_apt_._Packages? Can you access this files content? Apart from that, I can't spot a problem. Christoph
No problems. Perhaps because on my local repository: deb [trusted=yes] file:///var/local/apt ./ Yes, the file can be read.
Hi Vincent, Am 13.05.24 um 19:59 schrieb Vincent Lefevre: You could try to prepend strace to your cron call like: strace -o /tmp/asv.$$ -e trace=file apt-show-versions -u and look for the failed syscall. Did you look for selinux or apparmor messages in syslog? Christoph
Actually by the user (vinc17, i.e. me). I shouldn't have looked at the "From:" header of the mail for that. Anyway, this shouldn't matter because the permissions are "-rw-r--r--".
The issue is that this is not reproducible, but see below.
The failure occurred on 2024-05-11 00:04:01 +0200.
In the journalctl output:
May 11 00:03:49 qaa su[315536]: (to root) vinc17 on pts/18
May 11 00:03:49 qaa su[315536]: pam_unix(su:session): session opened for user root(uid=0) by vinc17(uid=1000)
May 11 00:03:55 qaa accounts-daemon[1127]: Language 'C.utf8' set for user vinc17 is invalid
May 11 00:04:01 qaa CRON[316214]: pam_unix(cron:session): session opened for user vinc17(uid=1000) by vinc17(uid=0)
May 11 00:04:01 qaa CRON[316215]: (vinc17) CMD (apt-show-versions -u | grep manually)
May 11 00:04:01 qaa CRON[316214]: pam_unix(cron:session): session closed for user vinc17
May 11 00:04:01 qaa postfix/pickup[314458]: 6682BCA011C: uid=1000 from=<vinc17>
May 11 00:04:01 qaa postfix/cleanup[316242]: 6682BCA011C: message-id=<20240510220401.6682BCA011C@qaa.vinc17.org>
May 11 00:04:01 qaa postfix/qmgr[2011]: 6682BCA011C: from=<vincent@vinc17.net>, size=750, nrcpt=1 (queue active)
May 11 00:04:01 qaa postfix/local[316244]: 6682BCA011C: to=<vinc17@qaa.vinc17.org>, orig_to=<vinc17>, relay=local, delay=0.05, delays=0.03/0/0/0.02, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
May 11 00:04:01 qaa postfix/qmgr[2011]: 6682BCA011C: removed
Indeed, I have in my crontab:
4 */6 * * * apt-show-versions -u | grep manually
The mail message is due to the error (normally, there is none).
I logged as root a few seconds before, for an upgrade. I can see
in /var/log/apt/term.log:
Log started: 2024-05-11 00:13:28
[...]
So, perhaps I did an "apt update" around 00:04, and I can see with
"strace -f -o str.out apt update":
914566 chmod("/var/lib/apt/lists/debug.mirrors.debian.org_debian-debug_dists_stable-debug_InRelease", 0600) = 0
before doing later
914566 chmod("/var/lib/apt/lists/debug.mirrors.debian.org_debian-debug_dists_stable-debug_InRelease", 0644 <unfinished ...>
This could explain the error.
I'm wondering why apt plays with the permissions. This is confusing.
Or should there be a locking mechanism?
Am 14.05.24 um 10:39 schrieb Vincent Lefevre: This reminds me about the long due rewrite to use the apt-API to access these files and not read them directly.