Priest_Apostate
Active Member
Currently using Debian 12 on my laptop, and thought to learn about some of the Pentesting tools in Kali Linux (listed here). As some of the tools weren't in the Debian repos, I got the bright idea to add the Kali repositories to my /etc/apt/sources.list. My logic was that as Kali is a Debian fork, there shouldn't be too much of an issue with that. However, upon performing an apt update && apt upgrade -y, I found that the experiment/attempt resulted in my OS being overwritten by Kali OS - according to grub, neofetch and uname.
Strangely, this also affected my older Debian kernel installs: they all showed up as Kali upon rebooting the system - which prevented me from using the earlier kernel version, and attempting to mitigate the damage from there. Attempts to check out dmesg to determine what went wrong revealed nothing. As of now, I still do not know what caused the Kali OS to be imprinted over the Debian OS, as I received no prompt/confirmation to do so.
While this didn't seem to cause any other issues with my installed applications' functionality (which was also curious: all of the post-Debian-installed applications were still there - so that didn't indicate a full wipe/reinstall to me) - the fact that the OS overwrite was unintended bugged me - which resulted in me wiping and reinstalling the OS, and relearning how to re-install my wireless driver to start over (which isn't a bad thing, as I could use the practice); data was already backed up - so there was no issue there. Further researching resulted in me being recommended the application "Timeshift," which allows you to take a snapshot of your system, if I understand it correctly (though I'm unsure as to whether it would have resolved this situation). I'm also researching on how to save an image manually (both as a system restore, and--as a later project--to experiment installing upon a cloud VM).
While I wish to try this again, to find out what went wrong (as according to my understanding, even if that resulted in overwriting my OS, I didn't think it should have affected the earlier kernel versions).
EDIT TO ADD:
1. I am not experiencing any issue with my system currently, and
2. I am not trying to install Kali Linux - I was just wanting to install and work with some of the tools offered on that OS. Part of my other curiosity was to determine what would happen if I installed Kali's repositories onto my Debian install.
With the above stated, my question to you is: have you ever tried installing repos from a different Debian fork - and, if so, how did it work out for you?
Strangely, this also affected my older Debian kernel installs: they all showed up as Kali upon rebooting the system - which prevented me from using the earlier kernel version, and attempting to mitigate the damage from there. Attempts to check out dmesg to determine what went wrong revealed nothing. As of now, I still do not know what caused the Kali OS to be imprinted over the Debian OS, as I received no prompt/confirmation to do so.
While this didn't seem to cause any other issues with my installed applications' functionality (which was also curious: all of the post-Debian-installed applications were still there - so that didn't indicate a full wipe/reinstall to me) - the fact that the OS overwrite was unintended bugged me - which resulted in me wiping and reinstalling the OS, and relearning how to re-install my wireless driver to start over (which isn't a bad thing, as I could use the practice); data was already backed up - so there was no issue there. Further researching resulted in me being recommended the application "Timeshift," which allows you to take a snapshot of your system, if I understand it correctly (though I'm unsure as to whether it would have resolved this situation). I'm also researching on how to save an image manually (both as a system restore, and--as a later project--to experiment installing upon a cloud VM).
While I wish to try this again, to find out what went wrong (as according to my understanding, even if that resulted in overwriting my OS, I didn't think it should have affected the earlier kernel versions).
EDIT TO ADD:
1. I am not experiencing any issue with my system currently, and
2. I am not trying to install Kali Linux - I was just wanting to install and work with some of the tools offered on that OS. Part of my other curiosity was to determine what would happen if I installed Kali's repositories onto my Debian install.
With the above stated, my question to you is: have you ever tried installing repos from a different Debian fork - and, if so, how did it work out for you?
Last edited: