Remova o compositor para o Ubuntu
sudo apt-get remove composer
Ali
sudo apt-get remove composer
composer self-update
Delete the file composer.phar.
Delete the Cache Folder:
Linux: /home/<user>/.composer
Windows: C:\Users\<username>\AppData\Roaming\Composer