Ubuntu 安装ollama时:
tang@tang-JASPER12:~/Qwen$ curl https://ollama.ai/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0>>> Downloading ollama...
100 10044 0 10044 0 0 7404 0 --:--:-- 0:00:01 --:--:-- 7407
Warning: Failed to open the file /tmp/tmp.LQnjzFmzPC/ollama: No such file or %#=#=-# #
Warning: directory
0.0%curl: (23) Failure writing output to destination
总是提示:Failure writing output to destination
解决方法:
1. 确认一下curl是不是snap安装的:
tang@tang-JASPER12:~/Qwen$ sudo snap list | grep curl
[sudo] tang 的密码:
curl 8.1.2 1754 latest/stable woutervb -
2. 是,卸载
tang@tang-JASPER12:~/Qwen$ sudo snap remove curl
停止 snap "curl" 服务
将 curl:home 从 snapd:home 断开
...........已删除 curl
3.然后用apt重新安装curl
tang@tang-JASPER12:~/Qwen$ sudo apt install curl
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
下列【新】软件包将被安装:
curl
4.再安装ollama,ok了
tang@tang-JASPER12:~/Qwen$ curl https://ollama.ai/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0>>> Downloading ollama...
100 10044 0 10044 0 0 10605 0 --:--:-- --:--:-- --:--:-- 10617
######################################################################## 100.0%-=#=# # #
>>> Installing ollama to /usr/local/bin...
>>> Creating ollama user...
>>> Adding ollama user to render group...
>>> Adding ollama user to video group...
>>> Adding current user to ollama group...
>>> Creating ollama systemd service...
>>> Enabling and starting ollama service...
Created symlink /etc/systemd/system/default.target.wants/ollama.service → /etc/systemd/system/ollama.service.
>>> NVIDIA GPU installed.
标签:...,--,ollama,Time,tang,Ubuntu,curl,安装 From: https://www.cnblogs.com/sinceret/p/18116094