Skip to content

Instantly share code, notes, and snippets.

@YourFriendCaspian
Forked from ryanpadilha/fix-apt-get.sh
Created September 2, 2017 04:13
Show Gist options
  • Save YourFriendCaspian/eea7fe9838cedaae262184cfdd64d5fb to your computer and use it in GitHub Desktop.
Save YourFriendCaspian/eea7fe9838cedaae262184cfdd64d5fb to your computer and use it in GitHub Desktop.
Commands to fix apt - E: Sub-process /usr/bin/dpkg returned an error code (1)
#!/bin/bash
sudo rm -rf /var/lib/dpkg/info/*.*
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get update
sudo apt-get upgrade
@Hactormunro
Copy link

Cannot work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment