ubuntu编译内核make menuconfig失败

最近研究lguest虚拟机,但是ubuntu12.04内核中lguest内核模块貌似没装,于是乎决定重新编译linux内核,下载了3.7.9版的内核,欲编译一下。在执行命令make menuconfig时失败,提示信息如下:

于是安装ncurses,

znn@znn-virtual-machine:~$ sudo apt-get install libncurses5-dev
[sudo] password for znn: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libtinfo-dev
Suggested packages:
  ncurses-doc
The following NEW packages will be installed:
  libncurses5-dev libtinfo-dev
0 upgraded, 2 newly installed, 0 to remove and 517 not upgraded.
Need to get 312 kB of archives.
After this operation, 1,334 kB of additional disk space will be used.
Do you want to continue [Y/n]? 
Err http://cn.archive.ubuntu.com/ubuntu/ precise/main libtinfo-dev i386 5.9-4
  Could not connect to cn.archive.ubuntu.com:80 (123.129.214.98). - connect (111: Connection refused)
Err http://cn.archive.ubuntu.com/ubuntu/ precise/main libncurses5-dev i386 5.9-4
  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/n/ncurses/libtinfo-dev_5.9-4_i386.deb  Could not connect to cn.archive.ubuntu.com:80 (123.129.214.98). - connect (111: Connection refused)
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/n/ncurses/libncurses5-dev_5.9-4_i386.deb  Unable to connect to cn.archive.ubuntu.com:http:
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?znn@znn-virtual-machine:~$ sudo apt-get install libncurses*
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libncursesada2-dev' for regex 'libncurses*'
Note, selecting 'libncurses5' for regex 'libncurses*'
Note, selecting 'libncurses-ruby1.8' for regex 'libncurses*'
Note, selecting 'libncurses-ruby1.9' for regex 'libncurses*'
Note, selecting 'libncurses-dev' for regex 'libncurses*'
Note, selecting 'libncursesada2' for regex 'libncurses*'
Note, selecting 'libncurses-gst' for regex 'libncurses*'
Note, selecting 'libncursesw5-dbg' for regex 'libncurses*'
Note, selecting 'libncursesw5-dev' for regex 'libncurses*'
Note, selecting 'libncursesada-dbg' for regex 'libncurses*'
Note, selecting 'libncursesada-doc' for regex 'libncurses*'
Note, selecting 'libncurses-ruby1.9.1' for regex 'libncurses*'
Note, selecting 'libncurses-ruby' for regex 'libncurses*'
Note, selecting 'libncurses5-dbg' for regex 'libncurses*'
Note, selecting 'libncurses5-dev' for regex 'libncurses*'
Note, selecting 'libncursesw5' for regex 'libncurses*'
Note, selecting 'libncurses5-dev' instead of 'libncurses-dev'
libncurses5 is already the newest version.
libncursesw5 is already the newest version.
The following extra packages will be installed:
  ada-reference-manual-html gnat gnat-4.6 gnat-4.6-base gnat-gps
  gnat-gps-common gnat-gps-doc gnu-smalltalk gnu-smalltalk-common gprbuild-doc
  javascript-common libgnat-4.6 libgnatprj4.6 libgnatvsn4.6 libgst7
  libgtkada2.24.1 libjs-prototype libjs-scriptaculous libreadline5 libruby1.8
  libtemplates-parser11.6 libtinfo-dev libtinfo5-dbg libxmlada4.1 ruby-ncurses
  ruby1.8 wwwconfig-common
Suggested packages:
  ada-compiler gnat-4.6-doc ada-reference-manual-info ada-reference-manual-pdf
  ada-reference-manual-text gnat-4.6-sjlj gnu-smalltalk-doc apache2 httpd
  ncurses-doc ruby1.8-examples ri1.8 mysql-client postgresql-client
Recommended packages:
  ada-reference-manual
