小编Mys*_*tic的帖子

官方 Ubuntu AWS AMI 上的“apt-get update”行为不一致

apt我在官方 Ubuntu 映像 ( ) 上遇到各种不一致的错误ami-83e769fb。我使用 Packer 构建 AMI,大约 40% 的情况下会失败。重新运行脚本成功。

我的脚本运行:

sudo apt-get clean all
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)

在安装任何软件包之前。

有时我会收到此错误:

amazon-ebs: W: GPG error: http://archive.ubuntu.com/ubuntu artful InRelease: Splitting up /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_artful_InRelease into data and signature failed
amazon-ebs: E: The repository 'http://archive.ubuntu.com/ubuntu artful InRelease' is not signed.
Run Code Online (Sandbox Code Playgroud)

有时apt-get update会击中http://us-west-2.ec2.archive.ubuntu.com/ubuntu……有时却不会。

其他时候软件包丢失(如apache2python3)。

我不明白为什么这种行为不一致。

如何让apt-get update官方 Ubuntu AMI 持续工作?

ubuntu amazon-ami amazon-web-services apt packer

5
推荐指数
2
解决办法
1836
查看次数

标签 统计

amazon-ami ×1

amazon-web-services ×1

apt ×1

packer ×1

ubuntu ×1