Ubuntu apt-get不到最新版软件包解决方案
1.可能是系统版本太老的问题
解决办法换新系统
2.可能是apt源的问题
在/etc/apt目录下面有一个source.list文件,修改它,在后面加上下面几个源或者选择性加入
#官方源:
deb http://archive.ubuntu.com/ubuntu/ vivid main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ vivid-security main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ vivid-updates main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ vivid-proposed main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ vivid-backports main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ vivid main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ vivid-security main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ vivid-updates main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ vivid-proposed main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ vivid-backports main restricted universe multiverse #中国数学物理大学源 deb http://debian.ustc.edu.cn/ubuntu/ vivid main multiverse restricted universe deb http://debian.ustc.edu.cn/ubuntu/ vivid-backports main multiverse restricted universe deb http://debian.ustc.edu.cn/ubuntu/ vivid-proposed main multiverse restricted universe deb http://debian.ustc.edu.cn/ubuntu/ vivid-security main multiverse restricted universe deb http://debian.ustc.edu.cn/ubuntu/ vivid-updates main multiverse restricted universe deb-src http://debian.ustc.edu.cn/ubuntu/ vivid main multiverse restricted universe deb-src http://debian.ustc.edu.cn/ubuntu/ vivid-backports main multiverse restricted universe deb-src http://debian.ustc.edu.cn/ubuntu/ vivid-proposed main multiverse restricted universe deb-src http://debian.ustc.edu.cn/ubuntu/ vivid-security main multiverse restricted universe deb-src http://debian.ustc.edu.cn/ubuntu/ vivid-updates main multiverse restricted universe #阿里云的源: deb http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse
执行
sudo apt-get update
再安装试试
亲测有效。
作者:sarleon
链接:https://www.zhihu.com/question/41311332/answer/90517838
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。