hate when the terminal tells you to --fix-missing or --break-system-packages? well no more! this script will fix both of these issues for good
A small Bash script that permanently enables APT’s Fix-Missing option and pip’s break-system-packages setting on Kali Linux—so you never have to type --fix-missing or --break-system-packages again.
- Auto‑enable APT’s
Fix-Missingglobally - Auto‑enable pip’s
break-system-packagesin your user or system config - Backs up any existing configuration files before modification
- Usable as non‑root for pip; warns and skips APT when not run as root
- Kali Linux (or any Debian‑based distro)
- Bash shell
- For APT config changes: root privileges
- Internet connection to run
apt update(optional, not built into script)
- Clone this repository:
git clone https://github.com/YourUsername/fix-kali.git cd fix-kali - Make the script executable:
chmod +x fix-kali.sh
- As root (updates pip and APT configs):
sudo ./fix-kali.sh
The script will report which configs were updated and where backups were stored (e.g. /etc/pip.conf.bak, ~/.config/pip/pip.conf.bak, /etc/apt/apt.conf.d/99fix-missing.bak).
- Pip
- Detects if running as root or regular user
- Updates
/etc/pip.conf(system‑wide) or~/.config/pip/pip.conf(user) - Adds:
[global] break-system-packages = true
- APT
- Requires root
- Writes
/etc/apt/apt.conf.d/99fix-missing:APT::Get::Fix-Missing "true";
This project is licensed under the MIT License. See LICENSE for details.