How to update Ubuntu from 16.10 to 17.10? [duplicate]

First I would like to add that this is a hack, and problems may or may not arrise from doing this. I only tried this with Ubuntu Server 16.10.

I managed to upgrade from server release 16.10 to 17.10 by doing the following:

Open /etc/apt/sources.list :

vim /etc/apt/sources.list

Change all references from yakkety to artful:

:%s/yakkety/artful/g

Do an update and upgrade:

apt update && apt upgrade

Reboot the system.