执行systemctl start ollama报错:

System has not been booted with systemd as init system (PID 1). Can’t
operate. Failed to connect to bus: Host is down

其实是未安装systemctl;

那么安装systemctl:

apt-get install systemctl

又报错:

E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages
发生故障,这可能是有软件包被要求保持现状的缘故。 E: 无法更正依赖关系

解决办法:

sudo aptitude install <packagename>

系统给出解决方案:

是否接受该解决方案?[Y/n/q?]

输入 Y,等待!

如果显示没有"aptitude"这个命令,安装它

sudo apt-get install aptitude

再次安装,问题解决!

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