fedora/centos常见错误处理
fedora/centos常见错误处理
xfs错误系统无法启动
错误信息: Failed to mount /sysroot
修复:
xfs_repair -v -L /dev/dm-0
启动错误延时
systemctl mask systemd-udev-settle
CentOS7 命令行错误
错误信息: bash: __vte_prompt_command: command not found
修复:
sudo yum install -y epel-release
sudo yum install -y terminator
cgroup mount
sudo mkdir /sys/fs/cgroup/systemd
sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd
Feodra toolbox图形软件启动错误
sudo dnf install nss mesa-libgbm
sudo dnf install wqy-microhei-fonts wqy-zenhei-fonts
cuda导致的错误
sudo dnf module disable nvidia-driver
WPS 字体问题
将字体目录复制到系统的字体目录中:
cp -R win-fonts /usr/share/fonts
默认字体权限应该是755,如果不是的话,手动更改下
chmod 755 *
进入windows字体目录
cd /usr/share/fonts/win-fonts
mkfontscale
mkfontdir
fc-cache
在字体目录中会生成fonts.dir和fonts.scale文件,这表示已经安装成功了。
运行fc-cache -fv,刷新字体缓存。
Redis Make Error
错误信息: ERROR: You need tcl 8.5 or newer in order to run the Redis test make[1]
修复:
dnf install tcl tcl-devel
Podman Error
错误信息: podman Error: error creating tmpdir: mkdir /run/user/1000: permission denied
# 由于userid 改动导致 删除原容器重新安装可解决
rm -rf ~/.local/share/containers
CentOS7语言环境变量错误
错误信息: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "zh_CN.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C").
修复:
# 增加环境变量
.bashrc
export LC_ALL=C
中文支持问题
# 查看支持语言
locale -a
#CentOS6.x:
yum groupinstall chinese-support
#CentOS7.x
yum install -y kde-l10n-Chinese
yum reinstall -y glibc-common
#Fedora
dnf install langpacks-zh_CN
#定义字符集
localedef -c -f UTF-8 -i zh_CN zh_CN.UFT-8
# 或加上
cat /dev/null > /etc/locale.conf && echo "LC_ALL=\"zh_CN.UTF-8\"" > /etc/locale.conf
#确认载入成功
locale -a