/usr/sbin/update-info-dir: 2: /etc/default/locale: UTF-8: not found dpkg

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I am a linux beginner. when I install any software in Ubuntu16.04,I come across the same error. For example,when I install smplayer(sudo apt-get install smplayer) ,then I come across the error below:



/usr/sbin/update-info-dir: 2: /etc/default/locale: UTF-8: not found
dpkg: error processing package install-info (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing: install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)


Below are the outputs of locale and ls -ld /etc/default/locale



robert@robert-ThinkPad:~$ locale
LANG=zh_CN. UTF-8
LANGUAGE=en_US:en
LC_CTYPE="zh_CN. UTF-8"
LC_NUMERIC="zh_CN. UTF-8"
LC_TIME="zh_CN. UTF-8"
LC_COLLATE="zh_CN. UTF-8"
LC_MONETARY="zh_CN. UTF-8"
LC_MESSAGES="zh_CN. UTF-8"
LC_PAPER="zh_CN. UTF-8"
LC_NAME="zh_CN. UTF-8"
LC_ADDRESS="zh_CN. UTF-8"
LC_TELEPHONE="zh_CN. UTF-8"
LC_MEASUREMENT="zh_CN. UTF-8"
LC_IDENTIFICATION="zh_CN. UTF-8"
LC_ALL=

robert@robert-ThinkPad:~$ ls -ld /etc/default/locale
-rw-r--r-- 1 root root 76 2月 22 2017 /etc/default/locale


file locale seems werid



How can I solve this problem?










share|improve this question























  • When did the problem started?
    – Arun
    Mar 21 at 9:45






  • 1




    Could you please edit your question to include the output of locale and ls -ld /etc/default/locale? Please use the button in the editor toolbar to format code and command output listings. Thanks.
    – David Foerster
    Mar 21 at 10:47










  • Something must be wrong with the file locale.Thanks.
    – RobertXu
    Mar 23 at 13:51














up vote
0
down vote

favorite












I am a linux beginner. when I install any software in Ubuntu16.04,I come across the same error. For example,when I install smplayer(sudo apt-get install smplayer) ,then I come across the error below:



/usr/sbin/update-info-dir: 2: /etc/default/locale: UTF-8: not found
dpkg: error processing package install-info (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing: install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)


Below are the outputs of locale and ls -ld /etc/default/locale



robert@robert-ThinkPad:~$ locale
LANG=zh_CN. UTF-8
LANGUAGE=en_US:en
LC_CTYPE="zh_CN. UTF-8"
LC_NUMERIC="zh_CN. UTF-8"
LC_TIME="zh_CN. UTF-8"
LC_COLLATE="zh_CN. UTF-8"
LC_MONETARY="zh_CN. UTF-8"
LC_MESSAGES="zh_CN. UTF-8"
LC_PAPER="zh_CN. UTF-8"
LC_NAME="zh_CN. UTF-8"
LC_ADDRESS="zh_CN. UTF-8"
LC_TELEPHONE="zh_CN. UTF-8"
LC_MEASUREMENT="zh_CN. UTF-8"
LC_IDENTIFICATION="zh_CN. UTF-8"
LC_ALL=

robert@robert-ThinkPad:~$ ls -ld /etc/default/locale
-rw-r--r-- 1 root root 76 2月 22 2017 /etc/default/locale


file locale seems werid



How can I solve this problem?










share|improve this question























  • When did the problem started?
    – Arun
    Mar 21 at 9:45






  • 1




    Could you please edit your question to include the output of locale and ls -ld /etc/default/locale? Please use the button in the editor toolbar to format code and command output listings. Thanks.
    – David Foerster
    Mar 21 at 10:47










  • Something must be wrong with the file locale.Thanks.
    – RobertXu
    Mar 23 at 13:51












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am a linux beginner. when I install any software in Ubuntu16.04,I come across the same error. For example,when I install smplayer(sudo apt-get install smplayer) ,then I come across the error below:



/usr/sbin/update-info-dir: 2: /etc/default/locale: UTF-8: not found
dpkg: error processing package install-info (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing: install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)


Below are the outputs of locale and ls -ld /etc/default/locale



robert@robert-ThinkPad:~$ locale
LANG=zh_CN. UTF-8
LANGUAGE=en_US:en
LC_CTYPE="zh_CN. UTF-8"
LC_NUMERIC="zh_CN. UTF-8"
LC_TIME="zh_CN. UTF-8"
LC_COLLATE="zh_CN. UTF-8"
LC_MONETARY="zh_CN. UTF-8"
LC_MESSAGES="zh_CN. UTF-8"
LC_PAPER="zh_CN. UTF-8"
LC_NAME="zh_CN. UTF-8"
LC_ADDRESS="zh_CN. UTF-8"
LC_TELEPHONE="zh_CN. UTF-8"
LC_MEASUREMENT="zh_CN. UTF-8"
LC_IDENTIFICATION="zh_CN. UTF-8"
LC_ALL=

