Cannot add PPA: 'ppa:'. Please check that the PPA name or format is correct

来源:互联网 发布:粤语歌曲谐音软件 编辑:程序博客网 时间:2024/06/04 01:27

使用了网络代理的情况下,出现了这样的问题,首先使用了网络上提到的两种方法:

发生这种错误主要有两种原因。一种是您电脑中的CA证书已经损坏,或者是您的网络设置了一个代理

  • 重新安装一下CA证书:
    sudo apt-get install --reinstall ca-certificates

  • 如果上面的命令不起作用,可能是网络使用了一个代理设置。要略过代理设置,使用sudo命令并加上参数E,就像下面这样:
    sudo -E add-apt-repository ppa:linrunner/tlp
    -E的意思是绕过代理

但是没有起什么作用,其实原因分析的是对的,需要修改第二步操作为:

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源]

即可

原创粉丝点击