I did this recently, but I did not upgrade via the Ubuntu upgrade, I copied my important data to another hard-drive and reformatted my disk with fresh install of Ubuntu 18.04.
I think in your case it is better to completely remove all existing ros-kinetic packages , then upgrade to 18.04 and finally reinstall ros-melodic packages.
Originally posted by Fetullah Atas with karma: 819 on 2020-02-05
This answer was NOT ACCEPTED on the original site
Post score: 1
Original comments
Comment by rosbie0602 on 2020-02-06:
The reason I don't want to fresh install ubuntu 18.04 is that I have dual booted my laptop and i don't trust Ubuntu installation process.
Comment by Fetullah Atas on 2020-02-06:
yes, I did so because I needed to reformat my computer anyway,otherwise I would also follow upgrade process instead of fresh install
Comment by Santosh on 2020-10-11:
Does workspace built in kinetic remain as it is after upgrading to melodic ?