Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: zypper dup gives /usr/bin/manpath: can't set the locale; make sure $LC_* and $LANG are correct

  1. #1

    Default zypper dup gives /usr/bin/manpath: can't set the locale; make sure $LC_* and $LANG are correct

    Hi there,

    when running my daily zypper dup, I frequently get this warning:

    /usr/bin/manpath: can't set the locale; make sure $LC_* and $LANG are correct

    Everything works fine though, so this is just a little annoyance. Here is
    my locale output:

    LANG=POSIX
    LC_CTYPE=en_US.UTF-8
    LC_NUMERIC="POSIX"
    LC_TIME="POSIX"
    LC_COLLATE="POSIX"
    LC_MONETARY="POSIX"
    LC_MESSAGES="POSIX"
    LC_PAPER="POSIX"
    LC_NAME="POSIX"
    LC_ADDRESS="POSIX"
    LC_TELEPHONE="POSIX"
    LC_MEASUREMENT="POSIX"
    LC_IDENTIFICATION="POSIX"
    LC_ALL=


    Any ideas?

    TIA




  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    16,016
    Blog Entries
    3

    Default Re: zypper dup gives /usr/bin/manpath: can't set the locale; make sure $LC_* and $LANG are correct

    I don't look closely at output from "zypper dup".

    I do keep a transcript of the most recent run, but I did not find "manpath" mentioned there.
    openSUSE Leap 15.4; KDE Plasma 5.24.4;
    testing Tumbleweed.

  3. #3
    Join Date
    Sep 2012
    Posts
    7,870

    Default Re: zypper dup gives /usr/bin/manpath: can't set the locale; make sure $LC_* and $LANG are correct

    Quote Originally Posted by abruenin View Post
    Here is my locale output
    Locale settings are per-user (actually per-process) so what matters is locale settings when this program runs, not locale settings in your (unknown) user interactive session.

    Check /var/log/zypp/history, this output should be recorded there. It should provide information what package invokes this command, then we could look at scripts this package runs during update.

  4. #4

    Default Re: zypper dup gives /usr/bin/manpath: can't set the locale; make sure $LC_* and $LANG are correct

    Quote Originally Posted by arvidjaar View Post
    Locale settings are per-user (actually per-process) so what matters is locale settings when this program runs, not locale settings in your (unknown) user interactive session.

    Check /var/log/zypp/history, this output should be recorded there. It should provide information what package invokes this command, then we could look at scripts this package runs during update.
    Sorry, I run zypper as root and this was the locale of my root user. But here is where I need some help:

    If I su to root:

    arne@Arnes-PC:~> su -
    Password:
    Arnes-PC:~ # locale
    LANG=POSIX
    LC_CTYPE=en_US.UTF-8
    LC_NUMERIC="POSIX"
    LC_TIME="POSIX"
    LC_COLLATE="POSIX"
    LC_MONETARY="POSIX"
    LC_MESSAGES="POSIX"
    LC_PAPER="POSIX"
    LC_NAME="POSIX"
    LC_ADDRESS="POSIX"
    LC_TELEPHONE="POSIX"
    LC_MEASUREMENT="POSIX"
    LC_IDENTIFICATION="POSIX"
    LC_ALL=

    But if I just do

    arne@Arnes-PC:~> sudo locale
    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
    LANG=en_DE.UTF-8
    LC_CTYPE="en_DE.UTF-8"
    LC_NUMERIC=en_DE.UTF-8
    LC_TIME=en_DE.UTF-8
    LC_COLLATE=en_DE.UTF-8
    LC_MONETARY=en_DE.UTF-8
    LC_MESSAGES="en_DE.UTF-8"
    LC_PAPER="en_DE.UTF-8"
    LC_NAME="en_DE.UTF-8"
    LC_ADDRESS="en_DE.UTF-8"
    LC_TELEPHONE="en_DE.UTF-8"
    LC_MEASUREMENT=en_DE.UTF-8
    LC_IDENTIFICATION="en_DE.UTF-8"
    LC_ALL=

    I get the same error as running sudo zypper dup. How can I fix this?

  5. #5
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    7,237

    Default AW: zypper dup gives /usr/bin/manpath: can't set the locale; make sure $LC_* and $LANG are correct


  6. #6

    Default Re: AW: zypper dup gives /usr/bin/manpath: can't set the locale; make sure $LC_* and $LANG are corre

    Quote Originally Posted by Sauerland View Post
    Sorry, next time. Cannot edit that post anymore.

  7. #7
    Join Date
    Sep 2012
    Posts
    7,870

    Default Re: zypper dup gives /usr/bin/manpath: can't set the locale; make sure $LC_* and $LANG are correct

    Quote Originally Posted by abruenin View Post
    Code:
    arne@Arnes-PC:~> sudo locale
    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 
    LANG=en_DE.UTF-8
    Such locale does not exist. Post output of
    Code:
    env | grep -E 'LANG|LC_'
    sudo -s
    env | grep -E 'LANG|LC_'
    What desktop environment are you using?

  8. #8

    Default Re: zypper dup gives /usr/bin/manpath: can't set the locale; make sure $LC_* and $LANG are correct

    I am running KDE.

    Code:
    Arnes-PC:/home/arne # env | grep -E 'LANG|LC_' 
    LANGUAGE= 
    LANG=POSIX 
    LC_CTYPE=en_US.UTF-8 
    Arnes-PC:/home/arne # sudo -s 
    Arnes-PC:/home/arne # env | grep -E 'LANG|LC_' 
    LANGUAGE= 
    LANG=POSIX 
    LC_CTYPE=POSIX
    Do I need to set these?

  9. #9
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    7,237

    Default AW: zypper dup gives /usr/bin/manpath: can't set the locale; make sure $LC_* and $LANG are correct

    Not executed as root:
    Code:
    Arnes-PC:/home/arne #
    As User.
    Code:
    stephan@linux64:~> env | grep -E 'LANG|LC_'
    LC_MEASUREMENT=de_DE.UTF-8
    LC_MONETARY=de_DE.UTF-8
    LANG=de_DE.UTF-8
    LC_COLLATE=de_DE.UTF-8
    LC_NUMERIC=de_DE.UTF-8
    LANGUAGE=de_DE.UTF-8
    LC_TIME=de_DE.UTF-8
    stephan@linux64:~>
    Code:
    stephan@linux64:~> sudo -s
    [sudo] Passwort für root: 
    linux64:/home/stephan # env | grep -E 'LANG|LC_'
    LANG=POSIX
    LC_CTYPE=de_DE.UTF-8
    LANGUAGE=de_DE.UTF-8
    linux64:/home/stephan #

  10. #10

    Default Re: zypper dup gives /usr/bin/manpath: can't set the locale; make sure $LC_* and $LANG are correct

    Thanks, LANG and LANGUAGE is missing in my environment. Just wondering, what might be the best place to set them. I can't find anything in .bashrc, /etc/bash.bashrc, .profile, /etc/profile.
    Is there any preference, where these should be set?

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •