Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am getting below error when I try to run gdb.

from the command line. If type gdb , I get the following error.

root@ubuntu:~# gdb
    Traceback (most recent call last):
      File "/usr/lib/python2.7/site.py", line 68, in <module>
        import os
      File "/usr/lib/python2.7/os.py", line 398, in <module>
        import UserDict

    File "/usr/lib/python2.7/UserDict.py", line 83, in <module>
        import _abcoll
      File "/usr/lib/python2.7/_abcoll.py", line 11, in <module>
        from abc import ABCMeta, abstractmethod
      File "/usr/lib/python2.7/abc.py", line 8, in <module>
        from _weakrefset import WeakSet
      File "/usr/lib/python2.7/_weakrefset.py", line 5, in <module>
        from _weakref import ref
    ImportError: No module named _weakref 

How can I resolve this ?
Thank You

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.