8

My Kali stopped working after upgrade. I run it in recovery mode, and it seems that basic communication (http) packages have some problem.

When I try wget or curl I get:

relocation error /usr/lib/x86_64-linux-gnu/libgnutls.so.30: symbol _idn2_punycode_decode version IDN2_0.0.0 not defined in file libidn2.so.0 with link time reference

I guess that some files are corrupted but cannot find a way to detect all the corrupted, and to replace them. Of course, I need to do it manually (e.g., from USB), as I can't use wget and similar commands.

Thanks!

  • My Kali Linux has the same exact issue. Happened after I updated the Metasploit Framework. Hopefully someone will has a solution or knows how to fix this. – Aura Aug 1 at 20:55
  • @Aura I managed to fix it! see my answer below. – Gari BN Aug 1 at 22:15
8

Ok here is the fix that worked for me:

My box was running live when I did this.

First download deb to another host:

wget http://ftp.us.debian.org/debian/pool/main/libi/libidn2/libidn2-0_2.0.5-1_amd64.deb

Then SCP that up to the box that is having issues.

Once the file is up on the box. Run this:

sudo dpkg -i /tmp/libidn2-0_2.0.5-1_amd64.deb

This was a downgrade for me and then I was able to update (apt-get) without issue.

At this point I do not know of any issues this will cause. Use at your own risk.

2

I succeeded to fix it:

  1. From another computer I downloaded the libidn2.so.0 deb file and moved it to USB.
  2. In recovery-mode, I succeeded to offline replace it with my file. Now wget, curl and the other networking command work!
  3. I ran update and upgrade successfully and installed gnome. (after the upgrade, I had to re-install again libidn2.so.0).
  4. Reboot and login page pops up (although it took longer than I used to).

Hope it helps!

  • Awesome! I'll give this a try tomorrow and let you know how it went. – Aura Aug 2 at 1:59
  • I had this happen after some upgrades on my Powerbook (which is running Debian). I cross compiled gnutls and libidn for it and that fixed it here (for now). – Wyatt8740 Aug 8 at 16:26

protected by Community Sep 9 at 11:51

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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