较早版本的Ubuntu12.4、Ubuntu14.4等软件源比较老旧,无法正常通过apt-get的方式安装软件,这里提供一个可以使用的软件源。
一、先备份原来的软件源
root@openwrt:/# cp /etc/apt/sources.list /etc/apt/sources.list.back
二、编辑新的软件源配置文件
vi /etc/apt/sources.list
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ wily main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ wily main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ wily-updates main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ wily-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://cn.archive.ubuntu.com/ubuntu/ wily universe
deb-src http://cn.archive.ubuntu.com/ubuntu/ wily universe
deb http://cn.archive.ubuntu.com/ubuntu/ wily-updates universe
deb-src http://cn.archive.ubuntu.com/ubuntu/ wily-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://cn.archive.ubuntu.com/ubuntu/ wily multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ wily multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ wily-updates multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ wily-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://cn.archive.ubuntu.com/ubuntu/ wily-backports main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ wily-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu wily-security main restricted
deb-src http://security.ubuntu.com/ubuntu wily-security main restricted
deb http://security.ubuntu.com/ubuntu wily-security universe
deb-src http://security.ubuntu.com/ubuntu wily-security universe
deb http://security.ubuntu.com/ubuntu wily-security multiverse
deb-src http://security.ubuntu.com/ubuntu wily-security multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu wily partner
# deb-src http://archive.canonical.com/ubuntu wily partner
三、更新操作
root@openwrt:/# apt-get update
获取:1 http://cn.archive.ubuntu.com wily Release.gpg [933 B]
获取:2 http://cn.archive.ubuntu.com wily-updates Release.gpg [933 B]
获取:3 http://cn.archive.ubuntu.com wily-backports Release.gpg [933 B]
获取:4 http://cn.archive.ubuntu.com wily Release [217 kB]
获取:5 http://cn.archive.ubuntu.com wily-updates Release [64.9 kB]
获取:6 http://cn.archive.ubuntu.com wily-backports Release [64.9 kB]
获取:7 http://cn.archive.ubuntu.com wily/main Sources [1,118 kB]
获取:8 http://security.ubuntu.com wily-security Release.gpg [933 B]
获取:9 http://security.ubuntu.com wily-security Release [64.9 kB]
获取:10 http://cn.archive.ubuntu.com wily/restricted Sources [7,181 B]
获取:11 http://cn.archive.ubuntu.com wily/universe Sources [7,238 kB]
获取:12 http://security.ubuntu.com wily-security/main Sources [45.5 kB]
获取:13 http://security.ubuntu.com wily-security/restricted Sources [2,854 B]
获取:14 http://security.ubuntu.com wily-security/universe Sources [11.7 kB]
获取:15 http://cn.archive.ubuntu.com wily/multiverse Sources [178 kB]
获取:16 http://cn.archive.ubuntu.com wily/main i386 Packages [1,416 kB]
获取:17 http://security.ubuntu.com wily-security/multiverse Sources [2,782 B]
获取:18 http://security.ubuntu.com wily-security/main i386 Packages [142 kB]
获取:19 http://cn.archive.ubuntu.com wily/restricted i386 Packages [16.0 kB]
获取:20 http://cn.archive.ubuntu.com wily/universe i386 Packages [6,701 kB]
获取:21 http://security.ubuntu.com wily-security/restricted i386 Packages [10.8 kB]
获取:22 http://security.ubuntu.com wily-security/universe i386 Packages [52.1 kB]
获取:23 http://security.ubuntu.com wily-security/multiverse i386 Packages [6,430 B]
获取:24 http://security.ubuntu.com wily-security/main Translation-en [70.3 kB]
获取:25 http://security.ubuntu.com wily-security/multiverse Translation-en [2,806 B]
获取:26 http://security.ubuntu.com wily-security/restricted Translation-en [2,666 B]
获取:27 http://security.ubuntu.com wily-security/universe Translation-en [33.7 kB]
获取:28 http://cn.archive.ubuntu.com wily/multiverse i386 Packages [139 kB]
获取:29 http://cn.archive.ubuntu.com wily/main Translation-zh_CN [83.3 kB]
获取:30 http://cn.archive.ubuntu.com wily/main Translation-en [839 kB]
获取:31 http://cn.archive.ubuntu.com wily/multiverse Translation-zh_CN [5,929 B]
获取:32 http://cn.archive.ubuntu.com wily/multiverse Translation-en [107 kB]
获取:33 http://cn.archive.ubuntu.com wily/restricted Translation-zh_CN [2,334 B]
获取:34 http://cn.archive.ubuntu.com wily/restricted Translation-en [4,296 B]
获取:35 http://cn.archive.ubuntu.com wily/universe Translation-zh_CN [173 kB]
获取:36 http://cn.archive.ubuntu.com wily/universe Translation-en [4,579 kB]
获取:37 http://cn.archive.ubuntu.com wily-updates/main Sources [75.2 kB]
获取:38 http://cn.archive.ubuntu.com wily-updates/restricted Sources [3,741 B]
获取:39 http://cn.archive.ubuntu.com wily-updates/universe Sources [23.9 kB]
获取:40 http://cn.archive.ubuntu.com wily-updates/multiverse Sources [3,203 B]
获取:41 http://cn.archive.ubuntu.com wily-updates/main i386 Packages [207 kB]
获取:42 http://cn.archive.ubuntu.com wily-updates/restricted i386 Packages [13.4 kB]
获取:43 http://cn.archive.ubuntu.com wily-updates/universe i386 Packages [92.6 kB]
获取:44 http://cn.archive.ubuntu.com wily-updates/multiverse i386 Packages [6,677 B]
获取:45 http://cn.archive.ubuntu.com wily-updates/main Translation-en [96.9 kB]
获取:46 http://cn.archive.ubuntu.com wily-updates/multiverse Translation-en [3,156 B]
获取:47 http://cn.archive.ubuntu.com wily-updates/restricted Translation-en [3,024 B]
获取:48 http://cn.archive.ubuntu.com wily-updates/universe Translation-en [54.5 kB]
获取:49 http://cn.archive.ubuntu.com wily-backports/main Sources [758 B]
获取:50 http://cn.archive.ubuntu.com wily-backports/restricted Sources [28 B]
获取:51 http://cn.archive.ubuntu.com wily-backports/universe Sources [2,257 B]
获取:52 http://cn.archive.ubuntu.com wily-backports/multiverse Sources [28 B]
获取:53 http://cn.archive.ubuntu.com wily-backports/main i386 Packages [620 B]
获取:54 http://cn.archive.ubuntu.com wily-backports/restricted i386 Packages [28 B]
获取:55 http://cn.archive.ubuntu.com wily-backports/universe i386 Packages [1,998 B]
获取:56 http://cn.archive.ubuntu.com wily-backports/multiverse i386 Packages [28 B]
获取:57 http://cn.archive.ubuntu.com wily-backports/main Translation-en [496 B]
获取:58 http://cn.archive.ubuntu.com wily-backports/multiverse Translation-en [28 B]
获取:59 http://cn.archive.ubuntu.com wily-backports/restricted Translation-en [28 B]
获取:60 http://cn.archive.ubuntu.com wily-backports/universe Translation-en [1,390 B]
下载 24.0 MB,耗时 42秒 (571 kB/s)
正在读取软件包列表... 完成
四、可以再次更新
root@openwrt:/# apt-get update
命中 http://cn.archive.ubuntu.com wily Release.gpg
命中 http://cn.archive.ubuntu.com wily-updates Release.gpg
命中 http://cn.archive.ubuntu.com wily-backports Release.gpg
命中 http://cn.archive.ubuntu.com wily Release
命中 http://cn.archive.ubuntu.com wily-updates Release
命中 http://cn.archive.ubuntu.com wily-backports Release
命中 http://cn.archive.ubuntu.com wily/main Sources
命中 http://cn.archive.ubuntu.com wily/restricted Sources
命中 http://cn.archive.ubuntu.com wily/universe Sources
命中 http://security.ubuntu.com wily-security Release.gpg
命中 http://cn.archive.ubuntu.com wily/multiverse Sources
命中 http://cn.archive.ubuntu.com wily/main i386 Packages
命中 http://cn.archive.ubuntu.com wily/restricted i386 Packages
命中 http://cn.archive.ubuntu.com wily/universe i386 Packages
命中 http://cn.archive.ubuntu.com wily/multiverse i386 Packages
命中 http://cn.archive.ubuntu.com wily/main Translation-zh_CN
命中 http://cn.archive.ubuntu.com wily/main Translation-en
命中 http://security.ubuntu.com wily-security Release
命中 http://cn.archive.ubuntu.com wily/multiverse Translation-zh_CN
命中 http://cn.archive.ubuntu.com wily/multiverse Translation-en
命中 http://cn.archive.ubuntu.com wily/restricted Translation-zh_CN
命中 http://security.ubuntu.com wily-security/main Sources
命中 http://cn.archive.ubuntu.com wily/restricted Translation-en
命中 http://cn.archive.ubuntu.com wily/universe Translation-zh_CN
命中 http://cn.archive.ubuntu.com wily/universe Translation-en
命中 http://cn.archive.ubuntu.com wily-updates/main Sources
命中 http://cn.archive.ubuntu.com wily-updates/restricted Sources
命中 http://cn.archive.ubuntu.com wily-updates/universe Sources
命中 http://cn.archive.ubuntu.com wily-updates/multiverse Sources
命中 http://cn.archive.ubuntu.com wily-updates/main i386 Packages
命中 http://cn.archive.ubuntu.com wily-updates/restricted i386 Packages
命中 http://cn.archive.ubuntu.com wily-updates/universe i386 Packages
命中 http://cn.archive.ubuntu.com wily-updates/multiverse i386 Packages
命中 http://security.ubuntu.com wily-security/restricted Sources
命中 http://cn.archive.ubuntu.com wily-updates/main Translation-en
命中 http://cn.archive.ubuntu.com wily-updates/multiverse Translation-en
命中 http://cn.archive.ubuntu.com wily-updates/restricted Translation-en
命中 http://cn.archive.ubuntu.com wily-updates/universe Translation-en
命中 http://cn.archive.ubuntu.com wily-backports/main Sources
命中 http://cn.archive.ubuntu.com wily-backports/restricted Sources
命中 http://cn.archive.ubuntu.com wily-backports/universe Sources
命中 http://cn.archive.ubuntu.com wily-backports/multiverse Sources
命中 http://cn.archive.ubuntu.com wily-backports/main i386 Packages
命中 http://security.ubuntu.com wily-security/universe Sources
命中 http://cn.archive.ubuntu.com wily-backports/restricted i386 Packages
命中 http://cn.archive.ubuntu.com wily-backports/universe i386 Packages
命中 http://cn.archive.ubuntu.com wily-backports/multiverse i386 Packages
命中 http://cn.archive.ubuntu.com wily-backports/main Translation-en
命中 http://cn.archive.ubuntu.com wily-backports/multiverse Translation-en
命中 http://cn.archive.ubuntu.com wily-backports/restricted Translation-en
命中 http://cn.archive.ubuntu.com wily-backports/universe Translation-en
命中 http://security.ubuntu.com wily-security/multiverse Sources
获取:1 http://security.ubuntu.com wily-security/main i386 Packages [142 kB]
获取:2 http://security.ubuntu.com wily-security/restricted i386 Packages [10.8 kB]
获取:3 http://security.ubuntu.com wily-security/universe i386 Packages [52.1 kB]
命中 http://security.ubuntu.com wily-security/multiverse i386 Packages
命中 http://security.ubuntu.com wily-security/main Translation-en
命中 http://security.ubuntu.com wily-security/multiverse Translation-en
命中 http://security.ubuntu.com wily-security/restricted Translation-en
命中 http://security.ubuntu.com wily-security/universe Translation-en
下载 205 kB,耗时 7秒 (27.2 kB/s)
正在读取软件包列表... 完成
五、现在可以安装软件了
root@openwrt:/# apt-get install libncurses5-dev
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
将会安装下列额外的软件包:
dialog libncurses5 libncursesw5 libtinfo-dev libtinfo5 ncurses-bin
建议安装的软件包:
ncurses-doc
下列【新】软件包将被安装:
libncurses5-dev libtinfo-dev
下列软件包将被升级:
dialog libncurses5 libncursesw5 libtinfo5 ncurses-bin
升级了 5 个软件包,新安装了 2 个软件包,要卸载 0 个软件包,有 1370 个软件包未被升级。
需要下载 909 kB 的软件包。
解压缩后会消耗掉 1,404 kB 的额外空间。
您希望继续执行吗?[Y/n]Y