-1

Whenever I try to add PPA, I am getting and error. Below is one such case.

sudo add-apt-repository ppa:webupd8team/sublime-text-3  
Cannot add PPA: 'ppa:~webupd8team/ubuntu/sublime-text-3'.
ERROR: '~webupd8team' user or team does not exist.

I am using an institution HTTP proxy. I have tried setting HTTP_PROXY and ALL_PROXY in the environment without any success. Also, I have tried out the other solutions in other questions with the same result.

Somnath Rakshit
  • 151
  • 1
  • 11

1 Answers1

0

Try to add this PPA manually with

cat <<EOF | sudo tee /etc/apt/sources.list.d/sublime.list
deb http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu artful main 
deb-src http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu artful main 

EOF

and add its GPG key with

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886

or

sudo gpg --keyserver pgpkeys.mit.edu --recv-key  EEA14886
sudo gpg -a --export EEA14886 | sudo apt-key add -
sudo apt-get update

or (with your proxy address and its port in the command)

sudo apt-key adv --keyserver keyserver.ubuntu.com \
     --keyserver-options http-proxy=http://proxy_address:proxy_port \
     --recv-keys EEA14886

then

sudo apt-get update

and so on.

Note: this answer is based on these : first, second and third.

Update: try to get and install the package manually

cd /tmp
wget http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu/pool/main/s/sublime-text-installer/sublime-text-installer_3126-2~webupd8~1_all.deb
sudo apt-get install ./sublime-text-installer_3126-2~webupd8~1_all.deb
N0rbert
  • 99,918