Last active
January 22, 2018 16:07
-
-
Save ricardoamaro/bb4d1e229efda979f88fdf140fe742c8 to your computer and use it in GitHub Desktop.
Ubuntu xenial or zeisty upgrade to patch Meltdown and Spectre. This will repopulate the /etc/apt/sources.list file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export CODENAME=$(lsb_release -c | awk '{print $2}') | |
echo "###### Ubuntu Main Repos | |
deb http://pt.archive.ubuntu.com/ubuntu/ ${CODENAME} main restricted universe multiverse | |
deb-src http://pt.archive.ubuntu.com/ubuntu/ ${CODENAME} main restricted universe multiverse | |
###### Ubuntu Update Repos | |
deb http://pt.archive.ubuntu.com/ubuntu/ ${CODENAME}-updates main restricted universe multiverse | |
deb http://pt.archive.ubuntu.com/ubuntu/ ${CODENAME}-proposed main restricted universe multiverse | |
###### Ubuntu Partner Repo | |
deb http://archive.canonical.com/ubuntu ${CODENAME} partner | |
deb http://security.ubuntu.com/ubuntu ${CODENAME}-security main restricted universe multiverse" | sudo tee /etc/apt/sources.list | |
sudo apt-get update | |
sudo apt-get -y dist-upgrade | |
sudo reboot | |
# Get the checker: | |
curl -O -s https://raw.githubusercontent.com/speed47/spectre-meltdown-checker/master/spectre-meltdown-checker.sh | |
# Check and read the source code: | |
less spectre-meltdown-checker.sh | |
# Check vulnerabilities: | |
sudo sh spectre-meltdown-checker.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment