Run the following command:

sed -i 's/wheezy/jessie/g' /etc/apt/sources.list
apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y