Upgrade
Upgrade debian
STEP 1 CHECK YOUR CURRENT DISTRIBUTION
cat /etc/debian_version
current version (sept 2015) 7.8
table of reference:: table with colors https://en.wikipedia.org/wiki/Debian_version_history%7Chttps://en.wikipedia.org/wiki/Debian_version_history
check :: wheezy old stable
current version (aug 2017) 8.8
check :: jessie old stable
STEP 2 UPDATE CURRENT DISTRIBUTION
old stable > to stable
apt-get update && apt-get dist-upgrade && dist-upgrade && apt-get autoremove
(first update than upgrade, than upgrade again if something didn't happen well and autoremove the packages which are not used)
the first command update doesn't work, it logs that we failed to connect to archive.debian.org, a person who is in a paralelle working session, encountered this problem before and know the actual state of the vps where our vps is hosted, he was informed about a case of ddos attacks because of websiteon abortion, so we need to resolve our dns and have another nameserver.. or at least figure out the right numbersSTEP 3 UPDATE THE SOURCE.LIST FOR THE NEW DEBIAN RELEASE
update the source.list
nano /etc/apt/sources.list
wikipedia / debian > table with colors
(change the name of the distribution)
https://wiki.debian.org/SourcesList%7Chttps://wiki.debian.org/SourcesList
deb http://www.debian.org/debian jessie main
deb-src http://www.debian.org/debian jessie main
STEP 4 UPGRADE
apt-get update && apt-get dist-upgrade && dist-upgrade && apt-get autoremove