# apt-get remove collectd-core Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: cups-core-drivers cups-daemon cups-server-common hplip-data libart-2.0-2 libcupscgi1 libcupsmime1 libgutenprint2 libhpmud0 libsane-hpaio python-pexpect python-renderpm python-reportlab python-reportlab-accel Use 'apt-get autoremove' to remove them. The following packages will be REMOVED: collectd-core 0 upgraded, 0 newly installed, 1 to remove and 305 not upgraded. After this operation, 3024 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 = (unset), LC_CTYPE = "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_CTYPE to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory (Reading database ... 211391 files and directories currently installed.) Removing collectd-core (5.4.0-3ubuntu2.2) ... * Stopping statistics collection and monitoring daemon collectd . . . . . . . . . . . . . . . . [fail] invoke-rc.d: initscript collectd, action "stop" failed. dpkg: error processing package collectd-core (--remove): subprocess installed pre-removal script returned error exit status 1 locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory * Starting statistics collection and monitoring daemon collectd ERROR: lt_dlopen ("/usr/lib/collectd/rrdtool.so") failed: file not found. The most common cause for this problem are missing dependencies. Use ldd(1) to check the dependencies of the plugin / shared object. [ OK ] Errors were encountered while processing: collectd-core E: Sub-process /usr/bin/dpkg returned an error code (1)