How to Upgrade Your Debian Server on ECS

When Can You Have Problems After an Upgrade?

Always Upgrade after the First Point Release

Backup Your ECS Instance

Further Decrease Chances of Inconsistent Backups

Step 1 — Backup Your Instance

Step 2 — Clone Your ECS Instance (Optional)

Step 3 — Prepare Debian for Upgrade

apt update && apt upgrade
systemctl reboot

Remove Third Party Repositories and Software (Optional)

apt edit-sources
ls /etc/apt/sources.list.d/
nano /etc/apt/sources.list.d/name-of-file.list
rm -i /etc/apt/sources.list.d/*
apt update
apt install apt-forktracer
apt-forktracer
root@debian-clone:~# apt-forktracer
aliyun-assist (1.0.1.368)
nginx (1.16.0-1~stretch) [Debian Backports: 1.14.1-1~bpo9+1] [Debian: 1.10.3-1+deb9u2 1.10.3-1+deb9u2]
apt autoremove package1 package2 package3

Step 4 — Install tmux and Launch a New Session

apt install tmux
tmux
tmux attach

Step 5 — Edit sources.list to Point to New Debian Release

apt install lsb-release
lsb_release -a
sed -i 's/stretch/buster/g' /etc/apt/sources.list
apt update

Step 6 — Upgrade Debian

apt upgrade
apt full-upgrade
apt autoremove
systemctl reboot

Conclusion

Original Source

--

--

--

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

What is a Docker Container: The Benefits of a Docker Container

My Journey as a Codechef Chapter Leader

How would you solve (Palindrome Permutation)

My letter to the CEO of Zoom {after I cancelled}

Class Library Quiz

Alibaba Workshop @ ICDE 2019

Exciting News! OpenYurt: Alibaba’s First Open-Source, Cloud-Native Project for Edge Computing

The 3 Slowest Sorting Algorithms

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alibaba Cloud

Alibaba Cloud

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

More from Medium

Install NVM (Node Version Manager) and Node.js

An Ubuntu Environment with Node.js

How to Run Symfony Console Command in AWS Lambda

Nginx install on windows