Error processing line 1 of /usr/lib/python2.7/dist-packages/gtk2-2.0-pysupport-compat.pth:

  Traceback (most recent call last):
    File "/usr/lib/python2.7/site.py", line 162, in addpackage
      if not dircase in known_paths and os.path.exists(dir):
    File "/usr/lib/python2.7/genericpath.py", line 18, in exists
  TypeError: must be encoded string without NULL bytes, not str

Remainder of file ignored
database /var/lib/apt/listchanges.db failed to load.
debconf: Perl may be unconfigured (strict.pm did not return a true value at (eval 1) line 2.
BEGIN failed--compilation aborted at (eval 1) line 2.
) -- aborting
dpkg: error: fgets gave an empty string from `/var/lib/dpkg/triggers/File'
E: Sub-process /usr/bin/dpkg returned an error code (2)

I am guessing you are trying to install .deb files. You probably are missing dependencies.

See these answers to try and automatically find missing dependencies.

Ans1 Ans2 Ans3

  • Thanks for your reply, I will check out your suggestions. Hope to solve this problem because my original intention was not to learn raspbian but to setup a programming environment for the Sunfounder kit. – Patman Jun 30 '16 at 13:36
  • May be this is what you are looking for. I really wanted to use Debian so I installed Rasbian Jessie, but it is too buggy. You might be better of using the Lubuntu version for Raspberry – bluepinto Jun 30 '16 at 17:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.