I'm trying to upgrade my bootloader from GRUB to GRUB2 following this guide
https://help.ubuntu.com/community/Grub2/Upgrading
Problem is that at the end of the process when i do
sudo upgrade-from-grub-legacy
It will appear an error message and it will stop
dpkg-maintscript-helper: error: environment variable DPKG_MAINTSCRIPT_NAME is required
System is a cloud based service (QuadraNet) where they provide VPS with ubuntu 16.04x64bit preloaded. At the moment both Grub-legacy and Grub2 are present, but only Grub-legacy is loading.