安装Firefox时出错

我使用的是Ubuntu 16.04.3 LTS。 安装Firefox时,会显示以下错误:

The following NEW packages will be installed: Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: firefox 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 44.5 MB of archives. After this operation, 176 MB of additional disk space will be used. Get:1 http://security.ubuntu.com/ubuntu xenial-security/main amd64 firefox amd64 58.0.2+build1-0ubuntu0.16.04.1 [44.5 MB] Err:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 firefox amd64 58.0.2+build1-0ubuntu0.16.04.1 Hash Sum mismatch Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 firefox amd64 58.0.2+build1-0ubuntu0.16.04.1 [44.5 MB] Err:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 firefox amd64 58.0.2+build1-0ubuntu0.16.04.1 Hash Sum mismatch Fetched 88.9 MB in 2min 23s (621 kB/s) E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/f/firefox/firefox_58.0.2+build1-0ubuntu0.16.04.1_amd64.deb Hash Sum mismatch E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? 

我该如何解决“Hash Sum mismatch”?

尝试删除/var/lib/apt/lists目录的所有内容,可以使用以下命令:

 sudo rm -rf /var/lib/apt/lists/* 

然后执行以下命令:

 sudo apt update 

最后,尝试再次安装firefox

 sudo apt install firefox 

如果这不起作用,您可以尝试:

设置→软件和更新→Ubuntu软件:从下载:将Local更改Main Server ,或任何其他靠近您的服务器。

希望能帮助到你。