Apt-get 更新未完成

Apt-get 更新未完成

情况:Ubunutu 17.10.1 安装(64 位)不同主机上的本地存储库

  • 运行apt-get update,处理包含指向本地存储库的指针的源文件。Apt 报告说它正在读取软件包列表 — 成功。
  • Apt 报告错误某些 indes 文件下载失败。它们已被忽略。
  • 当我查看/var/lib/apt/lists目录时,只看到锁文件,没有其他内容。
  • 当我查看时,/var/lib/apt/lists/partial我看到了从本地存储库读取的包列表。

由于某种原因,apt 要么在错误发生后中断,要么正在完成但未将包列表文件从移动到/partial目录中/lists以供以后使用。有什么想法可以解释为什么会失败吗?我已经为此奋斗了 4 天。

附加信息:

环境处于离线状态,但以下是输出的最后几行。

Err 29: http://repo.gaia.com/Ubuntu artful-security/main i386 Packages 404 Not Found
Ign:35 http://repo.gaia.com/Ubuntu artful-security/restricted i386 Packages
Ign:36 http://repo.gaia.com/Ubuntu artful-security/universe i386 Packages
Ign:37 http://repo.gaia.com/Ubuntu artful-security/multiverse i386 Packages
Fetched 16.1 MB in 0s (17.2 MB/s)
Reading package lists .... Done
E: Failed to fetch http://repo.gaia.com/Ubuntu/dists/artful/main/binary-i386/Packages 404 Not Found
E: Failed to fetch http://repo.gaia.com/Ubuntu/dists/artful-updates/main/binary-i386/Packages 404 Not Found
E: Failed to fetch http://repo.gaia.com/Ubuntu/dists/artful-security/main/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

答案1

好吧,经过 4 天的奋斗,我找到了答案。我在 sources.list 文件的行前插入了 [arch=64]。这使得 apt 能够正确处理 repo 并将文件移动到需要的位置。哇,这太痛苦了。

我曾以为,既然这是一个 64 位操作系统,它应该足够智能,能够根据需要处理存储库。此外,我不会复制存储库的二进制部分,因为我不会重新编译任何东西。

相关内容