Git for Ubuntu 14.01
来源:互联网 发布:手机安全软件排名 编辑:程序博客网 时间:2024/05/19 02:01
在Ubuntu上安装git,网上查到的命令是sudo apt-get install git
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
git : Depends: liberror-perl but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
git version 2.8.1
但是我的机子不行,信息如下:
Reading package lists... DoneBuilding dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
git : Depends: liberror-perl but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
看信息像是依赖的包没有安装。于是输入命令:sudo apt-get install liberror-perl
还是不行.
经过一番调查,解决方法:
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install xdg-utils:i386
sudo apt-get install git
安装完成后,检查是否安装成功
shenfl@shenfl-OptiPlex-9020:~$ git --versiongit version 2.8.1
显示 git version 2.8.1,表明安装成功。
这个方法不仅安装了git,而且是最新版本。
Attention: 在这之前做了一个操作, sudo gedit /etc/apt/sources.list 插入
deb http:ftp.jp.debian.org/debian sid main
deb http://dl.google.com/linux/deb/ stable non-free main 0 0
- Git for Ubuntu 14.01
- git for ubuntu ----non-fast forward 解决办法
- 配置p4merge for git on ubuntu
- Git for Ubuntu 12.04.4 LTS
- git for
- ubuntu git
- ubuntu git
- 【git】ubuntu安装git
- Ubuntu For Ubuntu
- 【Git】Ubuntu升级Git版本
- Git for Windows
- git for windows
- git for designers
- git for windows
- Maven release for Git
- Git For Mac
- git command for use
- Git flow for windows
- 应用时间序列分析(王燕)学习笔记3
- linux 下文件及目录函数
- androidstudio快捷键
- c语言中的指针和数组
- 欢迎使用CSDN-markdown编辑器
- Git for Ubuntu 14.01
- POJ-----1971Parallelogram Counting数学题
- CodeForces 686B Little Robber Girl's Zoo(模拟冒泡排序)
- emmc 分区管理
- linux cpu 内存 硬盘 系统性能调试相关命令
- 两个时间相减
- HDU 5306 Gorgeous Sequence(线段树)
- 深入理解 Spring 事务原理
- Eclipse智能提示及快捷键