服务器

给你的Debian上Dotdeb更新源,用上新版东西

最近使用Debian配置LAMNP环境时发现,使用apt-get install安装的东西版本都比较旧的,例如PHP能下载的最新版是5.3.10,我自己尝试着去debian源的网站看了下,发现nginx,apache,php,mysql都有新版的。于是用apt-cache 看了下,发现版本里面就只有5.3.10……

无奈之下,问了下“月姐”,最终使用dotdeb的源解决了问题……

方法很简单,root权限执行以下命令:

echo "deb http://packages.dotdeb.org squeeze all" >> /etc/apt/sources.list
echo "deb-src http://packages.dotdeb.org squeeze all" >> /etc/apt/sources.list
wget http://www.dotdeb.org/dotdeb.gpg
apt-key add dotdeb.gpg

看到OK两个字,你就成功了,Upgrade吧:

apt-get -y update;apt-get -y upgrade

另外,用国内的VPS的请注意,把packages.dotdeb.org换成其他服务器,个人推荐日本的吧,离我们最近了:

echo "deb http://download.softagency.net/debian/dotdeb/ stable all" >> /etc/apt/sources.list
echo "deb-src http://download.softagency.net/debian/dotdeb/ stable all" >> /etc/apt/sources.list
wget http://www.dotdeb.org/dotdeb.gpg
apt-key add dotdeb.gpg

至于为什么要换,我不多说,自己打开dotdeb.org就知道……

当然,还有其他的服务器,自己挑:

  • Austria
deb http://dotdeb.gosi.at/ stable all
deb-src http://dotdeb.gosi.at/ stable all
  • Belgium
deb http://dotdeb.debian.skynet.be/ stable all
deb-src http://dotdeb.debian.skynet.be/ stable all
  • Bulgaria
deb http://dotdeb.ipacct.com/packages/ stable all
deb-src http://dotdeb.ipacct.com/packages/ stable all
  • Czech republic
deb http://debian-dotdeb.mirror.web4u.cz/ stable all
deb-src http://debian-dotdeb.mirror.web4u.cz/ stable all
  • Estonia
deb http://servingzone.com/mirrors/dotdeb/ stable all
deb-src http://servingzone.com/mirrors/dotdeb/ stable all
  • France
deb http://packages.dotdeb.org stable all
deb-src http://packages.dotdeb.org stable all
  • Germany
deb http://ftp.hosteurope.de/mirror/packages.dotdeb.org/ stable all
deb-src http://ftp.hosteurope.de/mirror/packages.dotdeb.org/ stable all
deb http://dotdeb.netmirror.org/ stable all
deb-src http://dotdeb.netmirror.org/ stable all
deb http://mirror.de.leaseweb.net/dotdeb/ stable all
deb-src http://mirror.de.leaseweb.net/dotdeb/ stable all
  • Japan
deb http://download.softagency.net/debian/dotdeb/ stable all
deb-src http://download.softagency.net/debian/dotdeb/ stable all
  • Netherlands
deb http://mirror.nl.leaseweb.net/dotdeb/ stable all
deb-src http://mirror.nl.leaseweb.net/dotdeb/ stable all
  • New Caledonia
deb http://debian.nautile.nc/dotdeb/ stable all
deb-src http://debian.nautile.nc/dotdeb/ stable all
  • Poland
deb http://dotdeb.0xdb.pl stable all
deb-src http://dotdeb.0xdb.pl stable all
  • Portugal
deb http://mirrors.fe.up.pt/dotdeb/ stable all
deb-src http://mirrors.fe.up.pt/dotdeb/ stable all
  • Romania
deb ftp://download.srv.ro/pub/dotdeb/ stable all
deb-src ftp://download.srv.ro/pub/dotdeb/ stable all
  • Slovakia
deb http://mirrors.mojhosting.sk/dotdeb/ stable all
deb-src http://mirrors.mojhosting.sk/dotdeb/ stable all
  • Sweden
deb http://dotdeb.dm3.se/ stable all
deb-src http://dotdeb.dm3.se/ stable all
deb http://dotdeb.jine.se/ stable all
deb-src http://dotdeb.jine.se/ stable all
  • United Kingdom
deb http://mirror.stshosting.co.uk/dotdeb/ stable all
deb-src http://mirror.stshosting.co.uk/dotdeb/ stable all

101 Posts

自信、努力、活出精彩;以前未所见的颜色,绘大千世界!
View all posts

3 thoughts on “给你的Debian上Dotdeb更新源,用上新版东西”

Leave a reply

Your email address will not be published. Required fields are marked *