You have 2 solutions :
- Install Debian as a third os, and copy all you need from Ubuntu.
- Change your Ubuntu to Debian. To do this you must :
- Choose the version of Debian, you need to use.
- Choose your new graphical environment.
- Adapt your repositories, clean and update your packages database.
- Update Apt application.
- Upgrade your app.