Skip to content

Instantly share code, notes, and snippets.

@goforbroke1006
Created August 19, 2021 13:48
Show Gist options
  • Save goforbroke1006/c55fa80bb7a965a42253fd70ee4921cd to your computer and use it in GitHub Desktop.
Save goforbroke1006/c55fa80bb7a965a42253fd70ee4921cd to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
PACKAGE_NAME=$1 # ca-certificates for example
cd /var/lib/dpkg/info
sudo rm ${PACKAGE_NAME}.*
sudo apt-get install -f && sudo dpkg --configure -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment