error executing enable: cannot enable machine: this machine ID is already enabled with a different key or is non-unique.

Enable ulang mesin Ubuntu dengan Key Kernel Livepatch yang baru untuk menghindari error : error executing enable: cannot enable machine: this machine ID is already enabled with a different key or is non-unique.

Ubuntu 16.04/18.04/20.04 LTS :


1. Ambil Key Livepatch di laman https://auth.livepatch.canonical.com/
2. Akses server menggunakan SSH.
3. Regenerated ulang mesin ID dengan menjalankan perintah :
sudo rm /etc/machine-id /var/lib/dbus/machine-id && sudo systemd-machine-id-setup

4. Enable Key Livepatch dengan perintah :

sudo canonical-livepatch enable your-key-canonical-livepatch