Ubuntu更新錯誤修復

合併列表問題
當你在終端中運行更新命令時,你可能會碰到這個錯誤“合併列表錯誤”,就像下面這樣:

E:Encountered a section with no Package: header,

E:Problem with MergeList /var/lib/apt/lists/archive.ubuntu.comubuntudistspreciseuniversebinary-i386Packages,

E:The package lists or status file could not be parsed or opened.’

可以使用以下命令來修復該錯誤:

sudo rm -r /var/lib/apt/lists/*
sudo apt-get clean && sudo apt-get update

下載倉庫信息失敗 -1
實際上,有兩種類型的下載倉庫信息失敗錯誤。如果你的錯誤是這樣的:

W:Failed to fetch bzip2:/var/lib/apt/lists/partial/in.archive.ubuntu.comubuntudistsoneiricrestrictedbinary-i386Packages Hash Sum mismatch,

W:Failed to fetch bzip2:/var/lib/apt/lists/partial/in.archive.ubuntu.comubuntudistsoneiricmultiversebinary-i386Packages Hash Sum mismatch,

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

那麼,你可以用以下命令修復:

sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章