ubuntu系统中,self-update提示Command "self-update" is not defined.
卸载掉 sudo apt-get remove composer
去composer官网下载composer文件curl -sS https://getcomposer.org/installer | php
然后添加到/usr/bin中,并添加执行权限sudo mv composer.phar /usr/bin/composer
chmod +x /usr/local/bin/composer