robert@robert-ThinkPad:~$ ls -ld /etc/default/locale
-rw-r--r-- 1 root root 76 2月 22 2017 /etc/default/locale


file locale seems werid



How can I solve this problem?










share|improve this question















I am a linux beginner. when I install any software in Ubuntu16.04,I come across the same error. For example,when I install smplayer(sudo apt-get install smplayer) ,then I come across the error below:



/usr/sbin/update-info-dir: 2: /etc/default/locale: UTF-8: not found
dpkg: error processing package install-info (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing: install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)


Below are the outputs of locale and ls -ld /etc/default/locale



robert@robert-ThinkPad:~$ locale
LANG=zh_CN. UTF-8
LANGUAGE=en_US:en
LC_CTYPE="zh_CN. UTF-8"
LC_NUMERIC="zh_CN. UTF-8"
LC_TIME="zh_CN. UTF-8"
LC_COLLATE="zh_CN. UTF-8"
LC_MONETARY="zh_CN. UTF-8"
LC_MESSAGES="zh_CN. UTF-8"
LC_PAPER="zh_CN. UTF-8"
LC_NAME="zh_CN. UTF-8"
LC_ADDRESS="zh_CN. UTF-8"
LC_TELEPHONE="zh_CN. UTF-8"
LC_MEASUREMENT="zh_CN. UTF-8"
LC_IDENTIFICATION="zh_CN. UTF-8"
LC_ALL=

robert@robert-ThinkPad:~$ ls -ld /etc/default/locale
-rw-r--r-- 1 root root 76 2月 22 2017 /etc/default/locale


file locale seems werid



How can I solve this problem?







apt package-management dpkg locale






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 23 at 14:08

























asked Mar 21 at 8:42









RobertXu

213




213











  • When did the problem started?
    – Arun
    Mar 21 at 9:45






  • 1




    Could you please edit your question to include the output of locale and ls -ld /etc/default/locale? Please use the button in the editor toolbar to format code and command output listings. Thanks.
    – David Foerster
    Mar 21 at 10:47










  • Something must be wrong with the file locale.Thanks.
    – RobertXu
    Mar 23 at 13:51
















  • When did the problem started?
    – Arun
    Mar 21 at 9:45






  • 1




    Could you please edit your question to include the output of locale and ls -ld /etc/default/locale? Please use the button in the editor toolbar to format code and command output listings. Thanks.
    – David Foerster
    Mar 21 at 10:47










  • Something must be wrong with the file locale.Thanks.
    – RobertXu
    Mar 23 at 13:51















When did the problem started?
– Arun
Mar 21 at 9:45




When did the problem started?
– Arun
Mar 21 at 9:45




1




1




Could you please edit your question to include the output of locale and ls -ld /etc/default/locale? Please use the button in the editor toolbar to format code and command output listings. Thanks.
– David Foerster
Mar 21 at 10:47




Could you please edit your question to include the output of locale and ls -ld /etc/default/locale? Please use the button in the editor toolbar to format code and command output listings. Thanks.
– David Foerster
Mar 21 at 10:47












Something must be wrong with the file locale.Thanks.
– RobertXu
Mar 23 at 13:51




Something must be wrong with the file locale.Thanks.
– RobertXu
Mar 23 at 13:51










1 Answer
1






active

oldest

votes

















up vote
1
down vote













I changed the /etc/default/locale with



LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN:en"


and then the probelm was solved






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1017871%2fusr-sbin-update-info-dir-2-etc-default-locale-utf-8-not-found-dpkg%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    I changed the /etc/default/locale with



    LANG="zh_CN.UTF-8"
    LANGUAGE="zh_CN:en"


    and then the probelm was solved






    share|improve this answer
























      up vote
      1
      down vote













      I changed the /etc/default/locale with



      LANG="zh_CN.UTF-8"
      LANGUAGE="zh_CN:en"


      and then the probelm was solved






      share|improve this answer






















        up vote
        1
        down vote










        up vote
        1
        down vote









        I changed the /etc/default/locale with



        LANG="zh_CN.UTF-8"
        LANGUAGE="zh_CN:en"


        and then the probelm was solved






        share|improve this answer












        I changed the /etc/default/locale with



        LANG="zh_CN.UTF-8"
        LANGUAGE="zh_CN:en"


        and then the probelm was solved







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 3 at 7:45









        RobertXu

        213




        213



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1017871%2fusr-sbin-update-info-dir-2-etc-default-locale-utf-8-not-found-dpkg%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491