直接来清华官方这里取(随时更新)
直接来阿里云找你想要(随时更新)
最近虚拟技上安装软件都是local错误之类,采用apt-get update 更新都是404,apt-get update Sources 404 Not Found [IP:xx.xx]
之类
搜索了下可能是源的问题
先看下版本
cat /etc/issue
Ubuntu 14.10 \n \l
备份下cp /etc/apt/sources.list /etc/apt/sources.list-bak
添加新的源头到sources.list
文件sudo vim /etc/apt/sources.list
deb http://ftp.cuhk.edu.hk/pub/Linux/ubuntu trusty main restricted universe multiverse
deb http://ftp.cuhk.edu.hk/pub/Linux/ubuntu trusty-security main restricted universe multiverse
deb http://ftp.cuhk.edu.hk/pub/Linux/ubuntu trusty-updates main restricted universe multiverse
deb http://ftp.cuhk.edu.hk/pub/Linux/ubuntu trusty-backports main restricted universe multiverse
deb http://ftp.cuhk.edu.hk/pub/Linux/ubuntu trusty-proposed main restricted universe multiverse
deb-src http://ftp.cuhk.edu.hk/pub/Linux/ubuntu trusty main restricted universe multiverse
deb-src http://ftp.cuhk.edu.hk/pub/Linux/ubuntu trusty-security main restricted universe multiverse
deb-src http://ftp.cuhk.edu.hk/pub/Linux/ubuntu trusty-updates main restricted universe multiverse
deb-src http://ftp.cuhk.edu.hk/pub/Linux/ubuntu trusty-backports main restricted universe multiverse
deb-src http://ftp.cuhk.edu.hk/pub/Linux/ubuntu trusty-proposed main restricted universe
sudo apt-update
完毕!
经本人测试,上面用的是香港中文大学的,用了163和aliyun的还是404.
14.10更新源
分割线
Welcome to Ubuntu 14.10 (GNU/Linux 3.16.0-23-generic x86_64)
Your Ubuntu release is not supported anymore.
For upgrade information, please visit:
http://www.ubuntu.com/releaseendoflife
New release '15.04' available.
Run 'do-release-upgrade' to upgrade to it.
看吧,14.10是非长期支持版本了,我们需要
do-release-upgrade
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。