如同这个问题,我的机器不行apt-get update
。
我已经尝试了一切可以谷歌:添加坏键,删除我的/var/lists/thingy
,apt-get clean
删除Chrome。
但我不断收到以下错误。还有更多的核选择吗?比如删除更新管理器并重新下载之类的?
Ign http://archive.ubuntu.com trusty/universe Translation-en_ZA
Fetched 23,8 MB in 1min 41s (234 kB/s)
W: GPG error: http://packages.linuxmint.com rosa Release: The following signatures were invalid: BADSIG 3EE67F3D0FF405B2 Clement Lefebvre (Linux Mint Package Repository v1) <[email protected]>
W: GPG error: http://archive.ubuntu.com trusty Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <[email protected]>
W: Failed to fetch http://extra.linuxmint.com/dists/rosa/main/binary-i386/Packages Hash Sum mismatch
更新:
我试过这个:
- 删除谷歌浏览器
- 添加键:
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3EE67F3D0FF405B2
-
sudo rm -r /var/lib/apt/lists
sudo mkdir -p /var/lib/apt/lists/partial
sudo apt-get clean
sudo apt-get update
- 和一切在这里
更新2
apt-key 列表
pub 1024D/437D05B5 2004-09-12 uid Ubuntu Archive 自动签名密钥 sub 2048g/79164387 2004-09-12
pub 1024D/FBB75451 2004-12-30 uid Ubuntu CD 映像自动签名密钥
pub 4096R/C0B21F32 2012-05-11 uid Ubuntu 存档自动签名密钥 (2012)
pub 4096R/EFE21092 2012-05-11 uid Ubuntu CD 映像自动签名密钥 (2012)
pub 1024D/0FF405B2 2009-04-29 uid Clement Lefebvre(Linux Mint 软件包存储库 v1)sub 2048g/0F346519 2009-04-29
pub 1024D/3E5C1192 2010-09-20 uid Ubuntu Extras Archive 自动签名密钥
pub 4096R/46D7E7CF 2009-05-15 uid GetDeb 存档自动签名密钥
pub 4096R/2C52609D 2015-07-14 uid Docker 发布工具(releasedocker)
pub 1024R/28949509 2010-08-22 uid 启动板 Gwendal Le Bihan
pub 1024D/7FAC5991 2007-03-08 uid Google, Inc. Linux 软件包签名密钥 sub 2048g/C07CB649 2007-03-08
pub 4096R/D38B4796 2016-04-12 uid Google Inc.(Linux 软件包签名机构) sub 4096R/640DB551 2016-04-12 [过期:2019-04-1
apt 缓存策略
软件包文件:100 /var/lib/dpkg/status release a=now 固定软件包:
答案1
没有更多信息,我只能建议:
尝试安装同一操作系统版本的另一个副本,对其进行更新(apt-get update、upgrade 和 dist-upgrade),然后将其可疑的相关部分复制到损坏的计算机上(当然是在进行备份之后)。例如,复制 /etc/apt/ 和 /var/lib/apt/ 并查看 apt-get update 是否可以工作。
答案2
针对 GPG 错误运行此命令:
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3EE67F3D0FF405B2 40976EAF437D05B5
。然后,对于哈希总和不匹配,请尝试运行以下命令:sudo rm -rf /var/lib/apt/lists/*
和sudo apt-get update