ubuntu 16.04 apt-get update 報錯解決


一:Some index files failed to download, they have been ignored, or old ones used instead.

更換國內源,修改/etc/apt/sources.list 文件的源地址

可刪除掉sources.list 文件內容或備份

1.1 cp sources.list sources.list.bak

1.2 粘貼以下內容

阿里源
deb http://mirrors.aliyun.com/debian wheezy main contrib non-free
deb-src http://mirrors.aliyun.com/debian wheezy main contrib non-free
deb http://mirrors.aliyun.com/debian wheezy-updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian wheezy-updates main contrib non-free
deb http://mirrors.aliyun.com/debian-security wheezy/updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian-security wheezy/updates main contrib non-free

1.3 執行 apt-get update 完成源切換

二:E: Sub-process /usr/bin/dpkg returned an error code (1)

2.1 mv /var/lib/dpkg/info /var/lib/dpkg/info.bak
2.2 mkdir /var/lib/dpkg/info
2.3 apt-get update


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM