When trying to install a package, I get the following errors:
ghost:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libsmpeg0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libglib2.0-0
Recommended packages:
libglib2.0-data
The following packages will be upgraded:
libglib2.0-0
1 upgraded, 0 newly installed, 0 to remove and 174 not upgraded.
107 not fully installed or removed.
Need to get 0B/1694kB of archives.
After this operation, 1377kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
libglib2.0-0
Install these packages without verification [y/N]? y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
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_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Can not write log, openpty() failed (/dev/pts not mounted?)
(Reading database ... 21492 files and directories currently installed.)
Preparing to replace libglib2.0-0 2.24.2-1 (using .../libglib2.0-0_2.33.12+really2.32.4-5_armel.deb) ...
Unpacking replacement libglib2.0-0 ...
dpkg-deb: file `/var/cache/apt/archives/libglib2.0-0_2.33.12+really2.32.4-5_armel.deb' contains ununderstood data member data.tar.xz , giving up
dpkg: error processing /var/cache/apt/archives/libglib2.0-0_2.33.12+really2.32.4-5_armel.deb (--unpack):
subprocess dpkg-deb --fsys-tarfile returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/libglib2.0-0_2.33.12+really2.32.4-5_armel.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
How can I fix this?
Thank you in advance.