ubuntu17.04之apt-get源
生活随笔
收集整理的這篇文章主要介紹了
ubuntu17.04之apt-get源
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
不要問我這么簡單的也要寫,我只想說在網上百度了一堆源,在筆者這里只有一個能用,悲傷的表情,還是記錄一下吧
這個是清華的apt-get源,適用于ubuntu17.04
apt-get源文件目錄 /etc/apt/sources.list ,記得先備份,如果不成功還可以改回來
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial universe deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates universe deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial multiverse deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates multiverse deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security universe deb修改完成之后,執行
apt-get clean????????????????? ? #將 /var/cache/apt/archives/ 的 所有 deb 刪掉,可以理解為 rm /var/cache/apt/archives/*.deb
apt-get update????????????? ? #更新軟件源中的所有軟件列表
總結
以上是生活随笔為你收集整理的ubuntu17.04之apt-get源的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: VMware下载(官网)
- 下一篇: 面试之 Redis汇总