美文网首页
添加软件源

添加软件源

作者: wildsre | 来源:发表于2016-11-21 08:47 被阅读0次

ubuntu 16.0.4.1

  • apt-get
    filepath: /etc/apt/source.list
    先备份后,将source.list中的内容删除,添加镜像:网易镜像( 会出现一部分hash值不匹配,未解决,但是不影响软件安装)
    添加内核:在添加源的时候需要看内核的名称:使用lsb_release -a 再根据内核名称添加源。下面的内核名为wily而我电脑的内核名为xenial因此会出现hash不匹配
deb http://mirrors.163.com/ubuntu/ wily main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ wily-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ wily-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ wily-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ wily-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ wily-backports main restricted universe multiverse
  • python pip source
    filepath=~/.pip/pip.config
    添加豆瓣镜像
[global]
index-url = http://pypi.douban.com/simple

相关文章

网友评论

      本文标题:添加软件源

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