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

Cloud-Native Applications: Should You Go for Stateless or Stateful Services?

Idris state machines in JavaScript apps

Announced at Developer Day: What’s New in Developer Tools and Solutions

Schema Testing Affected By Changes At Google

Rich Results Testing Tool for Schema Testing

Reaching Cloud Velocity, a path to your serverless edge

Photo depicting velocity with artificial light and rays radiating out

Should we focus on certifications?

Securing API Keys in Flutter Using C++ and Dart FFI

A Strategic Take on Cloud Storage Solutions — Part 2: Optimizing

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

Why is my TLS connection failing?

Running Redis with resilience in Linux containers on Windows — Part 6

ExpressJS Series: Managing json configuration based express server

The Evolution of Auth