Hi Christoph,

On 2024-05-13 15:20:28 +0200, Christoph Martin wrote:
> Am 11.05.24 um 11:53 schrieb Vincent Lefevre:
> > Package: apt-show-versions
> > Version: 0.22.15
> > 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.
> 
> // in the path should not be a problem.

zsh completion cannot handle it, so I was wondering.

> Can you do a 'ls -l /var/lib/apt/lists/' to see the permissions?

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

> Which user does the cronjob run with?

root, AFAIK (the mail was from root).

Regards,

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to