Skip to content

Instantly share code, notes, and snippets.

@waja
Last active April 28, 2021 16:37
Show Gist options
  • Save waja/d6f8715b0a187796212e012bf2289033 to your computer and use it in GitHub Desktop.
Save waja/d6f8715b0a187796212e012bf2289033 to your computer and use it in GitHub Desktop.
Fix source lists after removal of jessie-updates and move of jessie-backports into archive.debian.org
#!/bin/bash
# disable jessie-updates in /etc/apt/sources.list
sed -i 's/\(.*jessie\-updates\)/#\1/' /etc/apt/sources.list
# disable jessie-backports, it's deprecated
sed -i 's/\(.*jessie\-backports\)/#\1/' /etc/apt/sources.list.d/jessie-backports.list
apt-get update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment