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

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

  发生这种错误主要有两种原因。一种是您电脑中的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源]

  即可
转自:https://blog.csdn.net/guizaijianchic/article/details/78421399

posted @ 2022-08-08 18:06  白菜没我白  阅读(424)  评论(0编辑  收藏  举报