利用apt-get 进行jdk安装;vim安装

apt-get update

apt-get install -y vim

==========下面是修改成国内镜像源再安装

root@1b4671904bfa:/#  mv /etc/apt/sources.list /etc/apt/sources.list.bak
root@1b4671904bfa:/#  echo "deb http://mirrors.163.com/debian/ jessie main non-free contrib" >/etc/apt/sources.list
root@1b4671904bfa:/#  echo "deb http://mirrors.163.com/debian/ jessie-proposed-updates main non-free contrib" >>/etc/apt/sources.list
root@1b4671904bfa:/#  echo "deb-src http://mirrors.163.com/debian/ jessie main non-free contrib" >>/etc/apt/sources.list
root@1b4671904bfa:/#  echo "deb-src http://mirrors.163.com/debian/ jessie-proposed-updates main non-free contrib" >>/etc/apt/sources.list

上面已经需改了镜像源,现在开始安装:
apt-get update
apt-get install -y vim

 

===================

搜索相关安装包:

apt-get update

apt-cache search jdk

安装:

apt-get install openjdk-8-jdk

posted on 2017-09-16 12:42  我和你并没有不同  阅读(1168)  评论(0编辑  收藏  举报