N1设置中文及安装中文字体

2020-11-29  本文已影响0人  atorber

斐讯T1/N1 Linux 更换中文系统环境和界面
https://blog.csdn.net/hjf0124/article/details/85220733

执行到sudo apt-get install ttf-wqy-zenhei #安装中文字体出现错误

W: Not using locking for read only lock file /var/lib/dpkg/lock-frontend
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

解决:

Linux出现Read-only file system错误的解决方法

https://www.cnblogs.com/jxldjsn/p/11337990.html

image.png

执行以下两条指令后,前两个w报错解决,第三条
mount -o remount -rw /var/lib/dpkg/lock-frontend
mount -o remount -rw /var/lib/dpkg/lock

需要重启一下之后执行
sudo dpkg --configure -a

再执行sudo apt-get install ttf-wqy-zenhei,成功

以下不用执行========================

sudo nano ~/.xprofile #全中文环境增加export LC_ALL=zh_CN.UTF-8

半中文环境增加LC_CTYPE=zh_CN.UTF-8 和 LANG=en_US.UTF-8

sudo locale-gen #生成locale文件

sudo locale-gen zh_CN.UTF-8 #可不执行(重启后在登录界面可切换中文)

重启系统

上一篇 下一篇

猜你喜欢

热点阅读