Debian 安装 git
生活随笔
收集整理的這篇文章主要介紹了
Debian 安装 git
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
Debian 安裝 git
1.首先配置/etc/apt/sources.list
nano /etc/apt/sources.listdeb http://ftp.cn.debian.org/debian/ stretch main deb http://ftp.cn.debian.org/debian/ stretch-updates main deb http://ftp.cn.debian.org/debian-security stretch/updates main2. 更新包(如果這一步報(bào)錯(cuò),嘗試執(zhí)行第三步,如果第三步也報(bào)錯(cuò),文章最下面看)
#默認(rèn)一直回車即可 該輸入yes的時(shí)候輸入y 然后回車即可 sudo apt update執(zhí)行下方命令(如果第二步失敗,執(zhí)行下方命令,重新第二步)
apt-get --fix-broken install sudo rm -fr /var/lib/apt/lists3.安裝git
sudo apt install git4.查看是否安裝成功
git --version如何sudo apt update 出錯(cuò) 可以參考一下下方的配置
[選擇版本寫入souce.list文件](https://mirrors.ustc.edu.cn/repogen/)安裝git的其他方法
[安裝git描述](https://www.digitalocean.com/community/tutorials/how-to-install-git-on-debian-10#setting-up-git)總結(jié)
以上是生活随笔為你收集整理的Debian 安装 git的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 万字干货:当了5次韭菜总结出来的抖音运营
- 下一篇: 不学编程都能看懂的@Transactio