Score:0

Cannot add PPA deadsnakes to ubuntu 18.04 behind company proxy

to flag

When I try to add ppa repository to Ubuntu within my company network

sudo add-apt-repository ppa:deadsnakes/ppa 

I get

Cannot add PPA: 'ppa:~deadsnakes/ubuntu/ppa'.
ERROR: '~deadsnakes' user or team does not exist

the same command works outside the company network so I suppose it is a matter of proxy settings. For apt get I set up a config file with

Acquire {
  HTTP::proxy "http://123.456.789.10:81/";
  HTTPS::proxy "http://123.456.789.10:81/";
}

and with that all the sudo apt install work also within the company network.

Following https://stackoverflow.com/questions/75557686/cannot-add-ppa-deadsnakes-to-ubuntu-18-04-behind-company-proxy I tried: sudo apt-get install --reinstall ca-certificates set up an environment variable with export HTTPS_PROXY=http://@123.456.789.10:81 then run sudo -E add-apt-repository ppa:ppaname/ppa but I get the same error

Score:0
pl flag

Alternatively just put the following two lines in a file in /etc/apt/sources.list.d/ such as /etc/apt/sources.list.d/deadsnakes.list

deb https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu bionic main 
deb-src https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu bionic main 

Then add the gpg key.

apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys F23C5A6CF475977595C89F51BA6932366A755776
Eliseo Di Folco avatar
to flag
apt-key adv ... returns gpg: keyserver receive failed: No data
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.