# Failed to set locale, defaulting to C # vim /etc/profile # 输入 export LANG=en_US.UTF-8 export LANGUAGE=en_US.UTF-8 export LC_COLLATE=C export LC_CTYPE=en_US.UTF-8
yum
yum 命令卡住
1 2 3 4
# 问题出在 Amazon Linux 2,所有 yum 命令卡住 ps aux | grep yum
kill -9 <pid> # kill 所有 yum 进程
其他问题
Failed to download metadata for repo ‘appstream’
1 2 3 4 5 6 7
# 保存 CentOS Linux 8 - AppStream 9.5 B/s | 38 B 00:03 Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist # 解决 dnf --disablerepo '*' --enablerepo=extras swap centos-linux-repos centos-stream-repos -y dnf distro-sync -y