在Ubuntu24上安装ollama

安装ollama之前,建议检查显卡驱动是否安装完成。如果还未安装显卡驱动,建议先安装显卡驱动再安装ollama。

  1. 安装curl

    sudo apt update
    sudo apt -y install curl

  2. 进入ollama的下载网站 https://ollama.com/download/linux

  3. 复制安装脚本,并在Ubuntu终端里执行安装脚本

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

如果网络环境不佳,可能会导致安装失败,如下图就是安装失败的截图。

如果你有能顺利连接github的socks5代理服务器,可以先配置代理,然后再执行ollama安装脚本。

复制代码
# 配置代理
export ALL_PROXY=socks5h://127.0.0.1:1080

# ollama安装脚本
curl -fsSL https://ollama.com/install.sh | sh
  1. 执行完安装脚本,没有报错。执行ollama --version,能正常看到ollama版本号说明安装成功。

  2. 接下来就可以使用ollama下载deepseek大模型了

    ollama pull deepseek-r1:1.5b

相关推荐
曲幽2 天前
FastAPI实战:打造本地文生图接口,ollama+diffusers让AI绘画更听话
python·fastapi·web·cors·diffusers·lcm·ollama·dreamshaper8·txt2img
曲幽3 天前
我用FastAPI接ollama大模型,差点被asyncio整崩溃(附对话窗口实战)
python·fastapi·web·async·httpx·asyncio·ollama
大模型真好玩4 天前
大模型训练全流程实战指南工具篇(七)——EasyDataset文档处理流程
人工智能·langchain·deepseek
Rockbean4 天前
用40行代码搭建自己的无服务器OCR
服务器·python·deepseek
曲幽4 天前
FastAPI + Ollama 实战:搭一个能查天气的AI助手
python·ai·lora·torch·fastapi·web·model·ollama·weatherapi
爱吃的小肥羊5 天前
DeepSeek V4 细节曝光:100 万上下文 + 原生多模态
人工智能·aigc·deepseek
AC赳赳老秦5 天前
云原生AI故障排查新趋势:利用DeepSeek实现高效定位部署报错与性能瓶颈
ide·人工智能·python·云原生·prometheus·ai-native·deepseek
AI大模型..5 天前
Dify 本地部署安装教程(Windows + Docker),大模型入门到精通,收藏这篇就足够了!
人工智能·程序员·开源·llm·github·deepseek·本地化部署
AC赳赳老秦6 天前
预见2026:DeepSeek与云平台联动的自动化流程——云原生AI工具演进的核心引擎
人工智能·安全·云原生·架构·自动化·prometheus·deepseek
AC赳赳老秦6 天前
DeepSeek助力云原生AI降本:容器化部署资源优化与算力利用率提升技巧
网络·python·django·prompt·tornado·ai-native·deepseek