Skip to content

Instantly share code, notes, and snippets.

@lgoldstien
Created January 3, 2016 21:20
Show Gist options
  • Select an option

  • Save lgoldstien/4d841daea55618d22dec to your computer and use it in GitHub Desktop.

Select an option

Save lgoldstien/4d841daea55618d22dec to your computer and use it in GitHub Desktop.
Enable any disabled apt repositories after dist update in ubuntu
#!/usr/bin/env bash
for f in /etc/apt/sources.list.d/*.save; do
echo "Processing $f file..";
sudo mv $f ${f::-5}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment