前言

本文记录在unbuntu22.0这个linux发行版本下安装ollama。

安装ollama

1、安装git

sudo apt-get install git

2、下载ollama脚本,并执行脚本

curl -fsSL https://ollama.com/install.sh | sh

3、启动ollama并下载llama3-8b

ollama run llama3:8b

常见问题:

执行命令curl -fsSL https://ollama.com/install.sh | sh报错:

dpkg: error: dpkg frontend lock was locked by another process with pid 113
Note: removing the lock file is always wrong, can damage the locked area22
and the entire system. See <https://wiki.debian.org/Teams/Dpkg/FAQ#db-lock>

解决方法
执行命令:lsof /var/lib/dpkg/lock
再次执行:curl -fsSL https://ollama.com/install.sh | sh 成功。

Logo

尧米是由西云算力与CSDN联合运营的AI算力和模型开源社区品牌,为基于DaModel智算平台的AI应用企业和泛AI开发者提供技术交流与成果转化平台。

更多推荐