在Ubuntu14.04不能新增PPA源到apt源的問題解決方法
阿新 • • 發佈:2018-12-30
在Ubuntu14.04使用apt-get 更新Git 時,需要更新apt源,新增一個帶有最新Git的源,
如下命令:
$ sudo add-apt-repository ppa:git-core/ppa
Cannot add PPA: 'ppa:~git-core/ubuntu/ppa'.
ERROR: '~git-core' user or team does not exist.
出現不能新增PPA源的問題,那麼怎麼解決呢?
你需要export ubuntu 一些環境變數:
export http_proxy="http://username:[email protected]:port/"
export https_proxy="https://username: [email protected]:port/"
然後就可以新增PPA源了
$ sudo -E add-apt-repository ppa:git-core/ppa
出現如下:
The most current stable version of Git for Ubuntu.
For release candidates, go to https://launchpad.net/~git-core/+archive/candidate .
More info: https://launchpad.net/~git-core/+archive/ubuntu/ppa
Press [ENTER] to continue or ctrl-c to cancel adding it
提示按ENTER鍵繼續, 按下ENTER就OK了