您的位置:首页 > 其它

使用ubuntu16.04中的注意点

2016-09-01 00:00 183 查看
本来使用ubuntu14.04,换了ubuntu16.04后发现许多不同,都是比较琐碎的点

1. 安装了git ,也初始化,ssh 的publickey也配好了,此时从公司服务器上拉代码按照14.04上没问题,

但是在16.04报了个错

Unable to negotiate with 10.120.10.20 port 29418: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

fatal: Could not read from remote repository.

#解决方法 :修改~/.ssh/config 加入

Host *

KexAlgorithms +diffie-hellman-group1-sha1

2.因为要编译android源码

#Ubuntu16.04的安装源已经默认没有openjdk7了,所以要自己手动添加仓库,如下:


sudo
add-apt-repository ppa:openjdk-r
/ppa
#详细用法见:http://baike.baidu.com/item/add-apt-repository


sudo
apt-getupdate


sudo
apt-get
install
openjdk-7-jdk
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: