Skip to content

Instantly share code, notes, and snippets.

@carloscn
Created January 10, 2023 11:39
Show Gist options
  • Save carloscn/cc8680ea4b898c6bb5cf28e1bcab5abf to your computer and use it in GitHub Desktop.
Save carloscn/cc8680ea4b898c6bb5cf28e1bcab5abf to your computer and use it in GitHub Desktop.
fix_dpkg.sh
#!/bin/bash
sudo mv /var/lib/dpkg/info /var/lib/dpkg/info.bk
sudo mkdir /var/lib/dpkg/info
sudo apt-get update
sudo apt-get install -f
sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info.bk
sudo rm -rf /var/lib/dpkg/info
sudo mv /var/lib/dpkg/info.bk /var/lib/dpkg/info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment