On 03/29/2015 05:02 PM, gregor herrmann wrote:
> On Sun, 29 Mar 2015 16:44:07 +0200, Kasper Loopstra wrote:
>
>> I'm not sure where to go from here? Should I wait until #781120 is
>> resolved in jessie, or continue trying to figure out what's wrong?
> The fix will only print a better error message, i.e. _which_ file
> emits the "Permission denied" message.
>
> But you should be able to find this out by something like:
>
> # su -l debian-spamd
> $ perl -MList::Util -e 'print $INC{"
strict.pm"}'
> /usr/share/perl/5.20/
strict.pm$
I tried, but apparently there's more wrong than just strict.pm.....
root@chloromethane:~# su -l debian-spamd
$ perl -MList::Util -e 'print $INC{"
strict.pm"}'
Can't locate List/Util.pm: Permission denied.
BEGIN failed--compilation aborted.
No luck with perl -V either:
$ perl -V
Can't locate Config.pm: Permission denied.
BEGIN failed--compilation aborted.
$ perl -e "print \"@INC\""
/etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2
/usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20
/usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20
/usr/share/perl/5.20 /usr/local/lib/site_perl .$
for i in $(perl -e "print \"@INC\""); do find $i -type d -not -perm
-o=rx; done$
find: `/usr/local/lib/x86_64-linux-gnu/perl/5.20.2': No such file or
directory
find: `/usr/local/share/perl/5.20.2': Permission denied
find: `/usr/local/lib/site_perl': No such file or directory
./sa-update-keys
./.spamassassin
$
root@chloromethane:~# cd /usr/local/
root@chloromethane:/usr/local# ls -la
total 20
drwxr-xr-x+ 5 root root 4096 Mar 29 13:14 .
drwxr-xr-x 12 root root 4096 Mar 29 12:50 ..
drwxr-xr-x+ 4 root root 4096 Mar 29 13:40 lib
drwxr-x---+ 2 root root 4096 Mar 29 12:31 sbin
drwxr-x---+ 5 root root 4096 Mar 29 13:35 share
chmod o+x share
And everything works after apt-get install -f.
Thank you very much!
However, I am quite sure that I removed /usr/local/share before starting
off with the upgrade, so perhaps there is something wrong with the
upgrade path between wheezy and jessie. So below is what's in the
/usr/local/share after an upgrade. Is there anything wrong here? Or
shouldn't I have removed /usr/local/share without recreating it with
correct permissions?
root@chloromethane:/usr/local# ls -la share/
total 20
drwxr-x--x+ 5 root root 4096 Mar 29 13:35 .
drwxr-xr-x+ 5 root root 4096 Mar 29 13:14 ..
drwxrwsr-x+ 2 root staff 4096 Mar 29 13:34 ca-certificates
drwxrwsr-x+ 4 root staff 4096 Mar 29 13:35 emacs
drwxrwsr-x+ 2 root staff 4096 Mar 29 13:14 texmf
root@chloromethane:/usr/local# ls -laR share/
share/:
total 20
drwxr-x--x+ 5 root root 4096 Mar 29 13:35 .
drwxr-xr-x+ 5 root root 4096 Mar 29 13:14 ..
drwxrwsr-x+ 2 root staff 4096 Mar 29 13:34 ca-certificates
drwxrwsr-x+ 4 root staff 4096 Mar 29 13:35 emacs
drwxrwsr-x+ 2 root staff 4096 Mar 29 13:14 texmf
share/ca-certificates:
total 8
drwxrwsr-x+ 2 root staff 4096 Mar 29 13:34 .
drwxr-x--x+ 5 root root 4096 Mar 29 13:35 ..
share/emacs:
total 16
drwxrwsr-x+ 4 root staff 4096 Mar 29 13:35 .
drwxr-x--x+ 5 root root 4096 Mar 29 13:35 ..
drwxrwsr-x+ 3 root staff 4096 Mar 29 13:35 24.4
drwxrwsr-x+ 2 root staff 4096 Mar 29 13:35 site-lisp
share/emacs/24.4:
total 12
drwxrwsr-x+ 3 root staff 4096 Mar 29 13:35 .
drwxrwsr-x+ 4 root staff 4096 Mar 29 13:35 ..
drwxrwsr-x+ 2 root staff 4096 Mar 29 13:35 site-lisp
share/emacs/24.4/site-lisp:
total 8
drwxrwsr-x+ 2 root staff 4096 Mar 29 13:35 .
drwxrwsr-x+ 3 root staff 4096 Mar 29 13:35 ..
share/emacs/site-lisp:
total 8
drwxrwsr-x+ 2 root staff 4096 Mar 29 13:35 .
drwxrwsr-x+ 4 root staff 4096 Mar 29 13:35 ..
share/texmf:
total 8
drwxrwsr-x+ 2 root staff 4096 Mar 29 13:14 .
drwxr-x--x+ 5 root root 4096 Mar 29 13:35 ..
root@chloromethane:/usr/local#
Thanks again to all,