/ raspberry

Raspbian upgrade: Wheezy to Jessie

Step 1: Update all current packages

$ sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get dist-upgrade

Step 2: Update release in package lists

$ sudo sed -i /deb/s/wheezy/jessie/g /etc/apt/sources.list
$ sudo sed -i /deb/s/wheezy/jessie/g /etc/apt/sources.list.d/*.list

Step 3: Fetch new packages

$ sudo apt-get update -y 

Step 4: First upgrade existing packages

$ sudo apt-get upgrade -y 

Step 5: Finally run the distro upgrade:

$ sudo apt-get dist-upgrade -y