apt-get update 失败

If you are using Chrome on Linux you may get a error saying “Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release Unable to find expected entry ‘main/binary-i386/Packages’ in Release file (Wrong sources.list entry or malformed file) Some index files failed to download. They have been ignored, or old ones used instead.” This is because 32-Bit Chrome builds has been discontinued.
If you are on Linux x64 enter this into the command line: sudo gedit /etc/apt/sources.list.d/google-chrome.list place [arch=amd64] after deb and before http so the line now looks like this: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
If you are on Linux x32 you will need to uninstall chrome due to no more security updates will be offered. Your distribution may offer chromium-browser. Chromium will be updated by your linux distribution not by Google.

转自:
https://www.reddit.com/r/chrome/comments/48oje6/linux_how_to_fix_failed_to_fetch/

APT是Ubuntu系统中用于包管理的工具,apt-get update命令用于更新软件源列表。如果在执行apt-get update时出现错误,可能是由于软件源链接失效或证书验证失败导致的。 根据引用,即使在更改并保存了软件源后,执行apt-get update仍然会报错,这是因为原来的软件源链接仍然存在且无法使用。但是系统会自动选择可用的软件源链接进行更新,比如阿里云链接,最终可以成功更新。 根据引用,当出现"Certificate verification failed"错误时,表示证书验证失败。这可能是由于软件源的证书不受信任导致的。解决这个问题的方法是手动安装软件源的证书或更新证书验证。 根据引用,提供了一个使用阿里云的Ubuntu 20.04软件源的配置示例。你可以将这些配置添加到你的软件源列表中,然后再次执行apt-get update命令。 综上所述,如果apt-get update失败,你可以尝试更换可用的软件源链接、更新证书验证或添加可信任的软件源配置。希望这些解决方案能够帮助你解决问题。123 #### 引用[.reference_title] - *1* *3* [sudo apt-get update 失败 的解决](https://blog.youkuaiyun.com/LIWEI940638093/article/details/130250047)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item] - *2* [Ubuntu系统 apt-get update失败,出现“Certificate verification failed ”错误以及“无法安全地用该源...](https://blog.youkuaiyun.com/luolaihua2018/article/details/122378383)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值