sudo systemctl stop ollama
sudo systemctl disable ollama
sudo rm /etc/systemd/system/
sudo rm $(which ollama)
sudo rm -r /usr/share/ollama
sudo userdel ollama
sudo groupdel ollama
我是用官方脚本安装的,卸载比较麻烦
建议 用snap install ollama
卸载也方便snap remove ollama