ubuntu can't add add-apt-

来源:互联网 发布:网络电子游戏平台 编辑:程序博客网 时间:2024/05/16 00:27

environment

uname -a

Linux jerry-xia-pc 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

appearance

add-apt-repository ppa:webupd8team/y-ppa-managerCannot add PPA: 'ppa:webupd8team/y-ppa-manager'.Please check that the PPA name or format is correct.

solution

You need to export your proxy environment variables using

export http_proxy="http://username:password@host:port/"export https_proxy="https://username:password@host:port/"

and then tell sudo to use them using:

 sudo -E add-apt-repository ppa:webupd8team/y-ppa-manager


0 0