编辑 /etc/apt/sources.list
deb http://mirrors.aliyun.com/debian/ wheezy main non-free contrib
deb http://mirrors.aliyun.com/debian/ wheezy-proposed-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ wheezy main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ wheezy-proposed-updates main non-free contrib
apt upgrade 和 dist-upgrade的差别:
对于个人和服务器上的操作一般情况使用: apt upgrade 稳定可靠升级就可以满足我们的需求了
最后,需要注意的一点是,每回更新之前,我们需要先运行 update,然后才能运行 upgrade 和 dist-upgrade,因为相当于 update 命令获取了包的一些信息,比如大小和版本号,然后再来运行 upgrade 去下载包如果;没有获取包的信息,那么 upgrade 就是无效的啦!
apt 和 apt-get 区别:
注: apt install 和 apt-get install 功能一样,都是安装软件包,没有区别
原文:https://www.cnblogs.com/itwangqiang/p/15018729.html