The following NEW packages will be installed:
  ada-reference-manual-html gnat gnat-4.6 gnat-4.6-base gnat-gps
  gnat-gps-common gnat-gps-doc gnu-smalltalk gnu-smalltalk-common gprbuild-doc
  javascript-common libgnat-4.6 libgnatprj4.6 libgnatvsn4.6 libgst7
  libgtkada2.24.1 libjs-prototype libjs-scriptaculous libncurses-gst
  libncurses-ruby libncurses-ruby1.8 libncurses-ruby1.9 libncurses-ruby1.9.1
  libncurses5-dbg libncurses5-dev libncursesada-dbg libncursesada-doc
  libncursesada2 libncursesada2-dev libncursesw5-dbg libncursesw5-dev
  libreadline5 libruby1.8 libtemplates-parser11.6 libtinfo-dev libtinfo5-dbg
  libxmlada4.1 ruby-ncurses ruby1.8 wwwconfig-common
0 upgraded, 40 newly installed, 0 to remove and 517 not upgraded.
Need to get 48.1 MB of archives.
After this operation, 214 MB of additional disk space will be used.
Do you want to continue [Y/n]? 
Err http://cn.archive.ubuntu.com/ubuntu/ precise-updates/universe gnat-4.6-base i386 4.6.3-1ubuntu4
  Could not connect to cn.archive.ubuntu.com:80 (123.129.214.98). - connect (111: Connection refused)
Err http://cn.archive.ubuntu.com/ubuntu/ precise-updates/universe libgnat-4.6 i386 4.6.3-1ubuntu4
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise-updates/universe libgnatvsn4.6 i386 4.6.3-1ubuntu4
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise-updates/universe libgnatprj4.6 i386 4.6.3-1ubuntu4
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise-updates/universe gnat-4.6 i386 4.6.3-1ubuntu4
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/universe libgtkada2.24.1 i386 2.24.1-2
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/main libreadline5 i386 5.2-11
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/universe libtemplates-parser11.6 i386 11.6-2
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/universe libxmlada4.1 i386 4.1-1
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/universe libncursesada2 i386 5.9.20110404-3
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/universe libncursesada-dbg i386 5.9.20110404-3
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/universe ada-reference-manual-html all 1:2005.2-1
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/universe gnat i386 4.6ubuntu1
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/universe libjs-prototype all 1.7.0-2
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/universe libjs-scriptaculous all 1.9.0-2
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise-updates/universe gnat-gps-common all 5.0-6ubuntu1
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise-updates/universe gnat-gps i386 5.0-6ubuntu1
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise-updates/universe gnat-gps-doc all 5.0-6ubuntu1
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/universe gprbuild-doc all 2011-1
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/universe wwwconfig-common all 0.2.2
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/universe javascript-common all 8
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise-updates/main libruby1.8 i386 1.8.7.352-2ubuntu1.1
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/universe ruby-ncurses i386 1.2.4-4build1
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/universe libncurses-ruby all 1.2.4-4build1
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/universe libncurses-ruby1.8 all 1.2.4-4build1
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/universe libncurses-ruby1.9 all 1.2.4-4build1
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/universe libncurses-ruby1.9.1 all 1.2.4-4build1
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/main libtinfo-dev i386 5.9-4
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/main libncurses5-dev i386 5.9-4
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/main libncursesw5-dev i386 5.9-4
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/universe libgst7 i386 3.2.4-2
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/universe gnu-smalltalk i386 3.2.4-2
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/universe gnu-smalltalk-common all 3.2.4-2
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/universe libncurses-gst all 3.2.4-2
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/main libtinfo5-dbg i386 5.9-4
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/main libncurses5-dbg i386 5.9-4
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/universe libncursesada-doc all 5.9.20110404-3
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/universe libncursesada2-dev i386 5.9.20110404-3
  Unable to connect to cn.archive.ubuntu.com:http:
Err http://cn.archive.ubuntu.com/ubuntu/ precise/main libncursesw5-dbg i386 5.9-4
  Unable to connect to cn.archive.ubuntu.com:http:
