Hi I came across this bug lately and found what was causing it. Apparently the python script is run as the current user and needs to be able to read some of the files at /etc/apt. In my case was that I added apt pining in /etc/apt/preferences.d/default.pref and some extra repositories in /etc/apt/sources.list.d.
I was getting this problem because the permissions on those files where 0600. I changed that to 0644 and now everything works as expected. The script should check for those permissions and complain about it can't read something, not getting into a segmentation fault. Thanks David Morgado -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org