今天重装ubuntu9.10.可能是版本比较旧的原因,apt-get install 失败,于是想到更新源,但是从网上找的的源大多不能用,不是太旧就是太新,总是出错。于是耐心研究,终于找的可用的源。编辑sudo gedit /etc/apt/sources.list
网上找到一个网易的源
deb http://mirrors.163.com/ubuntu/ raring main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ raring main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ raring-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ raring-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ raring-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ raring-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ raring-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ raring-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ raring-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ raring-updates universe main multiverse restricted
但是在9.10上不能使用,我们打开http://mirrors.163.com/ubuntu,不难发现其中有很多版本,其中raing算是比较新的,所以我改成precise,如下:
deb http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ precise-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ precise-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ precise-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ precise-updates universe main multiverse restricted
然后sudo apt-get update 即可更新,下载。
本文介绍了如何解决Ubuntu 9.10系统中使用apt-get安装软件时遇到的问题,通过修改源文件并更换为网易源,成功解决了版本不匹配导致的错误。最终使用precise版本的源进行更新和下载,确保了系统的正常运行。
1599

被折叠的 条评论
为什么被折叠?



