我是 Linux 新手。幾天前我安裝了Ubuntu14.04。每當我在 Ubuntu 軟體中心安裝任何程式時,它都會向我顯示一條訊息Package operation failed:The installation or removal of a software package failed
:
這是什麼意思?
這意味著軟體沒有正確安裝?
詳細資訊部分顯示的錯誤如下所示:
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,那麼請按照之前的方式進行安裝。