Pogrzebałem troche w internecie ale żadnego rozwiązania nie znalazłem.
apt-get remove composer
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
jsonlint php-composer-ca-bundle php-composer-semver php-composer-spdx-licenses php-composer-xdebug-handler php-json-schema php-mbstring
php-psr-log php-symfony-console php-symfony-debug php-symfony-filesystem php-symfony-finder php-symfony-process php7.3-mbstring
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
composer
0 upgraded, 0 newly installed, 1 to remove and 58 not upgraded.
After this operation, 1928 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 16739 files and directories currently installed.)
Removing composer (1.8.4-1) ...
dpkg: error: unable to sync new file '/var/lib/dpkg/status-new': Input/output error