Apt-get install openstack pkg troubleshooting

Source: Internet
Author: User
Tags openstack swift

Apt-get install openstack pkg troubleshooting

The operating system is Ubuntu 14.04.

During the installation of the Openstack software package, the DNS of the host is correct and the repository of the software source is correct. Why is there always a software package installation error?

The following error is reported:

# Apt-get install cinder-api cinder-scheduler cinder-volume python-cinderclient-y

Reading package lists... Done
Building dependency tree
Reading state information... Done
Cinder-api is already the newest version.
Cinder-scheduler is already the newest version.
Cinder-volume is already the newest version.
Python-cinderclient is already the newest version.
The following packages were automatically installed and are no longer required:
Libboost-iostreams1.46.1 libclass-isa-perl libswitch-perl
Use 'apt-get autoremove 'to remove them.
0 upgraded, 0 newly installed, 0 to remove and 27 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Perl: warning: Setting locale failed.
Perl: warning: Please check that your locale settings:
LANGUAGE = "en_US: en ",
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
Setting up cinder-common (. 1.0-0ubuntu1 ~ Cloud0 )...
/Usr/lib/python2.7/dist-packages/oslo_messaging/_ drivers/base. py: 20: DeprecationWarning: The oslo namespace package is deprecated. Please use oslo_config instead.
From oslo. config import cfg
Traceback (most recent call last ):
File "/usr/bin/cinder-manage", line 6, in <module>
From cinder. cmd. manage import main
File "/usr/lib/python2.7/dist-packages/cinder/cmd/manage. py", line 74, in <module>
From cinder. common import config # noqa
File "/usr/lib/python2.7/dist-packages/cinder/common/config. py", line 105, in <module>
Help = _ ("DEPRECATED: Deploy v1 of the Cinder API .")),
File "/usr/lib/python2.7/dist-packages/oslo_i18n/_ factory. py", line 80, in f
Return _ message. Message (msg, domain = domain)
File "/usr/lib/python2.7/dist-packages/oslo_i18n/_ message. py", line 51, in _ new __
Msgtext = Message. _ translate_msgid (msgid, domain)
File "/usr/lib/python2.7/dist-packages/oslo_i18n/_ message. py", line 91, in _ translate_msgid
System_locale = locale. getdefalocallocale ()
File "/usr/lib/python2.7/locale. py", line 543, in getdefalocallocale
Return _ parse_localename (localename)
File "/usr/lib/python2.7/locale. py", line 475, in _ parse_localename
Raise ValueError, 'unknown locale: % s' % localename
ValueError: unknown locale: UTF-8
Dpkg: error processing package cinder-common (-- configure ):
Subprocess installed post-installation script returned error exit status 1
Dpkg: dependency problems prevent configuration of cinder-volume:
Cinder-volume depends on cinder-common (=. 1.0-0ubuntu1 ~ Cloud0); however:
Package cinder-common is not configured yet.


Dpkg: error processing package cinder-volume (-- configure ):
Dependency problems-leaving unconfigured
Dpkg: dependency problems prevent configuration of cinder-api:
Cinder-api depends on cinder-common (=. 1.0-0ubuntu1 ~ Cloud0); however:
Package cinder-common is not configured yet.


Dpkg: error processing package cinder-api (-- configure ):
Dependency problems-leaving unconfigured
Dpkg: dependency problems prevent configuration of cinder-schedent:
Cinder-scheduler depends on cinder-common (=. 1.0-0ubuntu1 ~ Cloud0); however:
Package cinder-common is not configured yet.


Dpkg: error processing package cinder-scheduler (-- configure ):
Dependency problems-leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because MaxReports is reached already
Errors were encountered while processing:
Cinder-common
Cinder-volume
Cinder-api
Cinder-scheduler

E: Sub-process/usr/bin/dpkg returned an error code (1)

 


An error is reported on the screen. I jumped to the end and did not check the error.

Then we can analyze the root cause of the error:

Perl: warning: Setting locale failed.
Perl: warning: Please check that your locale settings:
LANGUAGE = "en_US: en ",
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


These warnings indicate the locale settings of the system environment, which is too common and easy to ignore.

Setting up cinder-common (. 1.0-0ubuntu1 ~ Cloud0 )...
/Usr/lib/python2.7/dist-packages/oslo_messaging/_ drivers/base. py: 20: DeprecationWarning: The oslo namespace package is deprecated. Please use oslo_config instead.
From oslo. config import cfg
Traceback (most recent call last ):
File "/usr/bin/cinder-manage", line 6, in <module>
From cinder. cmd. manage import main
File "/usr/lib/python2.7/dist-packages/cinder/cmd/manage. py", line 74, in <module>
From cinder. common import config # noqa
File "/usr/lib/python2.7/dist-packages/cinder/common/config. py", line 105, in <module>
Help = _ ("DEPRECATED: Deploy v1 of the Cinder API .")),
File "/usr/lib/python2.7/dist-packages/oslo_i18n/_ factory. py", line 80, in f
Return _ message. Message (msg, domain = domain)
File "/usr/lib/python2.7/dist-packages/oslo_i18n/_ message. py", line 51, in _ new __
Msgtext = Message. _ translate_msgid (msgid, domain)
File "/usr/lib/python2.7/dist-packages/oslo_i18n/_ message. py", line 91, in _ translate_msgid
System_locale = locale. getdefalocallocale ()
File "/usr/lib/python2.7/locale. py", line 543, in getdefalocallocale
Return _ parse_localename (localename)
File "/usr/lib/python2.7/locale. py", line 475, in _ parse_localename
Raise ValueError, 'unknown locale: % s' % localename
ValueError: unknown locale: UTF-8


However, this part has already said that the software package is incorrect due to the encoding format of the system environment.

If not, the same error will be reported when apt installs other software.

Most of the time, we will mix this part with the above warning to divert attention to other places.

Solution:

Echo 'lc _ ALL = "en_US.UTF-8" '>/etc/default/locale


Note: The OS in this environment is ubuntu14.04. Other operating systems are set according to the actual environment.

Log out of the current terminal and log on again to view the locale of the current terminal environment:

# Locale
LANG = en_US.UTF-8
LANGUAGE = en_US: en
LC_CTYPE = "en_US.UTF-8"
LC_NUMERIC = "en_US.UTF-8"
LC_TIME = "en_US.UTF-8"
LC_COLLATE = "en_US.UTF-8"
LC_MONETARY = "en_US.UTF-8"
LC_MESSAGES = "en_US.UTF-8"
LC_PAPER = "en_US.UTF-8"
LC_NAME = "en_US.UTF-8"
LC_ADDRESS = "en_US.UTF-8"
LC_TELEPHONE = "en_US.UTF-8"
LC_MEASUREMENT = "en_US.UTF-8"
LC_IDENTIFICATION = "en_US.UTF-8"
Lc_all= en_US.UTF-8

Use apt-get to install the SDK again.

The following is a collection of Openstack related knowledge for you to see if you like it:

Install and deploy Openstack on Ubuntu 12.10

Ubuntu 12.04 OpenStack Swift single-node deployment Manual

OpenStack cloud computing quick start tutorial

Deploying OpenStack for enterprises: what should be done and what should not be done

CentOS 6.5 x64bit quick OpenStack Installation

This article permanently updates the link address:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.