0%

树莓派更换apt-get update && apt-get upgrade源,解决更新慢的问题

起因:树莓派执行sudo apt-get update下载慢,中断

步骤

  1. 备份sources.list文件
    1
    sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
  2. 编辑sources.list 文件
    1
    sudo nano /etc/apt/source.list
  3. 使用#注释原来的内容,并添加以下内容
    1
    2
    deb http://mirrors.aliyun.com/raspbian/raspbian/ wheezy main non-free contrib
    deb-src http://mirrors.aliyun.com/raspbian/raspbian/ wheezy main non-free contrib
  4. 更新系统软件并更新已安装的包
    1
    sudo apt-get update && apt-get upgrade -y