python - apt-get /usr/bin/datetime.so wrong ELF class -


i'm trying add repo apt-get bit fails complaining on elf headers

sudo add-apt-repository -y ppa:chris-lea/node.js traceback (most recent call last):   file "/usr/bin/add-apt-repository", line 11, in <module>     softwareproperties.softwareproperties import softwareproperties, shortcut_handler   file "/usr/lib/python3/dist-packages/softwareproperties/softwareproperties.py", line 44, in <module>     xml.sax.saxutils import escape   file "/usr/lib/python3.4/xml/sax/saxutils.py", line 6, in <module>     import os, urllib.parse, urllib.request   file "/usr/lib/python3.4/urllib/request.py", line 88, in <module>     import http.client   file "/usr/lib/python3.4/http/client.py", line 69, in <module>     import email.parser   file "/usr/lib/python3.4/email/parser.py", line 12, in <module>     email.feedparser import feedparser, bytesfeedparser   file "/usr/lib/python3.4/email/feedparser.py", line 27, in <module>     email import message   file "/usr/lib/python3.4/email/message.py", line 15, in <module>     email import utils   file "/usr/lib/python3.4/email/utils.py", line 30, in <module>     import datetime importerror: /usr/bin/datetime.so: wrong elf class: elfclass32 error in sys.excepthook: traceback (most recent call last):   file "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook     apport.fileutils import likely_packaged, get_recent_crashes   file "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>     apport.report import report   file "/usr/lib/python3/dist-packages/apport/report.py", line 21, in <module>     urllib.request import urlopen   file "/usr/lib/python3.4/urllib/request.py", line 88, in <module>     import http.client   file "/usr/lib/python3.4/http/client.py", line 69, in <module>     import email.parser   file "/usr/lib/python3.4/email/parser.py", line 12, in <module>     email.feedparser import feedparser, bytesfeedparser   file "/usr/lib/python3.4/email/feedparser.py", line 27, in <module>     email import message   file "/usr/lib/python3.4/email/message.py", line 15, in <module>     email import utils   file "/usr/lib/python3.4/email/utils.py", line 30, in <module>     import datetime importerror: /usr/bin/datetime.so: wrong elf class: elfclass32 

i've tried reinstalling datetime libary using sudo apt-get install --reinstall --purge libpython3.4-stdlib libpython2.7-stdlib

any idea on how fix problem? i'm running: 3.13.0-48-generic #80-ubuntu smp thu mar 12 11:16:15 utc 2015 x86_64 x86_64 x86_64 gnu/linux

as wrote here

because apt-file search /usr/bin/datetime.so returns no output:

make backup of file /usr/bin/datetime.so:

sudo mv /usr/bin/datetime.so /usr/bin/datetime.so.bak 

and run again

sudo add-apt-repository -y ppa:chris-lea/node.js 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -