google-research / google-research/circuit_training

Build fail maybe because of firewall (add-apt-repository)

Open
#67 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.7k
Forks
274
PR merge metrics
No merged PRs in 30d

Description

In my company environment, we have to use proxy.

So I had to modify the ubuntu_circuit_training file like this.

~~~
APT_COMMAND="apt-get -o Acquire::Retries=10 -o Acquire::http::Proxy="http://companyproxyip:8080" -o Acquire::https::Pr
oxy="http://companyproxyip:8080" -y"
~~~

It made me to run this line successfully.

~~~
# Installs basics including add-apt.
RUN ${APT_COMMAND} update && ${APT_COMMAND} install -y --no-install-recommends \
software-properties-common \
curl \
tmux \
vim \
less
~~~

But I can't run this repository stuff.
~~~
# Adds repository to pull versions of python from.
RUN add-apt-repository ppa:deadsnakes/ppa
~~~

I met this error message
~~~
> [ 4/17] RUN add-apt-repository ppa:deadsnakes/ppa:
2.855 Cannot add PPA: 'ppa:~deadsnakes/ubuntu/ppa'.
2.855 ERROR: '~deadsnakes' user or team does not exist.
~~~

I figured out that was related with proxy. I tried several way like as ENV command(http_proxy variable) or COPY command(/etc/apt copy), but not successful till now.
Is there anyone who solved this issue?

I'm running on Ubuntu 20.04 env.

Thank you in advance.

Contributor guide

Open the contributing guide

Research direction

Start with the ubuntu_circuit_training file and reproduce the Docker build at the add-apt-repository ppa:deadsnakes/ppa step using the reported Ubuntu 20.04 proxy environment. Done means the repository can be added and the build proceeds successfully when a proxy is required.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, ubuntu
Domain
build-system, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.