Results 1 to 5 of 5

Thread: apt locale problem?

  1. #1
    Join Date
    Mar 2013
    Beans
    164

    apt locale problem?

    Hi,

    I just added a 2nd language in a fresh Kubuntu 20.04 install.
    Now all console messages from apt are in that 2nd language.
    In my regional settings, I have specified that all formats and dates are to be in en_US.
    How can i fix these apt console messages?


    TIA
    Nikos

  2. #2
    Join Date
    Jun 2016
    Beans
    2,883
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: apt locale problem?

    Check which environment variables are language related -
    Code:
    env | grep -F LANG
    Then you can try replacing your language with en_US in one or more of these environment variables, e.g.
    Code:
    LANG=en_US.UTF-8 sudo apt update
    Does this do what you're looking for?
    Xubuntu 22.04, ArchLinux ♦ System76 hardware, virt-manager/KVM, VirtualBox
    If your questions are resolved to your satisfaction, please use Thread Tools > "Mark this thread as solved..."

  3. #3
    Join Date
    Mar 2013
    Beans
    164

    Re: apt locale problem?

    Quote Originally Posted by halogen2 View Post
    Check which environment variables are language related -
    Code:
    env | grep -F LANG
    Then you can try replacing your language with en_US in one or more of these environment variables, e.g.
    Code:
    LANG=en_US.UTF-8 sudo apt update
    Does this do what you're looking for?
    Sorry, it didn't work

    Code:
     -> env | grep LANG
    LANGUAGE=en_US:el
    LANG=en_US.UTF-8
    
    -> LANGUAGE=en_US sudo apt update
    Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
    Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
    apt install still uses a mix of en_US and el
    Last edited by nibal; August 15th, 2022 at 01:38 AM.

  4. #4
    Join Date
    Mar 2013
    Beans
    164

    Re: apt locale problem?

    Thanks,

    Actually you nailed the problem.
    Just that your solution needed a bit tweaking.
    If I place in my .bash_profile
    export LANGUAGE=en_US
    all apt messages are in en_US

  5. #5
    Join Date
    Mar 2013
    Beans
    164

    Re: apt locale problem?

    Bug is in .config/plasma-localerc:

    Code:
    -> cat .config/plasma-localerc
    [Formats]
    LANG=en_US.UTF-8
    
    
    [Translations]
    LANGUAGE=en_US:el
    Better fix that

Tags for this Thread

Bookmarks

Posting Permissions

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