ROS交流群
ROS Group
产品服务
Product Service
开源代码库
Github
官网
Official website
技术交流
Technological exchanges
激光雷达
LIDAR
ROS教程
ROS Tourials
深度学习
Deep Learning
机器视觉
Computer Vision

Ubuntu 更新时提示locale错误的解决方法



  • 在更细系统是有时会出现下面的错误

    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
    	LANGUAGE = (unset),
    	LC_ALL = (unset),
    	LC_PAPER = "zh_CN.UTF-8",
    	LC_ADDRESS = "zh_CN.UTF-8",
    	LC_MONETARY = "zh_CN.UTF-8",
    	LC_NUMERIC = "zh_CN.UTF-8",
    	LC_TELEPHONE = "zh_CN.UTF-8",
    	LC_IDENTIFICATION = "zh_CN.UTF-8",
    	LC_MEASUREMENT = "zh_CN.UTF-8",
    	LC_CTYPE = "en_US.UTF-8",
    	LC_TIME = "zh_CN.UTF-8",
    	LC_NAME = "zh_CN.UTF-8",
    	LANG = "en_US.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
    

    这是由于系统默认语言没有设置。可以执行下面的指令进行设置

    sudo dpkg-reconfigure locales
    

    根据界面中的提示选择语言就可以了。