Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't add apt repo on ubuntu 22:04 #73

Closed
mcueto opened this issue Aug 1, 2022 · 4 comments
Closed

Can't add apt repo on ubuntu 22:04 #73

mcueto opened this issue Aug 1, 2022 · 4 comments

Comments

@mcueto
Copy link

mcueto commented Aug 1, 2022

Describe the bug
Hi guys, i was trying to add gum to an ubuntu:22.04 Dockerfile and have problems adding the repo to the list, so i was wondering if the apt repository is working at all(?).

FROM ubuntu:22.04

RUN apt update
RUN apt install -y software-properties-common

RUN add-apt-repository -y https://repo.charm.sh/apt/
RUN apt update
RUN apt install -y gum

To Reproduce
Steps to reproduce the behavior:

  1. Add the code above inside a Dockerfile that uses docker:22.04 as the base image
  2. Build the image
  3. See 404 not found error

Expected behavior
Should be able of installing gum using the apt repo as a source.

Screenshots
image

Desktop (please complete the following information):

  • OS: Ubuntu
  • Browser: Doesn't apply
  • Version: 22.04
@caarlos0
Copy link
Member

caarlos0 commented Aug 2, 2022

can confirm, and doing:

FROM ubuntu
RUN echo 'deb [trusted=yes] https://repo.charm.sh/apt/ /' | tee /etc/apt/sources.list.d/charm.list
RUN apt update
RUN apt install -y gum

I get certificate errors instead.

@aymanbagabas I don't have access to the gpg bit in gemfury's config, could you take a look?

@caarlos0
Copy link
Member

caarlos0 commented Aug 2, 2022

ahh, just remembered, need to install ca-certificates too.

@mcueto this works:

FROM ubuntu:22.04

RUN apt update
RUN apt install ca-certificates -y

RUN echo 'deb [trusted=yes] https://repo.charm.sh/apt/ /' | tee /etc/apt/sources.list.d/charm.list
RUN apt update

RUN apt install -y gum

@caarlos0
Copy link
Member

caarlos0 commented Aug 2, 2022

so, not a bug. closing

@caarlos0 caarlos0 closed this as completed Aug 2, 2022
@mcueto
Copy link
Author

mcueto commented Aug 2, 2022

Thanks for the response, it can be used as you pointed out, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants