Best way to upgrade from Debian 7 to Debian 8/9

I've attempted an in-place upgrade from Debian 7 (Wheezy) to Debian 8 multiple times. Each time there have been errors in the middle of the upgrade. Wheezy is no longer supported and all of our repos are dead.

What is the best way to upgrade to Debian 8 from scratch without losing our server's IP address and so on?

2 Replies

I ended up just creating a new server from scratch since upgrading didn’t work. There’s an option in the Linode manager to transfer over your IP address from old Linode to the new one.

Hey there,

We're happy to help as we do not recommend inline distribution upgrades.

If you want to upgrade, we do recommend spinning up a new linode with your desired distribution and copying data over. Here are the basic steps to accomplish this:

  1. Create a new Linode with the new distribution
  2. Secure your server
  3. Rebuild your stack
  4. Transfer your data
  5. Swap IP addresses

Individual services (Apache, PHP, MySql) will need to be independently reinstalled on the new Linode. As long as the application versions aren’t too different, you should be able to simply copy over the configuration files and site data. Rsync is a really useful tool to help make that process easier.

We hope that helps. Please feel free to open a ticket if you encounter issues in the process of moving your data.

Tara T
Linode Support Team


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct