Updating your Ubuntu server: it’s the electrifying journey that every server administrator dreams of! The adrenaline rush of facing potential software conflicts and mysterious error messages is an experience that can’t be replicated. So, strap in as we embark on this heart-pounding rollercoaster of server maintenance!
The “Exciting” Preparations
Before we dive headfirst into the tumultuous sea of updates, let’s not forget the exhilarating preparations. Clear your schedule for the day, because who needs sleep when you can stare at the terminal screen in wide-eyed wonder? Ignite your anticipation as you stock up on caffeine and snacks, because maintaining a server is basically an extreme sport.
Fetch latest repositories and update packages
sudo apt update
sudo apt upgrade -y
sudo apt-get --with-new-pkgs upgrade apt ubuntu-advantage-tools
Update kernel for Ubuntu
sudo apt-get install linux-virtual
The Thrill of Uncertainty
Updating an Ubuntu server is like wandering through a dense fog without a map. Will your favorite applications emerge unscathed, or will they decide to embark on a vacation of their own? The heart races as you hit that “Enter” key, wondering if you’ll be greeted by a triumphant success message or a cryptic error code that seems to speak in tongues.
Remove leftovers
sudo apt -y autoremove
Error Messages: The Real Hidden Gems
Ah, error messages – the true gems of any server update. Who wouldn’t want to decipher codes and messages that seem to have been crafted by a mischievous AI with a sense of humor? Embrace the thrill of troubleshooting as you Google your way through a maze of forum threads, each offering a different mystical solution. It’s like a puzzle where the pieces never quite fit, but the fun is in the attempt!
Installing AWS components
sudo apt install linux-aws
wget https://s3.amazonaws.com/amazoncloudwatch-agent/ubuntu/amd64/latest/amazon-cloudwatch-agent.deb
sudo dpkg -i ./amazon-cloudwatch-agent.deb
Celebrate the Small Wins
Amidst the chaos, remember to celebrate the small wins. Did your server reboot without producing sparks? Cheers! Did you manage to fix a problem without causing three new ones? Take a bow! Every step forward in this adrenaline-fueled odyssey deserves its moment in the spotlight.
View a list of kernel packages installed
uname -r
dpkg -l | grep kernel
Remove old versions
sudo apt remove --purge linux-headers-5.15.0-71
Install popular tools
sudo apt install net-tools vim jq wget
Setup docker
sudo apt install docker.io
sudo usermod -aG docker $USER
Disable ipv6
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1
Conclusion
Updating an Ubuntu server is truly an unparalleled adventure, a tale of triumphs and tribulations that will leave you breathless. So, the next time you’re faced with an update notification, don’t shy away. Embrace the irony of excitement and frustration, and remember that in the end, it’s the journey that counts, not the destination. Happy updating, intrepid server administrator!
Disk cleanup
sudo apt-get clean
ncdu
fdups
sudo journalctl --disk-usage
sudo journalctl --vacuum-size=100M
cd /nexus-data/blobs/default/content
grep -l "deleted=true" */*/*properties | sed -En 's/properties/bytes/p' | gawk '{print "echo \"\" > " $1}' | bash
About the author

- Helping Startups with Data Security, Compliance & DevOps
-
👋 Hello! I’m on a journey to change the world!
Proudly serving as the founder of Databunker, an open-source data security project that has already earned an impressive 1,000 stars on GitHub.
I'm eagerly looking forward to connecting with exceptional software architects and visionary CTOs who are crafting groundbreaking software products.
Together, let’s shape a more private and secure digital future!
Latest entries
-
startupsSeptember 29, 2023Get LinkedIn Followers on AUTOPILOT
-
UncategorizedSeptember 3, 2023Static Site Generator: Dominating Google’s Top Results
-
startupsAugust 29, 2023LinkedIn B2B Lead Gen on AUTOPILOT
-
UncategorizedAugust 28, 2023Fastest WordPress Hosting Webmasters Are Talking About