how to upgrade composer ubuntu
you need to first remove the composer
->sudo apt-get remove composer
and then type the below command to install composer globally
->sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
for more info :
click on the link below