我是 Linux 新手。几天前我安装了 Ubuntu14.04。每当我在 Ubuntu 软件中心安装任何程序时,它都会显示一条消息Package operation failed:The installation or removal of a software package failed
。
这是什么意思?
这意味着软件没有正确安装?
Details部分显示的错误如下图所示:
installArchives() failed: perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_IN.ISO8859-1"
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
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_IN.ISO8859-1"
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
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_IN.ISO8859-1"
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
Selecting previously unselected package libsqlite0.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 205852 files and directories currently installed.)
Preparing to unpack .../libsqlite0_2.8.17-10ubuntu2_amd64.deb ...
Unpacking libsqlite0 (2.8.17-10ubuntu2) ...
Selecting previously unselected package python-sqlite.
Preparing to unpack .../python-sqlite_1.0.1-11_amd64.deb ...
Unpacking python-sqlite (1.0.1-11) ...
Selecting previously unselected package python-kaa-base.
Preparing to unpack .../python-kaa-base_0.6.0+svn4596-1_amd64.deb ...
Unpacking python-kaa-base (0.6.0+svn4596-1) ...
Selecting previously unselected package python-kaa-metadata.
Preparing to unpack .../python-kaa-metadata_0.7.7+svn4596-4_amd64.deb ...
Unpacking python-kaa-metadata (0.7.7+svn4596-4) ...
Selecting previously unselected package python-support.
Preparing to unpack .../python-support_1.0.15_all.deb ...
Unpacking python-support (1.0.15) ...
Selecting previously unselected package subdownloader.
Preparing to unpack .../subdownloader_2.0.14-1.1_all.deb ...
Unpacking subdownloader (2.0.14-1.1) ...
Processing triggers for man-db (2.6.7.1-1) ...
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
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.54ubuntu1) ...
Setting up hspa-modem-dkms (1.02.35) ...
Removing old hspa-modem-1.02.35 DKMS files...
------------------------------
Deleting module version: 1.02.35
completely from the DKMS tree.
------------------------------
Done.
Loading new hspa-modem-1.02.35 DKMS files...
First Installation: checking all kernels...
Building only for 3.13.0-34-generic
Building for architecture x86_64
Building initial module for 3.13.0-34-generic
Error! The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which
does not match this kernel/arch. This indicates that it should not be built.
Skipped.
Removing old hspa-modem-1.02.35 DKMS files...
------------------------------
Deleting module version: 1.02.35
completely from the DKMS tree.
------------------------------
Done.
Loading new hspa-modem-1.02.35 DKMS files...
First Installation: checking all kernels...
Building only for 3.13.0-34-generic
Building for architecture x86_64
Building initial module for 3.13.0-34-generic
Error! The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which
does not match this kernel/arch. This indicates that it should not be built.
dpkg: error processing package hspa-modem-dkms (--configure):
subprocess installed post-installation script returned error exit status 9
Setting up libsqlite0 (2.8.17-10ubuntu2) ...
Setting up python-sqlite (1.0.1-11) ...
Setting up python-kaa-base (0.6.0+svn4596-1) ...
Setting up python-kaa-metadata (0.7.7+svn4596-4) ...
Setting up python-support (1.0.15) ...
Setting up subdownloader (2.0.14-1.1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.1) ...
Processing triggers for python-support (1.0.15) ...
Error in function:
Setting up hspa-modem-dkms (1.02.35) ...
Removing old hspa-modem-1.02.35 DKMS files...
------------------------------
Deleting module version: 1.02.35
completely from the DKMS tree.
------------------------------
Done.
Loading new hspa-modem-1.02.35 DKMS files...
First Installation: checking all kernels...
Building only for 3.13.0-34-generic
Building for architecture x86_64
Building initial module for 3.13.0-34-generic
Error! The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which
does not match this kernel/arch. This indicates that it should not be built.
Skipped.
Removing old hspa-modem-1.02.35 DKMS files...
------------------------------
Deleting module version: 1.02.35
completely from the DKMS tree.
------------------------------
Done.
Loading new hspa-modem-1.02.35 DKMS files...
First Installation: checking all kernels...
Building only for 3.13.0-34-generic
Building for architecture x86_64
Building initial module for 3.13.0-34-generic
Error! The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which
does not match this kernel/arch. This indicates that it should not be built.
dpkg: error processing package hspa-modem-dkms (--configure):
subprocess installed post-installation script returned error exit status 9
请问有人能告诉我这是什么吗?
这是有什么问题吗?
答案1
这意味着您需要设置您的语言环境。
sudo locale-gen en_IN en_IN.UTF-8
sudo dpkg-reconfigure locales
处理 DKMS 问题(警告:这将删除您的 hspa-modem 配置):
sudo apt-get purge hspa-modem-dkms
sudo apt-get install hspa-modem-dkms
当然,如果您使用 dpkg 安装了 hspa-modem-dkms,那么请继续按照之前的方式进行安装。