我最近在 2009 款 Mac Book Pro 上安装了 Ubuntu Precise。
我按照这里的说明进行操作:https://help.ubuntu.com/community/MactelSupportTeam/AppleIntelInstallation
要达到这个目的需要做相当多的工作,包括必须遵循以下说明:http://ubuntuforums.org/showthread.php?t=1810275&page=19&p=11215214#post11215214
我有 20GB 的 Yosemite 分区,其余的驱动器是 Ubuntu 的 EXT4 分区。如果您在某个时候需要 fdisk -lu 的输出,我也可以发布它。
一切正常 - Ubuntu 从 rEFInd 菜单启动,我可以浏览和执行大多数操作。Wifi 可用,触摸板可用 - 一切都很好。但是当我尝试安装更新时,它似乎永远处于“正在下载”状态 - 没有任何进展。我取消了 GUI,打开了终端并尝试了一些简单的操作,例如:
sudo apt-get install git
同样,它能够获取软件包,询问我是否要下载,我说是 - 然后它就永远挂在正在下载... 0% 上。我在使用以太网和 wifi 时都遇到了这个问题。值得注意的是,我可以打开浏览器并毫无问题地访问 apt-get 所访问的确切 URL。
问题是什么?我应该从哪里开始查找?
更新:添加输出
sudo apt-get update
它顺利完成:
Hit http://extras.ubuntu.com precise Release.gpg
Hit http://extras.ubuntu.com precise Release
Hit http://extras.ubuntu.com precise/main Sources
Hit http://extras.ubuntu.com precise/main amd64 Packages
Hit http://extras.ubuntu.com precise/main i386 Packages
Ign http://extras.ubuntu.com precise/main TranslationIndex
Ign http://extras.ubuntu.com precise/main Translation-en_US
Ign http://extras.ubuntu.com precise/main Translation-en
Get:1 http://security.ubuntu.com precise-security Release.gpg [198 B]
Get:2 http://security.ubuntu.com precise-security Release [54.3 kB]
Get:3 http://security.ubuntu.com precise-security/main Sources [131 kB]
Get:4 http://security.ubuntu.com precise-security/restricted Sources [3,759 B]
Get:5 http://security.ubuntu.com precise-security/universe Sources [43.8 kB]
Get:6 http://security.ubuntu.com precise-security/multiverse Sources [2,199 B]
Get:7 http://security.ubuntu.com precise-security/main amd64 Packages [531 kB]
Get:8 http://security.ubuntu.com precise-security/restricted amd64 Packages [8,943 B]
Get:9 http://security.ubuntu.com precise-security/universe amd64 Packages [123 kB]
Get:10 http://security.ubuntu.com precise-security/multiverse amd64 Packages [2,697 B]
Get:11 http://security.ubuntu.com precise-security/main i386 Packages [574 kB]
Get:12 http://security.ubuntu.com precise-security/restricted i386 Packages [8,939 B]
Get:13 http://security.ubuntu.com precise-security/universe i386 Packages [131 kB]
Get:14 http://security.ubuntu.com precise-security/multiverse i386 Packages [2,864 B]
Get:15 http://security.ubuntu.com precise-security/main TranslationIndex [208 B]
Get:16 http://security.ubuntu.com precise-security/multiverse TranslationIndex [199 B]
Get:17 http://security.ubuntu.com precise-security/restricted TranslationIndex [202 B]
Get:18 http://security.ubuntu.com precise-security/universe TranslationIndex [205 B]
Hit http://security.ubuntu.com precise-security/main Translation-en
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Hit http://security.ubuntu.com precise-security/universe Translation-en
Hit http://us.archive.ubuntu.com precise Release.gpg
Get:19 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B]
Hit http://us.archive.ubuntu.com precise-backports Release.gpg
Hit http://us.archive.ubuntu.com precise Release
Get:20 http://us.archive.ubuntu.com precise-updates Release [196 kB]
Hit http://us.archive.ubuntu.com precise-backports Release
Hit http://us.archive.ubuntu.com precise/main Sources
Hit http://us.archive.ubuntu.com precise/restricted Sources
Hit http://us.archive.ubuntu.com precise/universe Sources
Hit http://us.archive.ubuntu.com precise/multiverse Sources
Hit http://us.archive.ubuntu.com precise/main amd64 Packages
Hit http://us.archive.ubuntu.com precise/restricted amd64 Packages
Hit http://us.archive.ubuntu.com precise/universe amd64 Packages
Hit http://us.archive.ubuntu.com precise/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com precise/main i386 Packages
Hit http://us.archive.ubuntu.com precise/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise/universe i386 Packages
Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise/main TranslationIndex
Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
Get:21 http://us.archive.ubuntu.com precise-updates/main Sources [490 kB]
Get:22 http://us.archive.ubuntu.com precise-updates/restricted Sources [7,981 B]
Get:23 http://us.archive.ubuntu.com precise-updates/universe Sources [122 kB]
Get:24 http://us.archive.ubuntu.com precise-updates/multiverse Sources [9,714 B]
Get:25 http://us.archive.ubuntu.com precise-updates/main amd64 Packages [917 kB]
Get:26 http://us.archive.ubuntu.com precise-updates/restricted amd64 Packages [13.6 kB]
Get:27 http://us.archive.ubuntu.com precise-updates/universe amd64 Packages [268 kB]
Get:28 http://us.archive.ubuntu.com precise-updates/multiverse amd64 Packages [16.5 kB]
Get:29 http://us.archive.ubuntu.com precise-updates/main i386 Packages [969 kB]
Get:30 http://us.archive.ubuntu.com precise-updates/restricted i386 Packages [13.6 kB]
Get:31 http://us.archive.ubuntu.com precise-updates/universe i386 Packages [277 kB]
Get:32 http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages [16.7 kB]
Get:33 http://us.archive.ubuntu.com precise-updates/main TranslationIndex [10.6 kB]
Get:34 http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex [7,613 B]
Get:35 http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex [7,297 B]
Get:36 http://us.archive.ubuntu.com precise-updates/universe TranslationIndex [8,333 B]
Hit http://us.archive.ubuntu.com precise-backports/main Sources
Hit http://us.archive.ubuntu.com precise-backports/restricted Sources
Hit http://us.archive.ubuntu.com precise-backports/universe Sources
Hit http://us.archive.ubuntu.com precise-backports/multiverse Sources
Hit http://us.archive.ubuntu.com precise-backports/main amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/restricted amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/universe amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/main i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/universe i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise/main Translation-en
Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise/restricted Translation-en
Hit http://us.archive.ubuntu.com precise/universe Translation-en
Hit http://us.archive.ubuntu.com precise-updates/main Translation-en
Hit http://us.archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-updates/universe Translation-en
Hit http://us.archive.ubuntu.com precise-backports/main Translation-en
Hit http://us.archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-backports/universe Translation-en
Fetched 4,971 kB in 4min 2s (20.5 kB/s)
Reading package lists... Done
谢谢阅读,
布兰登
答案1
由于您的互联网访问似乎正常,因此问题似乎更多地出在 apt 子系统上。
您是否已使用以下方式刷新了存储库中的软件包列表:
sudo apt-get 更新
环境变量 HTTP_PROXY 是否以任何方式设置?在大多数设置中都不需要它。如有必要,请使用
导出 HTTP_PROXY=""
尽管网络访问似乎可以正常工作,但最好还是从命令行确保您的名称解析也能正常工作。尝试直接下载软件包,例如
获得http://archive.ubuntu.com/ubuntu/pool/main/a/apt/apt-doc_0.7.25.3ubuntu7_all.deb
也可能是某些依赖项计算不正确。为了帮助系统正确执行此操作,您可以升级整个系统,例如:
apt-get 安装 aptitude;aptitude 安全升级
这将有助于使所有包裹处于相似的状态。
希望这可以帮助。