大家好,欢迎来到IT知识分享网。
有时候CentOS默认的yum源不一定是国内镜像,导致yum在线安装及更新速度不是很理想。这时候需要将yum源设置为国内镜像站点。国内主要开源的开源镜像站点应该是网易和阿里云了。
一、centos系统
修改CentOS默认yum源为mirrors.163.com
1、首先备份系统自带yum源配置文件/etc/yum.repos.d/CentOS-Base.repo
[root@localhost ~]# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2、进入yum源配置文件所在的文件夹
[root@localhost ~]# cd /etc/yum.repos.d/
3、下载163的yum源配置文件到上面那个文件夹内
CentOS7
[root@localhost yum.repos.d]# wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
4、运行yum makecache生成缓存
[root@localhost yum.repos.d]# yum makecache
5、这时候再更新系统就会看到以下mirrors.163.com信息
[root@localhost yum.repos.d]# yum -y update 已加载插件:fastestmirror, refresh-packagekit, security 设置更新进程Loading mirror speeds from cached hostfile * base: mirrors.163.com * extras: mirrors.163.com * updates: mirrors.163.com
二、kali(ubuntu)系统
步骤如下:
vim /etc/apt/sources.list 删除原来的内容 10 dd 拷贝下面内容 #163网易 Kali源 deb http://mirrors.163.com/debian wheezy main non-free contrib deb-src http://mirrors.163.com/debian wheezy main non-free contrib deb http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib deb-src http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib deb-src http://mirrors.163.com/debian-security wheezy/updates main non-free contrib deb http://mirrors.163.com/debian-security wheezy/updates main non-free contrib
下面执行更新操作
执行 apt-get update 命令即可更新源 执行 apt-get upgrade 更新软件 然后安装下载更新,使用如下命令 apt-get dist-upgrade #linux内核更新 apt-get install linux-headers-$(uname -r)
修改kali 字体重叠
apt-get install ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy
全局最大化 —- 安装vmware-tools
三、麒麟 桌面 V10(龙芯)apt-get 源
添加apt-get 源证书
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F49EC40DDCE76770
更换 麒麟 桌面 V10(龙芯)apt-get 源
deb http://archive.kylinos.cn/kylin/KYLIN-ALL 10.1 main restricted universe multiverse deb http://archive.kylinos.cn/kylin/KYLIN-ALL 10.1-2203-updates main restricted universe multiverse deb http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default all
在系统的/etc/apt/sources.list文件中,根据不同版本填入以下内容
#4.0.2桌面版本: deb http://archive.kylinos.cn/kylin/KYLIN-ALL 4.0.2-desktop main restricted universe multiverse #4.0.2-sp1桌面版本: deb http://archive.kylinos.cn/kylin/KYLIN-ALL 4.0.2sp1-desktop main restricted universe multiverse #4.0.2-sp2桌面版本: deb http://archive.kylinos.cn/kylin/KYLIN-ALL 4.0.2sp2-desktop main restricted universe multiverse #4.0.2服务器版本: deb http://archive.kylinos.cn/kylin/KYLIN-ALL 4.0.2-server main restricted universe multiverse #4.0.2-sp1服务器版本: deb http://archive.kylinos.cn/kylin/KYLIN-ALL 4.0.2sp1-server main restricted universe multiverse #4.0.2-sp2服务器版本: deb http://archive.kylinos.cn/kylin/KYLIN-ALL 4.0.2sp2-server main restricted universe multiverse #4.0.2-sp2 FT2000+服务器版本: deb http://archive.kylinos.cn/kylin/KYLIN-ALL 4.0.2sp2-server-ft2000 main restricted universe multiverse #4.0.2-sp3版本: deb http://archive.kylinos.cn/kylin/KYLIN-ALL 4.0.2sp3 main restricted universe multiverse #4.0.2-sp4版本: deb http://archive.kylinos.cn/kylin/KYLIN-ALL 4.0.2sp4 main restricted universe multiverse #V10版本: deb http://archive.kylinos.cn/kylin/KYLIN-ALL 10.0 main restricted universe multiverse #V10.1版本: deb http://archive.kylinos.cn/kylin/KYLIN-ALL 10.1 main restricted universe multiverse 也可以去里面找 http://archive.kylinos.cn/kylin/KYLIN-ALL/ COPY
免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文来自网络,若有侵权,请联系删除,如若转载,请注明出处:https://haidsoft.com/145321.html