![sudo apt-get 失败](https://linux22.com/image/1041478/sudo%20apt-get%20%E5%A4%B1%E8%B4%A5.png)
我尝试了一下sudo apt-get update
但出现了以下错误:
W: Conflicting distribution: http://us.archive.ubuntu.com precise-updates Release (expected precise-updates but got precise)
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_precise-updates_main_source_Sources Hash Sum mismatch
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/restricted/source/Sources 404 Not Found [IP: 91.189.91.15 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/universe/source/Sources 404 Not Found [IP: 91.189.91.15 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/multiverse/source/Sources 404 Not Found [IP: 91.189.91.15 80]
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_precise-updates_main_binary-i386_Packages Hash Sum mismatch
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/precise-updates/restricted/binary-i386/Packages 404 Not Found [IP: 91.189.91.15 80]
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_precise-updates_universe_binary-i386_Packages Hash Sum mismatch
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_precise-updates_multiverse_binary-i386_Packages Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
知道如何修复这个问题吗?
答案1
如果您使用的是 Virtual PC,则转到Tools/Settings
左侧,您将看到两列setting and current Value
。转到Networking
设置。在右侧,您现在可以选择适配器。打开下拉菜单并选择您的适配器。应该是您的以太网端口的名称,例如 Broadcom Gigabit Ethernt 等。之后您应该能够获得更新。
希望这可以帮助 :)