@geekpi
This commit is contained in:
Xingyu Wang 2019-08-21 22:20:40 +08:00
parent 66356a687c
commit 6addcc6404

View File

@ -1,6 +1,6 @@
[#]: collector: (lujun9972) [#]: collector: (lujun9972)
[#]: translator: (geekpi) [#]: translator: (geekpi)
[#]: reviewer: ( ) [#]: reviewer: (wxy)
[#]: publisher: ( ) [#]: publisher: ( )
[#]: url: ( ) [#]: url: ( )
[#]: subject: (Fix E: The package cache file is corrupted, it has the wrong hash Error In Ubuntu) [#]: subject: (Fix E: The package cache file is corrupted, it has the wrong hash Error In Ubuntu)
@ -35,13 +35,13 @@ E: The package cache file is corrupted, it has the wrong hash
![][2] ![][2]
Ubuntu 中的 “The package cache file is corrupted, it has the wrong hash” 错误 *Ubuntu 中的 “The package cache file is corrupted, it has the wrong hash” 错误*
经过一番谷歌搜索,我找到了解决此错误的方法。 经过一番谷歌搜索,我找到了解决此错误的方法。
如果你遇到过这个错误,不要惊慌。只需运行下面的命令修复。 如果你遇到过这个错误,不要惊慌。只需运行下面的命令修复。
在运行命令之前,**请再次确认你在最后加入了 “\*”**。在命令最后加上 ***** 很重要。如果你没有添加,它会删除 **/var/lib/apt/lists/** 目录,而且无法恢复。我提醒过你了! 在运行命令之前,**请再次确认你在最后加入了 `*`**。在命令最后加上 `*` 很重要。如果你没有添加,它会删除 `/var/lib/apt/lists/`*目录,而且无法恢复。我提醒过你了!
``` ```
$ sudo rm -rf /var/lib/apt/lists/* $ sudo rm -rf /var/lib/apt/lists/*
@ -64,7 +64,7 @@ via: https://www.ostechnix.com/fix-e-the-package-cache-file-is-corrupted-it-has-
作者:[sk][a] 作者:[sk][a]
选题:[lujun9972][b] 选题:[lujun9972][b]
译者:[geekpi](https://github.com/geekpi) 译者:[geekpi](https://github.com/geekpi)
校对:[校对者ID](https://github.com/校对者ID) 校对:[wxy](https://github.com/wxy)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出