debian系统apt-get update失败的解决方法

  • 1
  • 11,097 views
  • A+
所属分类:Linux

有的VPS商家的Debian系统执行apt-get update会失败,因为源的设置有问题。编辑下源的地址就行了

编辑/etc/apt/sources.list,内容为

deb http://ftp.us.debian.org/debian/ wheezy main
deb-src http://ftp.us.debian.org/debian/ wheezy main
deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main
# wheezy-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ wheezy-updates main
deb-src http://ftp.us.debian.org/debian/ wheezy-updates main

运行
apt-get update
apt-get dist-upgrade
重新启动即可
如果报gpg错误 先运行
apt-get install debian-archive-keyring

weinxin
我的微信公众号
我的微信公众号扫一扫

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

目前评论:1   其中:访客  0   博主  0

    • 同盟源 同盟源 7

      Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

      话说我装了个ubuntu,好难用,努力适应中。。。。