关于debian11无法安装星火商店的解决方法
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #!/bin/bash if [ "$(id -u)" != "0" ] then echo "请确保你使用root权限启动此脚本" exit fi echo "此脚本会加入debian testing到你的sources.list,这样就可以正常安装星火商店的依赖了" echo "你可以随时修改/etc/apt/sources.list来删除此testing源" echo "如果你在使用Debian 11 testing/sid仓库,则不需要" echo 输入1继续,其他输入则放弃 read if_edit_sources ##### if [ "$if_edit_sources" = "1" ];then echo `#以下是debian testing源`>>/etc/apt/sources.list echo 'deb https://mirrors.tuna.tsinghua.edu.cn/debian/ testing main contrib non-free' >>/etc/apt/sources.list echo 'deb https://mirrors.tuna.tsinghua.edu.cn/debian/ testing-updates main contrib non-free' >>/etc/apt/sources.list apt update echo "-------已经更新完毕,请用 apt install ./ 安装星火商店本体" echo "按回车退出" read exit 0 else echo "-----已放弃,按回车退出" read exit fi ##### |
创建sh文档,并执行他!
随后,sudo apt install ./name.deb
原帖:https://www.deepinos.org/d/689-debian11/8
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义