apt remove libssh2-php
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libphp5.5-embed libssh2-1 php5.5-cli php5.5-common php5.5-json
php5.5-opcache php5.5-readline
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
libssh2-php
0 upgraded, 0 newly installed, 1 to remove and 36 not upgraded.
1 not fully installed or removed.
After this operation, 127 kB disk space will be freed.
Do you want to continue? [Y/n] y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = "",
LC_TIME = "en_US.UTF-8",
LC_MONETARY = "en_US.UTF-8",
LC_ADDRESS = "en_US.UTF-8",
LC_TELEPHONE = "it_IT.UTF-8",
LC_NAME = "en_US.UTF-8",
LC_MEASUREMENT = "en_US.UTF-8",
LC_IDENTIFICATION = "en_US.UTF-8",
LC_NUMERIC = "en_US.UTF-8",
LC_PAPER = "it_IT.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 65598 files and directories currently installed.)
Removing libssh2-php (0.12-1build1) ...
/var/lib/dpkg/info/libssh2-php.prerm: 17: /var/lib/dpkg/info/libssh2-php.prerm: php5dismod: not found
dpkg: error processing package libssh2-php (--remove):
subprocess installed pre-removal script returned error exit status 127
Errors were encountered while processing:
libssh2-php
E: Sub-process /usr/bin/dpkg returned an error code (1)