I facing this issue while doing just
apt-add-repository -y 'ppa:hvr/ghc'
i.e. no `/ubungu` nor tilde. This is on Ubuntu 18.04, so maybe it's old apt-add-repository which does some rewriting?
E.g. in fresh buildpack-deps:bionic Docker container this fails 100% of the time
apt-get update apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr curl git software-properties-common libtinfo5 apt-add-repository -y 'ppa:hvr/ghc'
Either with JSONDecodeError or with "Cannot add PPA: 'ppa:~hvr/ubuntu/ghc'."
EDIT: seems to work on focal.
I facing this issue while doing just
apt- add-repository -y 'ppa:hvr/ghc'
i.e. no `/ubungu` nor tilde. This is on Ubuntu 18.04, so maybe it's old apt-add-repository which does some rewriting?
E.g. in fresh buildpack- deps:bionic Docker container this fails 100% of the time
apt-get update recommends gnupg ca-certificates dirmngr curl git software- properties- common libtinfo5 add-repository -y 'ppa:hvr/ghc'
apt-get install -y --no-install-
apt-
Either with JSONDecodeError or with "Cannot add PPA: 'ppa:~hvr/ ubuntu/ ghc'."
EDIT: seems to work on focal.