Skip to content

Instantly share code, notes, and snippets.

@slayerlab
Created October 11, 2016 21:50
Show Gist options
  • Save slayerlab/ea51cc5ca095092e79091fe26b6872f1 to your computer and use it in GitHub Desktop.
Save slayerlab/ea51cc5ca095092e79091fe26b6872f1 to your computer and use it in GitHub Desktop.
fix the broken packages
#!/bin/bash
# Fix the broken packages
for package in $(cat broken_pkg | cut -d"'" -f2);
do apt-get install --reinstall "$package" -y;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment