Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ apt-get install openstack pkg Troubleshooting     - Linux network security backdoor technology and advanced skill practice (Linux)

- Nagios (centreon) monitoring Linux Log (Server)

- LVM Disk Manager Application (Linux)

- Nagios (centreon) monitoring LVS (Server)

- Linux under DB2SQL1024N A database connection does not exist. SQLS (Database)

- How to use Linux to download music from Grooveshark (Linux)

- Oracle 11.2.0.3 and MySQL5.6 DDL comparison (Database)

- The correct way to open Xcode - Debugging (Programming)

- JavaScript cross-browser event object library (Programming)

- Based on OpenSSL for HTTPS service configuration (Server)

- Memcached and Redis (Linux)

- Default permissions Linux file and directory permissions and hide - umask, chattr, lsattr, SUID, SGID, SBIT, file (Linux)

- Linux compiler of GCC (Linux)

- Oracle 12C RAC optimizer_adaptive_features cause of data into overtime (Database)

- Additional SQL Server 5123 database reported error (Database)

- Use XtraBackup to MySQL database online incremental backup and recovery (Database)

- The YUM package management under Linux (Linux)

- Oracle set and remove columns unavailable (Database)

- Shilpa Nair interview experience sharing RedHat Linux package management (Linux)

- Use mysqldump MySQL database backup - Linux Shell Scripting (Database)

 
         
  apt-get install openstack pkg Troubleshooting
     
  Add Date : 2016-06-14      
         
         
         
  Operating system Ubuntu 14.04

In Openstack package installation process, the host's DNS no problem, software source repository is correct, why the package is always installed wrong?

Given as follows:

# 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: Can not set LC_CTYPE to default locale: No such file or directory
locale: Can not set LC_ALL to default locale: No such file or directory
Setting up cinder-common (1: 2015.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
    from cinder.cmd.manage import main
  File "/usr/lib/python2.7/dist-packages/cinder/cmd/manage.py", line 74, in
    from cinder.common import config # noqa
  File "/usr/lib/python2.7/dist-packages/cinder/common/config.py", line 105, in
    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.getdefaultlocale ()
  File "/usr/lib/python2.7/locale.py", line 543, in getdefaultlocale
    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: 2015.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: 2015.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-scheduler:
 cinder-scheduler depends on cinder-common (= 1: 2015.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)


Being given on the screen, skip to the last bit, did not find out how to check.

So back to analyze the root causes 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: Can not set LC_CTYPE to default locale: No such file or directory
locale: Can not set LC_ALL to default locale: No such file or directory


This prompted several warning locale setting system environment, too often it is easy to overlook.

Setting up cinder-common (1: 2015.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
    from cinder.cmd.manage import main
  File "/usr/lib/python2.7/dist-packages/cinder/cmd/manage.py", line 74, in
    from cinder.common import config # noqa
  File "/usr/lib/python2.7/dist-packages/cinder/common/config.py", line 105, in
    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.getdefaultlocale ()
  File "/usr/lib/python2.7/locale.py", line 543, in getdefaultlocale
    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


But this part of the package has been said since the encoding format system environment results in an error.

If not addressed, it will be reported the same mistake when installing other software apt.

Many times, we put this part of the warning above mixed together, thus shifting attention elsewhere.

Solution is:

echo 'LC_ALL = "en_US.UTF-8"' >> / etc / default / locale


Note: This is the environment of OS ubuntu14.04. Other OS based on the actual environment settings.

Exit the current terminal, log back in to check the current locale 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

Again using apt-get install can succeed.
     
         
         
         
  More:      
 
- How to install Ubuntu California - the calendar application (Linux)
- grep command Series: grep command to search for multiple words (Linux)
- DRBD daily management (Server)
- MongoDB study notes - polymerization (Database)
- iOS9 new feature - stacked view UIStackView (Programming)
- Cache implementation APP interacts with the server-side interface control Session (Server)
- The Java Properties class action (Programming)
- Taught you how to install Ubuntu Linux (Linux)
- MySQL 5.6 master-slave replication configuration (Database)
- Let Linux operating system more secure (Linux)
- Dynamic programming Android (Programming)
- Linux firewall anti-hacker disguise malicious attacks (Linux)
- Python 2 Chinese garbage problem solved (Linux)
- How to use the tab in Vim carried Python code completion (Linux)
- grep command Series: How to Use the grep command in Linux / UNIX (Linux)
- Oracle table space create large files (Database)
- Setting Lns firewall against ARP attacks (Linux)
- redis configuration in detail (English) (Database)
- Linux system versions organize local root password cracking method (Linux)
- Debian 7.8 system installation and configuration process (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.