树莓派sudo apt-get update失败 出现Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease Hit:2解决办法

Posted mygod2093725_wht

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了树莓派sudo apt-get update失败 出现Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease Hit:2解决办法相关的知识,希望对你有一定的参考价值。

 

sudo vi /etc/apt/sources.list

删除sources.list所有内容

把下面的粘贴进去

deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main non-free contrib
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main non-free contrib

 

sudo vi /etc/apt/sources.list.d/raspi.list

删除sources.list所有内容

把下面的粘贴进去

deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui

 

问题解决。

镜像:https://mirrors.tuna.tsinghua.edu.cn/help/raspbian/

以上是关于树莓派sudo apt-get update失败 出现Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease Hit:2解决办法的主要内容,如果未能解决你的问题,请参考以下文章