解决系统集成中X无法启动waiting for X server to shut down FreeFontPath

本文介绍了在龙芯系统上因内核更新导致USB安装时X.Org X Server无法启动的问题,涉及字体缺失及模块加载失败等错误。通过拷贝特定字体文件解决了这一问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

该系统是龙芯系统,编译之前,将Makefile 文件中注释掉了“scripts/clipping $“之后,做出来的新系统,内核更换为2fspc之后,USB安装系统时无法启动X.

错误描述:
X.Org X Server 1.4.2
Release Date: 11 January 2008
X Protocol Version 11, Revision 0, Release 7.2
Build Operating System: Linux 2.6.27.7-38 mips
Current Operating System: Linux localhost 2.6.27.6-loongson-2f-dirty  #10 PREEMPT Fri Mar 22 17:28:46 CST 2010 mips64
Build Date: 03 December 2008 01:41:34PM
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Tue Aug 26 03:18:28 2008
(==) Using config file: "/etc/X11/xorg.conf"
(EE) failed to load module "V41" (module does not exist,0)
(II) Module "ramdac" already built-in
(II) Module "ddc" already built-in
(EE) SIS(0):Cannot read V_BIOS (5)

error opening security policy file /usr/lib/xserver/SecurityPolicy

waiting for X server to shut down FreeFontPath: FPE "/usr/share/fonts/misc/" refcount is 2, should be 1; fixing.

错误原因:
字体的问题,就是一些字体找不到的时候,确实找代替字体。

解决办法:
将之前系统里的/usr/share/fonts/zh_CN/TrueType/WenQuanYiZenHei.ttf 拷贝进来,就可以了!

 

补充:

将之前系统里的/usr/share/X11/fonts/* 也需要拷贝过来。

<think>我们正在处理用户关于Ollama服务器未响应的问题。用户执行`ollama list`命令时遇到错误:"ollama server not responding - timed out waiting for server to start"。我们需要提供解决方法。 首先,我们需要分析可能的原因: 1. Ollama服务未启动。 2. 服务启动失败(可能是端口冲突、权限问题等)。 3. 系统环境问题(如PATH设置、系统服务管理问题等)。 然后,我们将提供逐步的解决步骤。 注意:根据用户环境(Windows、macOS或Linux),具体步骤可能有所不同。因此,我们将提供跨平台的通用方法,并在必要时区分平台。 另外,我们可能需要用户检查日志以获取更详细的信息。 由于用户问题中提到了“timed out waiting for server to start”,所以重点在于如何确保Ollama服务正确启动。 步骤计划: 1. 尝试手动启动Ollama服务。 2. 检查服务状态。 3. 检查端口冲突(默认端口11434)。 4. 检查日志文件。 5. 重新安装Ollama(如果以上步骤无效)。 我们将按照这些步骤提供解决方案。</think>### Ollama 服务器未响应的解决方法 当执行 `ollama list` 命令时出现 **"ollama server not responding - timed out waiting for server to start"** 错误,通常表示后台服务未正常运行。以下是系统级排查步骤: #### 1. **手动启动 Ollama 服务** ```bash # Linux/macOS sudo systemctl start ollama # Windows net start ollama ``` 如果服务不存在,需重新安装 Ollama 客户端[^1]。 #### 2. **检查服务状态** ```bash # Linux/macOS sudo systemctl status ollama # Windows sc query ollama ``` 若状态显示 `inactive` 或 `failed`,需检查日志: ```bash journalctl -u ollama -b # Linux ``` #### 3. **端口冲突检测** Ollama 默认使用端口 `11434`,检查是否被占用: ```bash lsof -i :11434 # Linux/macOS netstat -ano | findstr :11434 # Windows ``` 若冲突,修改 Ollama 配置: ```bash echo "OLLAMA_HOST=0.0.0.0:11435" >> ~/.bashrc # 更换端口 source ~/.bashrc ``` #### 4. **权限问题修复** ```bash # Linux/macOS sudo chown -R $USER:$USER ~/.ollama sudo setenforce 0 # 临时禁用 SELinux # Windows 以管理员身份运行 Ollama ``` #### 5. **环境变量验证** 确保 `PATH` 包含 Ollama 路径: ```bash echo $PATH | grep ollama # Linux/macOS ``` 若无输出,手动添加: ```bash export PATH=$PATH:/usr/local/bin/ollama ``` #### 6. **彻底重装** 卸载后删除残留文件: ```bash rm -rf ~/.ollama # Linux/macOS rm -rf /usr/local/bin/ollama ``` 重新下载安装包:[Ollama 官网](https://ollama.com/download) ---
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值