我试图在我的 Ubuntu 上安装 ROS 2,并运行以下单元格:
locale # check for UTF-8
sudo apt update && sudo apt install locales
sudo locale-gen en_US en_US.UTF-8
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
export LANG=en_US.UTF-8
现在,当我尝试做一个简单的事情时sudo apt update
,我得到了这个:
sudo: pam_open_session: Bad item passed to pam_*_item()
sudo: policy plugin failed session initialization
这是我的 /etc/default/locale:
# File generated by update-locale
LANG=en_US.UTF-8
LANGUAGE="en_CA:en"
=