Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

command `apt-get -y update` is failed in bitbuket pipeline

Bill November 4, 2018

We run with below command in bitbucket pipeline for a while

```

apt-get -y update

```

 

But today, we got error

```

E: There were unauthenticated packages and -y was used without --allow-unauthenticated

```

 

Then we have to add option `--allow-unauthenticated` to get a successful update.

 

But this is not we expected. 

I did a test in `Ubuntu 16.04.4 LTS` with `apt-get -y update`. I don’t need to add option `--allow-unauthenticated`

 

So anything changed in Bitbucket cloud with pipeline? can we get some explanations for this issue from Atlassian/Bitbucket support team?

 

Because this issue, it impacted all our build jobs. We don't want to add `--allow-unauthenticated`  for each build job.

2 answers

0 votes
Bill November 7, 2018

it is weird. 

Didn't change anything, it works in the afternoon. 

0 votes
Steven Vaccarella
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 6, 2018

Hi Bill,

Which docker image are you using for your pipeline? I tried a few different images and it is working for me.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Bitbucket Events