I reproduced the bug with apport-retrace easily. Bug happens when using
the apport-retrace sandbox. For some reason, sometimes, some of the gpg
keys in /etc/apt/trusted.gpg.d/ are only readable by root..

I would propose to patch by changing the loop line 179 in shutil.py. I
would add this check line 182:

if not os.access(name, os.R_OK):
   continue

This will prevent to try to copy file when we dont' have read
permissions for them. But there will probably have still have an issue
if those keys are the one we need for the debugging symbols.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1188588

Title:
  apport-retrace crashed with Error in copytree():
  [('/etc/apt/trusted.gpg.d/username-evolution-3_8.gpg~',
  '/home/username/.cache/apport/retrace/system/apt/etc/apt/trusted.gpg.d
  /username-evolution-3_8.gpg~', "[Errno 13] Permission denied:
  '/etc/apt/trusted.gpg.d/username-evolution-3_8.gpg~'"),
  ('/etc/apt/trusted.gpg.d/username-evolution-3_8.gpg',
  '/home/username/.cache/apport/retrace/system/apt/etc/apt/trusted.gpg.d
  /username-evolution-3_8.gpg', "[Errno 13] Permission denied:
  '/etc/apt/trusted.gpg.d/username-evolution-3_8.gpg'")]

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1188588/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to