方法1 修改/etc/apt/sources.list文件
sudo vim /etc/apt/sources.list
然后添加如下代码
deb http://ftp.neowiz.com/raspbian/raspbian wheezy main contrib non-free rpi
deb-src http://ftp.neowiz.com/raspbian/raspbian wheezy main contrib non-free rpi
使修改生效,执行如下命令
sudo apt-get update
方法2 在/etc/apt/sources.list.d/中增加一个新的.list文件指定源,使新配置生效sudo apt-get update
Raspbian源列表
http://www.raspbian.org/RaspbianMirrors
官方源:
deb http://archive.raspbian.org/raspbian wheezy main contrib non-free rpi
deb-src http://archive.raspbian.org/raspbian wheezy main contrib non-free rpi
目前最快的Raspbian源:
http://ftp.neowiz.com/raspbian/raspbian/
deb http://ftp.neowiz.com/raspbian/raspbian wheezy main contrib non-free rpi
deb-src http://ftp.neowiz.com/raspbian/raspbian wheezy main contrib non-free rpi
出现gcc-4.7依赖库错误的解决办法
错误如下:
E: Internal Error, No file name for gcc-4.7-base
解决办法:
# apt-get download libstdc++6 libgcc1 gcc-4.7-base
# dpkg -i *.deb
# apt-get -f install (这一步完成后,可解决依赖关系错误的问题,下一步开始正常升级)
# apt-get dist-upgrade