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

斐讯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 #可不执行(重启后在登录界面可切换中文)

重启系统

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容