Flatpak Removal Error On Ubuntu

I had installed Flatpak on Ubuntu 19.04 some time to run some photo processing software. Once I was done with I removed the app and removed Flatpak using

apt remove flatpak

When i booted up the machine the next time, I was presented with this error. The machine was stuck, it wouldn’t load the GUI and I couldn’t even escape the modal window with the keyboard or mouse.

Error found when loading /etc/profile:

/etc/profile.d/flatpak.sh: line25: flatpak: command not found

As a result the session will not be configured correctly. 
You should fix the problem as soon as feasibile.

enter image description here

The Fix

From the Grub menu I selected to run Ubuntu in recovery mode and opted to drop in to the root shell, which loaded everything without the GUI and the following took care of removing Flatpak properly and then was able to get back into GNOME on subsequent reboot.

apt purge flatpak

Comments

comments powered by Disqus