admin avatar

Debian 10 更换163源并安装Java 8和maven记录

🕒 by admin





新安装的Debian 10,需要对安装源镜像地址进行修改

因为在国内,个人使用感觉163的源最快,最稳定。。。

备份系统的安装源地址,方便有需要时候恢复使用

mv /etc/apt/sources.list /etc/apt/sources.list_back_20200401

创建新的163源地址

vi /etc/apt/sources.list

添加下面地址

1
2
3
4
5
6
7
8
deb http://mirrors.163.com/debian/ stretch main non-free contrib
    deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib
    deb http://mirrors.163.com/debian/ stretch-backports main non-free contrib
    deb-src http://mirrors.163.com/debian/ stretch main non-free contrib
    deb-src http://mirrors.163.com/debian/ stretch-updates main non-free contrib
    deb-src http://mirrors.163.com/debian/ stretch-backports main non-free contrib
    deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
    deb-src http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib

apt-get update && apt-get upgrade

更新系统镜像。。。

安装Java和maven

1
2
3
4
apt-get install openjdk-8-jdk
apt-get install maven
mvn -version //查看maven版本
java -v  //查看Java的版本





💘 相关文章

写一条评论

Based on Golang + fastHTTP + sdb | go1.18.3 Processed in 1ms