Convert LMDE to Debian Wheezy

By | 2013/05/14

I changed my existing Linux Mint Debian Edition desktop over to pure Debian wheezy. Right now (May 2013) is the optimum time as switching to wheezy is currently an ‘upgrade’ and packages will nicely upgrade without issue. Here is how I did it!


Change your sources.list to point to wheezy

/etc/apt/sources.list before change:

deb http://packages.linuxmint.com/ debian main upstream import backport
deb-src http://packages.linuxmint.com/ debian main upstream import backport #Added by software-properties
deb http://mirror.metrocast.net/linuxmint-debian/latest testing main contrib non-free
deb http://mirror.metrocast.net/linuxmint-debian/latest/security testing/updates main contrib non-free
deb http://mirror.metrocast.net/linuxmint-debian/latest/multimedia testing main non-free

deb http://download.virtualbox.org/virtualbox/debian squeeze contrib non-free

/etc/apt/sources.list after change:

deb http://ftp.us.debian.org/debian wheezy main contrib non-free
deb-src http://ftp.us.debian.org/debian wheezy main contrib non-free

deb http://security.debian.org/ wheezy/updates main contrib non-free

#deb-multimedia.org
deb http://www.deb-multimedia.org wheezy main non-free

#Oracle VM VirtualBox
deb http://download.virtualbox.org/virtualbox/debian wheezy contrib non-free

I removed /etc/apt/sources.list.d/dropbox.list to avoid any complications. I can add dropbox later if needed.

Remove /etc/apt/preferences to remove apt-pinning done by LMDE.


Perform usual upgrade commands

$ sudo apt-get update

$ sudo apt-get remove mintsystem

$ sudo apt-get upgrade

$ sudo apt-get dist-upgrade

$ sudo reboot

Done.


Check these files which should read as follows:

/etc/issue

Debian GNU/Linux 7.0 \n \l

/etc/issue.net

Debian GNU/Linux 7.0

/etc/os-release

PRETTY_NAME="Debian GNU/Linux 7.0 (wheezy)"
NAME="Debian GNU/Linux"
VERSION_ID="7.0"
VERSION="7.0 (wheezy)"
ID=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support/"
BUG_REPORT_URL="http://bugs.debian.org/"

And Debian doesn’t have this file so you may wish to move it out of the way.

$ sudo mv /etc/lsb-release /etc/lsb-release.old

Mint / Cinnimon or whatever your existing desktop environment remains unless you choose to uninstall it.

lmde_to_wheezy