A while back I added the kali linux repositories to my /etc/apt/sources.list so that I could get that version of aircrack-ng. A few days later the system prompted me for updates via the package installer with software from kali.
After a reboot the debian grub bootloader was replaced with the one from kali, and as I don't actually have the kali OS, the boot hangs if I choose kali, but manages to boot if I select windows.
Using the debian install disk I have used the rescue mode and tried to reinstall grub with the command grub-install, and it appears to work. I have used the command on all three of my partitions which are:
-/dev/sda1 Something to do with the boot, it contains the files BOOTNXT, BOOTSECT.BAK, Boot, Recovery, System Volume Information, and bootmgr
-/dev/sda2 My windows partition
-/dev/sda3 My debian partition
On the debian partition in the /boot folder I found 8 files, a system map, config, initrd.img, and vmlinuz for both debian and kali. I have deleted the kali ones and after a reboot they are not recreated, but it still boots to the kali grub.
It might also be worth noting I have two files in the root directory labeled vmlinuz, and vmlinuz.old I have never installed any other linux distribution, nor have I upgraded debian from an older version, but when I tried to switch around the name, I got the error: "Bareword 'vmlinuz' not allowed while 'strict subs' in use at (user-supplied-code)."
Thank you so much for trying to help me. I know I'm going to feel stupid when I figure this out.
Edit #1: After removing the repositories from /etc/apt/sources.list and running apt-get update it downloaded a couple mebabytes, but after a reboot the kali bootloader is still there.
Edit #2: Just for grins I decided to boot to what grub was calling kali, and viola! My debian environment loaded as it normally does. After some tweaking with Grub Customizer, I reverted everything to my backup, and everything works as it used to. On both my desktop and laptop I have deleted the repository labeled kali/updates in hope that it won't do any distribution related updates, and I have commented out the other repository, so when I need software from it I will have to uncomment it, and apt-get update. Is there and easier way to do that, so that I can still use repositories from other distributions but not allow them to install anything distribution related?