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……有时却不会。
其他时候软件包丢失(如apache2或python3)。
我不明白为什么这种行为不一致。
如何让apt-get update官方 Ubuntu AMI 持续工作?