How to upgrade Debian 9 to Debian 10 Buster using the CLI

Originally published at: https://www.cyberciti.biz/faq/update-upgrade-debian-9-to-debian-10-buster/

I have Debian 9.x installed on AWS EC2. How do I upgrade Debian 9 Stretch to Debian 10 Buster using the / CLI? How can I upgrade Debian 9 to Debian 10 using ssh client?

There is an error in the line sudo cp /etc/apt/sources.list.d/ /root/

you forgot the -r flag in the cp command because /etc/apt/sources.list.d/ is a directory

1 Like