Update - Mark Hindley pointed out that my use of rsync to add packages
from /var/cache/apt/archives on client boxen had imported *.deb packages
owned by root into /var/cache/apt-cacher/import (on the the apt-cacher
server).
Running apt-cacher-import.pl then moved those files into
/var/cache/apt-cacher/packages with the same ownership - and caused the
(my) problem.

*Solution*:-
before running apt-cacher-import.pl:-
# chown -R www-data:www-data /var/cache/apt-cacher/import

Mark also sent the following patch for apt-cacher-import.pl which will
warn of incorrect permissions (tested as working):-
================================================================
diff --git a/apt-cacher-import.pl b/apt-cacher-import.pl
index 0660d55..b30ab00 100755
--- a/apt-cacher-import.pl
+++ b/apt-cacher-import.pl
@@ -340,6 +340,11 @@ sub import {
 
         # copy the ownership of the private directory
         chown $info[4], $info[5], "$header_dir/$targetfile",
"$package_dir/$targetfile";
+        foreach (glob("{$header_dir,$package_dir}/$targetfile")) {
+            my @stat = stat;
+            warn "Failed to set ownership for $_. Left as
$stat[4]:$stat[5]. You need to correct this manually\n"
+              unless join('', @stat[4,5]) eq join('', @info[4,5]);
+        }
         }
         $imported++;
     }
================================================================



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to