Skip to content

SKIP_PPA_LAUNCHPAD due to launchpad extended DDOS attack#155

Closed
FrankiePustorino wants to merge 2 commits intoUtappia:developfrom
FrankiePustorino:patch-4
Closed

SKIP_PPA_LAUNCHPAD due to launchpad extended DDOS attack#155
FrankiePustorino wants to merge 2 commits intoUtappia:developfrom
FrankiePustorino:patch-4

Conversation

@FrankiePustorino
Copy link
Copy Markdown
Contributor

Key Changes Made:
Added global flag: SKIP_PPA_LAUNCHPAD=0 at the top of the script

New function: APT_UPDATE_WITH_SKIP() - Handles apt update with optional skipping of ppa.launchpad.net

Creates a temporary apt configuration to skip ppa.launchpad.net

Filters out error messages related to the skipped repository

Provides clear user feedback about what's happening

Updated MAINTENANCE() function: Now calls APT_UPDATE_WITH_SKIP instead of direct apt update

New command-line option: --skip-ppa-launchpad

Can be combined with other options (or used alone)

Added to help text with clear explanation

Updated SHOW_HELP(): Includes documentation for the new flag

Normal maintenance (apt update includes all repos) sudo ucaresystem-core

Skip ppa.launchpad.net during apt update

sudo ucaresystem-core --skip-ppa-launchpad

Skip ppa.launchpad.net and then reboot

sudo ucaresystem-core --skip-ppa-launchpad -r

Skip ppa.launchpad.net with debug

sudo ucaresystem-core --skip-ppa-launchpad -x

Key Changes Made:
Added global flag: SKIP_PPA_LAUNCHPAD=0 at the top of the script

New function: APT_UPDATE_WITH_SKIP() - Handles apt update with optional skipping of ppa.launchpad.net

Creates a temporary apt configuration to skip ppa.launchpad.net

Filters out error messages related to the skipped repository

Provides clear user feedback about what's happening

Updated MAINTENANCE() function: Now calls APT_UPDATE_WITH_SKIP instead of direct apt update

New command-line option: --skip-ppa-launchpad

Can be combined with other options (or used alone)

Added to help text with clear explanation

Updated SHOW_HELP(): Includes documentation for the new flag

# Normal maintenance (apt update includes all repos)
sudo ucaresystem-core

# Skip ppa.launchpad.net during apt update
sudo ucaresystem-core --skip-ppa-launchpad

# Skip ppa.launchpad.net and then reboot
sudo ucaresystem-core --skip-ppa-launchpad -r

# Skip ppa.launchpad.net with debug
sudo ucaresystem-core --skip-ppa-launchpad -x
Key Changes Made:
Fixed the incomplete function - All functions are now properly closed with }

Improved APT_UPDATE_WITH_SKIP function - Now uses a safer approach:

Temporarily moves PPA files containing "launchpad" to a backup directory

Runs apt update without those PPAs

Restores the PPAs after the update completes

This ensures Launchpad PPAs are only skipped temporarily

Added proper error handling - The script now properly handles cases where PPA files might not exist


# Normal maintenance (includes all PPAs)
sudo ucaresystem-core

# Skip Launchpad PPAs (useful during attacks/outages)
sudo ucaresystem-core --skip-ppa-launchpad

# Skip Launchpad PPAs and then reboot
sudo ucaresystem-core --skip-ppa-launchpad -r

# Combine with debug mode
sudo ucaresystem-core --skip-ppa-launchpad -x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant