Several things spring to mind. Here are three
Don’t install packages from repositories other than Kali’s own. At best you’ll end up with package version mismatches, and worst you’ll break your system.
Here’s what Kali’s authors have to say on the subject (my emphasis),
adding other operating system’s repositories into Kali (such as trying to put Ubuntu on Kali), will break your installation. This is the single most common reason why Kali Linux systems break.If any guides are telling you to do anything else than the above, this is unofficial advice, and completely not supported by Kali Linux. More often than not, users in this case end up doing a reinstall after learning this lesson.
Don’t use Kali as a daily driver, but instead keep it for security and penetration testing. It has all sorts of strange corners specificially because it’s designed for security testing
Here’s what Kali documentation says,
Kali Linux is specifically geared to meet the requirements of professional penetration testing and security auditing. To achieve this, several core changes have been implemented in Kali Linux which reflect these needs
Get yourself a well-supported general purpose distribution (Mint, Ubuntu, Debian, Fedora, etc.) and use that for your development work. You could even run Kali as a VM on this system should you need to do so – but be aware that all of Kali’s applications are already freely available on other distributions.