美文网首页
Linux使用国内源

Linux使用国内源

作者: KayFelicities | 来源:发表于2019-06-07 10:17 被阅读0次

常用源

ubuntu

aliyun

# /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ xenial main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main

deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main

deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates universe

deb http://mirrors.aliyun.com/ubuntu/ xenial-security main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security universe

tsinghua

# /etc/apt/sources.list
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse

kali linux

# /etc/apt/sources.list
#清华大学 [更新源]
deb http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free 
deb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free 

#浙江大学[更新源]
deb http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free 
deb-src http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free 

raspbian buster(stretch可以直接把buster换成stretch)

# /etc/apt/sources.list
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main non-free contrib
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main non-free contrib
# /etc/apt/sources.list.d/raspi.list
deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui

更新软件

ubuntu

  • 刷新源:sudo apt update
  • 更新软件:sudo apt upgrade
  • 尝试修复:sudo apt -f install

参考

https://blog.csdn.net/qq_35451572/article/details/79516563

相关文章

  • Linux使用国内源

    常用源 ubuntu aliyun tsinghua kali linux raspbian buster(str...

  • Pip换源

    Linux Windows 国内源

  • 2018-11-05

    Ubuntu 18.10更换为国内源 个人分类: Linux 安装Ubuntu 18.10后,使用国外源太慢了,修...

  • pip更换国内源

    Python pip更换国内源 国内源 常用的国内源 linux更换操作 创建这个文件并输入以下内容~/.pip/...

  • apt更改为国内源

    由于linux默认apt源为国外源,网速太慢,所以不建议使用默认apt源,建议使用过内源。 备份原文件:sudo ...

  • ubuntu16.04开始使用

    第一步: 修改yum源,由于众所周知的原因,使用Linux安装软件如果不使用国内源,基本上在线安装软件没戏。 如何...

  • python使用国内源

    1、常用国内源 2、临时使用国内源 3、全局使用国内源 命令运行完成后,pip.conf中内容为: 4、pip c...

  • ubuntu 安装MySql,并使用Nodejs来测试

    安装MySql 如果速度慢,可以参考更换Linux 的国内源安装过程中会提示设置密码,安装完成之后,可以使用 my...

  • curl: (35) LibreSSL SSL_connect:

    MacOS系统使用 Homebrew 官方地址时,报错: 解决办法:使用国内源 该地址提供多个国内源地址,选择一个...

  • Linux 国内源安装

    CentOS 7 yum源 CentOS 6 yum源 Ubuntu 18 apt源 Ubuntu 16 apt源...

网友评论

      本文标题:Linux使用国内源

      本文链接:https://www.haomeiwen.com/subject/zdcmxctx.html