免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5613 | 回复: 6
打印 上一主题 下一主题

[系统安装] apt-get无法连接 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-10-18 10:47 |只看该作者 |倒序浏览
系统:ubuntu 12

我这里用了代理,我已经设置了系统的代理
设置:系统-》网络设置-》

通过浏览器没有问题的,但是apt-get的话,报错,我猜应该是无法连接网络的原因。


问题:
1:按照网上的步骤设置了apt-get,无效。
2:apt-get的代理设置,和系统的代理设置,什么关系?

论坛徽章:
4
CU大牛徽章
日期:2013-03-13 15:29:07CU大牛徽章
日期:2013-03-13 15:29:49CU大牛徽章
日期:2013-03-13 15:30:192015年迎新春徽章
日期:2015-03-04 09:57:09
2 [报告]
发表于 2012-10-18 11:31 |只看该作者
楼主把错误贴出来

论坛徽章:
4
CU大牛徽章
日期:2013-03-13 15:29:07CU大牛徽章
日期:2013-03-13 15:29:49CU大牛徽章
日期:2013-03-13 15:30:192015年迎新春徽章
日期:2015-03-04 09:57:09
3 [报告]
发表于 2012-10-18 11:31 |只看该作者
楼主可以换个源试试 mirrors.163.com

论坛徽章:
0
4 [报告]
发表于 2012-10-18 12:11 |只看该作者
  1. Csgq@sgq-PC-MY18AEZE4:~$ sudo apt-get source time
  2. Reading package lists... Done
  3. Building dependency tree
  4. Reading state information... Done
  5. E: You must put some 'source' URIs in your sources.list
  6. sgq@sgq-PC-MY18AEZE4:~$ cat /etc/apt/sources.list
  7. #deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release i386 (20120423)]/ precise main restricted

  8. # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
  9. # newer versions of the distribution.
  10. deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted
  11. deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted

  12. ## Major bug fix updates produced after the final release of the
  13. ## distribution.
  14. deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted
  15. deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted

  16. ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
  17. ## team. Also, please note that software in universe WILL NOT receive any
  18. ## review or updates from the Ubuntu security team.
  19. deb http://us.archive.ubuntu.com/ubuntu/ precise universe
  20. deb-src http://us.archive.ubuntu.com/ubuntu/ precise universe
  21. deb http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
  22. deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates universe

  23. ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
  24. ## team, and may not be under a free licence. Please satisfy yourself as to
  25. ## your rights to use the software. Also, please note that software in
  26. ## multiverse WILL NOT receive any review or updates from the Ubuntu
  27. ## security team.
  28. deb http://us.archive.ubuntu.com/ubuntu/ precise multiverse
  29. deb-src http://us.archive.ubuntu.com/ubuntu/ precise multiverse
  30. deb http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse
  31. deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse

  32. ## N.B. software from this repository may not have been tested as
  33. ## extensively as that contained in the main release, although it includes
  34. ## newer versions of some applications which may provide useful features.
  35. ## Also, please note that software in backports WILL NOT receive any review
  36. ## or updates from the Ubuntu security team.
  37. deb http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
  38. deb-src http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

  39. deb http://security.ubuntu.com/ubuntu precise-security main restricted
  40. deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
  41. deb http://security.ubuntu.com/ubuntu precise-security universe
  42. deb-src http://security.ubuntu.com/ubuntu precise-security universe
  43. deb http://security.ubuntu.com/ubuntu precise-security multiverse
  44. deb-src http://security.ubuntu.com/ubuntu precise-security multiverse

  45. ## Uncomment the following two lines to add software from Canonical's
  46. ## 'partner' repository.
  47. ## This software is not part of Ubuntu, but is offered by Canonical and the
  48. ## respective vendors as a service to Ubuntu users.
  49. # deb http://archive.canonical.com/ubuntu precise partner
  50. # deb-src http://archive.canonical.com/ubuntu precise partner

  51. ## This software is not part of Ubuntu, but is offered by third-party
  52. ## developers who want to ship their latest software.
  53. deb http://extras.ubuntu.com/ubuntu precise main
  54. deb-src http://extras.ubuntu.com/ubuntu precise main
  55. sgq@sgq-PC-MY18AEZE4:~$ sudo apt-get update
  56. Ign http://extras.ubuntu.com precise InRelease
  57. Err http://extras.ubuntu.com precise Release.gpg
  58.   Unable to connect to extras.ubuntu.com:http:
  59. Ign http://extras.ubuntu.com precise Release
  60. Ign http://extras.ubuntu.com precise/main TranslationIndex
  61. Err http://extras.ubuntu.com precise/main Sources
  62.   Unable to connect to extras.ubuntu.com:http:
  63. Err http://extras.ubuntu.com precise/main i386 Packages
  64.   Unable to connect to extras.ubuntu.com:http:
  65. Err http://extras.ubuntu.com precise/main Translation-en_US
  66.   Unable to connect to extras.ubuntu.com:http:
  67. Err http://extras.ubuntu.com precise/main Translation-en
  68.   Unable to connect to extras.ubuntu.com:http:
复制代码

论坛徽章:
0
5 [报告]
发表于 2012-10-19 08:51 |只看该作者
wenwen

wenwen

wenwen

论坛徽章:
4
CU大牛徽章
日期:2013-03-13 15:29:07CU大牛徽章
日期:2013-03-13 15:29:49CU大牛徽章
日期:2013-03-13 15:30:192015年迎新春徽章
日期:2015-03-04 09:57:09
6 [报告]
发表于 2012-10-19 08:55 |只看该作者
yjchlove 发表于 2012-10-18 12:11


直接换源试试。

论坛徽章:
0
7 [报告]
发表于 2012-10-19 09:57 |只看该作者
自己解决了,分享下调查结果。

从这个调查来看,可以确定,system-》network下面的proxy设置,和apt的设置无关。
第二,需要配置自己的apt.conf文件。


问题解决。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP