inconsistent `apt-get update` behaviour on official Ubuntu AWS AMI
up vote
0
down vote
favorite
I get various and inconsistent errors with apt
on the official Ubuntu images (ami-83e769fb
). I'm using Packer to build my AMI and it fails about 40% of the time. Rerunning the script often succeeds.
My script runs:
sudo apt-get clean all
sudo apt-get update
before install any packages.
Some times I get this error:
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.
Some times apt-get update
hits http://us-west-2.ec2.archive.ubuntu.com/ubuntu
... other times it doesn't.
Other times packages are missing (like apache2
or python3
).
I don't understand why this behaviour is inconsistent.
How can I get apt-get update
on the official Ubuntu AMI to work consistently?
apt package-management cloud aws
add a comment |Â
up vote
0
down vote
favorite
I get various and inconsistent errors with apt
on the official Ubuntu images (ami-83e769fb
). I'm using Packer to build my AMI and it fails about 40% of the time. Rerunning the script often succeeds.
My script runs:
sudo apt-get clean all
sudo apt-get update
before install any packages.
Some times I get this error:
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.
Some times apt-get update
hits http://us-west-2.ec2.archive.ubuntu.com/ubuntu
... other times it doesn't.
Other times packages are missing (like apache2
or python3
).
I don't understand why this behaviour is inconsistent.
How can I get apt-get update
on the official Ubuntu AMI to work consistently?
apt package-management cloud aws
cross posted here and serverfault.com/questions/904080/â¦
â Mystic
Mar 22 at 17:39
If you still hit this, can you please post complete logs of the error? Focus on just one type of error as well if you could. The W and E lines you have right now are symptoms, sometimes having to do with disks that are corrupt, etc. But we need more logs to check.
â dpb
Apr 6 at 3:36
@dpb, I'd love to post more logs, if you can tell me what you're most interested in (syslog?). One of the problems is that this is intermittent, without clear steps to reproduce (I hit it using Packer with AWS in us-west-2). I encountered this over a dozen times across multiple days with new EC2 instances each time, so I don't think it's a hardware issue on the VM).
â Mystic
Apr 12 at 22:00
next time you get it, the same place you see theW:
andE:
entries that you pasted in above, copy the entire context and put it in a pastebin. From the command that was executed. I guess the whole packer log file. Also, please paste in the packer commands that you are running please exactly.
â dpb
Apr 13 at 2:18
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I get various and inconsistent errors with apt
on the official Ubuntu images (ami-83e769fb
). I'm using Packer to build my AMI and it fails about 40% of the time. Rerunning the script often succeeds.
My script runs:
sudo apt-get clean all
sudo apt-get update
before install any packages.
Some times I get this error:
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.
Some times apt-get update
hits http://us-west-2.ec2.archive.ubuntu.com/ubuntu
... other times it doesn't.
Other times packages are missing (like apache2
or python3
).
I don't understand why this behaviour is inconsistent.
How can I get apt-get update
on the official Ubuntu AMI to work consistently?
apt package-management cloud aws
I get various and inconsistent errors with apt
on the official Ubuntu images (ami-83e769fb
). I'm using Packer to build my AMI and it fails about 40% of the time. Rerunning the script often succeeds.
My script runs:
sudo apt-get clean all
sudo apt-get update
before install any packages.
Some times I get this error:
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.
Some times apt-get update
hits http://us-west-2.ec2.archive.ubuntu.com/ubuntu
... other times it doesn't.
Other times packages are missing (like apache2
or python3
).
I don't understand why this behaviour is inconsistent.
How can I get apt-get update
on the official Ubuntu AMI to work consistently?
apt package-management cloud aws
apt package-management cloud aws
asked Mar 22 at 17:39
Mystic
1011
1011
cross posted here and serverfault.com/questions/904080/â¦
â Mystic
Mar 22 at 17:39
If you still hit this, can you please post complete logs of the error? Focus on just one type of error as well if you could. The W and E lines you have right now are symptoms, sometimes having to do with disks that are corrupt, etc. But we need more logs to check.
â dpb
Apr 6 at 3:36
@dpb, I'd love to post more logs, if you can tell me what you're most interested in (syslog?). One of the problems is that this is intermittent, without clear steps to reproduce (I hit it using Packer with AWS in us-west-2). I encountered this over a dozen times across multiple days with new EC2 instances each time, so I don't think it's a hardware issue on the VM).
â Mystic
Apr 12 at 22:00
next time you get it, the same place you see theW:
andE:
entries that you pasted in above, copy the entire context and put it in a pastebin. From the command that was executed. I guess the whole packer log file. Also, please paste in the packer commands that you are running please exactly.
â dpb
Apr 13 at 2:18
add a comment |Â
cross posted here and serverfault.com/questions/904080/â¦
â Mystic
Mar 22 at 17:39
If you still hit this, can you please post complete logs of the error? Focus on just one type of error as well if you could. The W and E lines you have right now are symptoms, sometimes having to do with disks that are corrupt, etc. But we need more logs to check.
â dpb
Apr 6 at 3:36
@dpb, I'd love to post more logs, if you can tell me what you're most interested in (syslog?). One of the problems is that this is intermittent, without clear steps to reproduce (I hit it using Packer with AWS in us-west-2). I encountered this over a dozen times across multiple days with new EC2 instances each time, so I don't think it's a hardware issue on the VM).
â Mystic
Apr 12 at 22:00
next time you get it, the same place you see theW:
andE:
entries that you pasted in above, copy the entire context and put it in a pastebin. From the command that was executed. I guess the whole packer log file. Also, please paste in the packer commands that you are running please exactly.
â dpb
Apr 13 at 2:18
cross posted here and serverfault.com/questions/904080/â¦
â Mystic
Mar 22 at 17:39
cross posted here and serverfault.com/questions/904080/â¦
â Mystic
Mar 22 at 17:39
If you still hit this, can you please post complete logs of the error? Focus on just one type of error as well if you could. The W and E lines you have right now are symptoms, sometimes having to do with disks that are corrupt, etc. But we need more logs to check.
â dpb
Apr 6 at 3:36
If you still hit this, can you please post complete logs of the error? Focus on just one type of error as well if you could. The W and E lines you have right now are symptoms, sometimes having to do with disks that are corrupt, etc. But we need more logs to check.
â dpb
Apr 6 at 3:36
@dpb, I'd love to post more logs, if you can tell me what you're most interested in (syslog?). One of the problems is that this is intermittent, without clear steps to reproduce (I hit it using Packer with AWS in us-west-2). I encountered this over a dozen times across multiple days with new EC2 instances each time, so I don't think it's a hardware issue on the VM).
â Mystic
Apr 12 at 22:00
@dpb, I'd love to post more logs, if you can tell me what you're most interested in (syslog?). One of the problems is that this is intermittent, without clear steps to reproduce (I hit it using Packer with AWS in us-west-2). I encountered this over a dozen times across multiple days with new EC2 instances each time, so I don't think it's a hardware issue on the VM).
â Mystic
Apr 12 at 22:00
next time you get it, the same place you see the
W:
and E:
entries that you pasted in above, copy the entire context and put it in a pastebin. From the command that was executed. I guess the whole packer log file. Also, please paste in the packer commands that you are running please exactly.â dpb
Apr 13 at 2:18
next time you get it, the same place you see the
W:
and E:
entries that you pasted in above, copy the entire context and put it in a pastebin. From the command that was executed. I guess the whole packer log file. Also, please paste in the packer commands that you are running please exactly.â dpb
Apr 13 at 2:18
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
Put this line on top of your script to make it non-interactive:
export DEBIAN_FRONTEND=noninteractive
To fix the issue use following commands in terminal:
wget https://keybase.io/docs/server_security/code_signing_key.asc
sudo apt-key add code_signing_key.asc
Btw:
apt-get clean all # The "all" doesn't add anything to the command here.
Use these commands instead :
Clean, Update and Upgrade :
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get autoremove
sudo apt-get autoclean
Reference for fixing and setting up the Ubuntu AWS AMI tools : docs.aws.amazon.com//Setting Up the AMI Tools-Managing Signing Certificates
What does this do? Why would it help?
â Mystic
Mar 22 at 18:04
The first line make's it non-interactive that means it just "hides" the messages and errors. The second fix should fix the problem.
â An0n
Mar 22 at 18:07
This doesn't address why the problem is intermittent. Why does the official AMI sometimes have this problem but not other times?
â Mystic
Mar 22 at 18:09
Why you got this problem can have many reasons. I'm just telling you how to fix it.
â An0n
Mar 22 at 18:21
This doesn't fix the problem of intermittentapt
failures. I appreciate your time and concern, but I keep hitting intermittent issues.
â Mystic
Mar 22 at 19:00
 |Â
show 2 more comments
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Put this line on top of your script to make it non-interactive:
export DEBIAN_FRONTEND=noninteractive
To fix the issue use following commands in terminal:
wget https://keybase.io/docs/server_security/code_signing_key.asc
sudo apt-key add code_signing_key.asc
Btw:
apt-get clean all # The "all" doesn't add anything to the command here.
Use these commands instead :
Clean, Update and Upgrade :
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get autoremove
sudo apt-get autoclean
Reference for fixing and setting up the Ubuntu AWS AMI tools : docs.aws.amazon.com//Setting Up the AMI Tools-Managing Signing Certificates
What does this do? Why would it help?
â Mystic
Mar 22 at 18:04
The first line make's it non-interactive that means it just "hides" the messages and errors. The second fix should fix the problem.
â An0n
Mar 22 at 18:07
This doesn't address why the problem is intermittent. Why does the official AMI sometimes have this problem but not other times?
â Mystic
Mar 22 at 18:09
Why you got this problem can have many reasons. I'm just telling you how to fix it.
â An0n
Mar 22 at 18:21
This doesn't fix the problem of intermittentapt
failures. I appreciate your time and concern, but I keep hitting intermittent issues.
â Mystic
Mar 22 at 19:00
 |Â
show 2 more comments
up vote
0
down vote
Put this line on top of your script to make it non-interactive:
export DEBIAN_FRONTEND=noninteractive
To fix the issue use following commands in terminal:
wget https://keybase.io/docs/server_security/code_signing_key.asc
sudo apt-key add code_signing_key.asc
Btw:
apt-get clean all # The "all" doesn't add anything to the command here.
Use these commands instead :
Clean, Update and Upgrade :
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get autoremove
sudo apt-get autoclean
Reference for fixing and setting up the Ubuntu AWS AMI tools : docs.aws.amazon.com//Setting Up the AMI Tools-Managing Signing Certificates
What does this do? Why would it help?
â Mystic
Mar 22 at 18:04
The first line make's it non-interactive that means it just "hides" the messages and errors. The second fix should fix the problem.
â An0n
Mar 22 at 18:07
This doesn't address why the problem is intermittent. Why does the official AMI sometimes have this problem but not other times?
â Mystic
Mar 22 at 18:09
Why you got this problem can have many reasons. I'm just telling you how to fix it.
â An0n
Mar 22 at 18:21
This doesn't fix the problem of intermittentapt
failures. I appreciate your time and concern, but I keep hitting intermittent issues.
â Mystic
Mar 22 at 19:00
 |Â
show 2 more comments
up vote
0
down vote
up vote
0
down vote
Put this line on top of your script to make it non-interactive:
export DEBIAN_FRONTEND=noninteractive
To fix the issue use following commands in terminal:
wget https://keybase.io/docs/server_security/code_signing_key.asc
sudo apt-key add code_signing_key.asc
Btw:
apt-get clean all # The "all" doesn't add anything to the command here.
Use these commands instead :
Clean, Update and Upgrade :
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get autoremove
sudo apt-get autoclean
Reference for fixing and setting up the Ubuntu AWS AMI tools : docs.aws.amazon.com//Setting Up the AMI Tools-Managing Signing Certificates
Put this line on top of your script to make it non-interactive:
export DEBIAN_FRONTEND=noninteractive
To fix the issue use following commands in terminal:
wget https://keybase.io/docs/server_security/code_signing_key.asc
sudo apt-key add code_signing_key.asc
Btw:
apt-get clean all # The "all" doesn't add anything to the command here.
Use these commands instead :
Clean, Update and Upgrade :
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get autoremove
sudo apt-get autoclean
Reference for fixing and setting up the Ubuntu AWS AMI tools : docs.aws.amazon.com//Setting Up the AMI Tools-Managing Signing Certificates
edited Mar 22 at 18:27
answered Mar 22 at 18:01
An0n
80418
80418
What does this do? Why would it help?
â Mystic
Mar 22 at 18:04
The first line make's it non-interactive that means it just "hides" the messages and errors. The second fix should fix the problem.
â An0n
Mar 22 at 18:07
This doesn't address why the problem is intermittent. Why does the official AMI sometimes have this problem but not other times?
â Mystic
Mar 22 at 18:09
Why you got this problem can have many reasons. I'm just telling you how to fix it.
â An0n
Mar 22 at 18:21
This doesn't fix the problem of intermittentapt
failures. I appreciate your time and concern, but I keep hitting intermittent issues.
â Mystic
Mar 22 at 19:00
 |Â
show 2 more comments
What does this do? Why would it help?
â Mystic
Mar 22 at 18:04
The first line make's it non-interactive that means it just "hides" the messages and errors. The second fix should fix the problem.
â An0n
Mar 22 at 18:07
This doesn't address why the problem is intermittent. Why does the official AMI sometimes have this problem but not other times?
â Mystic
Mar 22 at 18:09
Why you got this problem can have many reasons. I'm just telling you how to fix it.
â An0n
Mar 22 at 18:21
This doesn't fix the problem of intermittentapt
failures. I appreciate your time and concern, but I keep hitting intermittent issues.
â Mystic
Mar 22 at 19:00
What does this do? Why would it help?
â Mystic
Mar 22 at 18:04
What does this do? Why would it help?
â Mystic
Mar 22 at 18:04
The first line make's it non-interactive that means it just "hides" the messages and errors. The second fix should fix the problem.
â An0n
Mar 22 at 18:07
The first line make's it non-interactive that means it just "hides" the messages and errors. The second fix should fix the problem.
â An0n
Mar 22 at 18:07
This doesn't address why the problem is intermittent. Why does the official AMI sometimes have this problem but not other times?
â Mystic
Mar 22 at 18:09
This doesn't address why the problem is intermittent. Why does the official AMI sometimes have this problem but not other times?
â Mystic
Mar 22 at 18:09
Why you got this problem can have many reasons. I'm just telling you how to fix it.
â An0n
Mar 22 at 18:21
Why you got this problem can have many reasons. I'm just telling you how to fix it.
â An0n
Mar 22 at 18:21
This doesn't fix the problem of intermittent
apt
failures. I appreciate your time and concern, but I keep hitting intermittent issues.â Mystic
Mar 22 at 19:00
This doesn't fix the problem of intermittent
apt
failures. I appreciate your time and concern, but I keep hitting intermittent issues.â Mystic
Mar 22 at 19:00
 |Â
show 2 more comments
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1018319%2finconsistent-apt-get-update-behaviour-on-official-ubuntu-aws-ami%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
cross posted here and serverfault.com/questions/904080/â¦
â Mystic
Mar 22 at 17:39
If you still hit this, can you please post complete logs of the error? Focus on just one type of error as well if you could. The W and E lines you have right now are symptoms, sometimes having to do with disks that are corrupt, etc. But we need more logs to check.
â dpb
Apr 6 at 3:36
@dpb, I'd love to post more logs, if you can tell me what you're most interested in (syslog?). One of the problems is that this is intermittent, without clear steps to reproduce (I hit it using Packer with AWS in us-west-2). I encountered this over a dozen times across multiple days with new EC2 instances each time, so I don't think it's a hardware issue on the VM).
â Mystic
Apr 12 at 22:00
next time you get it, the same place you see the
W:
andE:
entries that you pasted in above, copy the entire context and put it in a pastebin. From the command that was executed. I guess the whole packer log file. Also, please paste in the packer commands that you are running please exactly.â dpb
Apr 13 at 2:18