Fix brocken packages by following List Of Commands
21:11
Fix broken packages
Fix broken packages on Uubuntu various mathords
Update and fix missing packages
sudo apt-get update –fix-missingForce to install
sudo apt-get install -fFix installation pkg itself
sudo dpkg –configure -aList all the installed packages
sudo dpkg --listSearch for problematic package
sudo dpkg -l | grep ^..rYou can also remove a package by its name
sudo apt-get purge "file-name"Clean all the downloaded files for installing a package or multiple
sudo apt cleanUpdate the terminal
sudo apt updateIt removes the lock in the list directory
sudo rm /var/lib/apt/lists/lockIt removes the lock-in archives directory
sudo rm /var/cache/apt/archives/lockRemove automatically installed packages no longer required
sudo apt-get autoremoveUpdate the packages
sudo apt-get updateUpgrade the packages
sudo apt-get upgradeUpdate and upgrade in a single command
sudo apt update && sudo apt upgradeReboot required after fixing broken packages
reboot
Mathord 2
List packages
sudo dpkg --listSearch for packages using its name
sudo dpkg --list|grep pkgnameForce to remove the package using ints name
sudo dpkg --remove -force --force-remove-reinstreq PACKAGE_NAME_GOES_HEREFix installation pkg itself
sudo apt-get --fix-broken installClean all the downloaded files during package installation
sudo apt-get cleanInstall forcefully
sudo apt-get install -fFix installation pkg itself
sudo dpkg --configure -aUpdate terminal
sudo apt-get updateRemove lock files
sudo rm /var/lib/apt/lists/* -vfUpdate
sudo apt-get updateClean downloaded file during installation
sudo apt-get cleanFree up some more space by removing apt-get files, not in use
sudo apt-get autocleanRemove packages automatically installed at the time of downloading pkg files
sudo apt-get autoremoveFix installation pkg itself
sudo dpkg --configure -aUpdate system
sudo apt-get update
Kali Linux
sudo apt-get update --fix-missing
sudo apt-get install -f
sudo apt-get update
sudo apt-get clean
sudo apt-get autoremove
sudo dpkg --remove -force --force-remove-reinstreq Package_Name
sudo dpkg --configure -a
apt-get remove package_name
sudo apt-get clean
sudo apt-get update
sudo rm /var/lib/apt/lists/lock
sudo rm /var/lib/dpkg/lock
sudo rm /var/lib/dpkg/lock-frontend
sudo dpkg --configure -a
sudo apt clean
udo apt update --fix-missing
sudo apt install -f
sudo dpkg --configure -a
sudo apt upgrade
sudo apt dist-upgrade
sudo reboot