Get:1 http://security.ubuntu.com/ubuntu/ precise-security/main libruby1.8 i386 1.8.7.352-2ubuntu1.1 [1,782 kB]
Get:2 http://security.ubuntu.com/ubuntu/ precise-security/main ruby1.8 i386 1.8.7.352-2ubuntu1.1 [33.8 kB]
Fetched 1,816 kB in 44s (40.8 kB/s)                                                                    
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/g/gnat-4.6/gnat-4.6-base_4.6.3-1ubuntu4_i386.deb  Could not connect to cn.archive.ubuntu.com:80 (123.129.214.98). - connect (111: Connection refused)
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/g/gnat-4.6/libgnat-4.6_4.6.3-1ubuntu4_i386.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/g/gnat-4.6/libgnatvsn4.6_4.6.3-1ubuntu4_i386.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/g/gnat-4.6/libgnatprj4.6_4.6.3-1ubuntu4_i386.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/g/gnat-4.6/gnat-4.6_4.6.3-1ubuntu4_i386.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/libg/libgtkada/libgtkada2.24.1_2.24.1-2_i386.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/r/readline5/libreadline5_5.2-11_i386.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/libt/libtemplates-parser/libtemplates-parser11.6_11.6-2_i386.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/libx/libxmlada/libxmlada4.1_4.1-1_i386.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/libn/libncursesada/libncursesada2_5.9.20110404-3_i386.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/libn/libncursesada/libncursesada-dbg_5.9.20110404-3_i386.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/a/ada-reference-manual/ada-reference-manual-html_2005.2-1_all.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/g/gnat/gnat_4.6ubuntu1_i386.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/p/prototypejs/libjs-prototype_1.7.0-2_all.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/s/scriptaculous/libjs-scriptaculous_1.9.0-2_all.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/g/gnat-gps/gnat-gps-common_5.0-6ubuntu1_all.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/g/gnat-gps/gnat-gps_5.0-6ubuntu1_i386.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/g/gnat-gps/gnat-gps-doc_5.0-6ubuntu1_all.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/g/gprbuild/gprbuild-doc_2011-1_all.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/w/wwwconfig-common/wwwconfig-common_0.2.2_all.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/j/javascript-common/javascript-common_8_all.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/r/ruby-ncurses/ruby-ncurses_1.2.4-4build1_i386.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/r/ruby-ncurses/libncurses-ruby_1.2.4-4build1_all.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/r/ruby-ncurses/libncurses-ruby1.8_1.2.4-4build1_all.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/r/ruby-ncurses/libncurses-ruby1.9_1.2.4-4build1_all.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/r/ruby-ncurses/libncurses-ruby1.9.1_1.2.4-4build1_all.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/n/ncurses/libtinfo-dev_5.9-4_i386.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/n/ncurses/libncurses5-dev_5.9-4_i386.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/n/ncurses/libncursesw5-dev_5.9-4_i386.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/g/gnu-smalltalk/libgst7_3.2.4-2_i386.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/g/gnu-smalltalk/gnu-smalltalk_3.2.4-2_i386.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/g/gnu-smalltalk/gnu-smalltalk-common_3.2.4-2_all.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/g/gnu-smalltalk/libncurses-gst_3.2.4-2_all.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/n/ncurses/libtinfo5-dbg_5.9-4_i386.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/n/ncurses/libncurses5-dbg_5.9-4_i386.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/libn/libncursesada/libncursesada-doc_5.9.20110404-3_all.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/libn/libncursesada/libncursesada2-dev_5.9.20110404-3_i386.deb  Unable to connect to cn.archive.ubuntu.com:http:
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/n/ncurses/libncursesw5-dbg_5.9-4_i386.deb  Unable to connect to cn.archive.ubuntu.com:http:
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

 

posted @ 2013-02-26 22:24  new妞宁  阅读(882)  评论(0编辑  收藏  举报