ubuntu換源出現問題

在ubuntu換源時候會出現丟失一些包的問題。把解決方法記錄下,方便下次查閱ubuntu

1,刪除緩存文件:緩存

sudo rm -fR /var/lib/apt/lists/*spa

2,用阿里的源rest

deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverseorm

deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverseget

deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverseit

deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiversesed

deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiversedate

deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverserust

deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

3,更新

sudo apt-get update

相關文章
相關標籤/搜索