无法添加任何 PPA

nit*_*hch 7 ppa

我最近尝试从这个网站添加 PPA 。我是sudo add-apt-repository ppa:canonical-qt5-edgers/qt5-proper从终端做的。我收到一条错误消息

Cannot add PPA: 'ppa:canonical-qt5-edgers/qt5-proper'.
Please check that the PPA name or format is correct.
Run Code Online (Sandbox Code Playgroud)

正如其他类似问题中所建议的那样,我对互联网连接没有任何问题,因为apt-get install它按预期工作。这甚至不是 PPA 特定的问题,我也无法添加其他 PPA。 这个问题说我必须格式化整个硬盘才能解决这个问题。我绝对不能那样做。这个bug还没有解决吗?

我使用软件中心添加了 PPA 行。当它更新缓存时,它会出现一个错误说

W:GPG error: http://ppa.launchpad.net saucy Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F141B5F0C7122F9B, W:Failed to fetch cdrom://Ubuntu 13.04 _Raring Ringtail_ - Release i386 (20130424)/dists/raring/main/binary-i386/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
, W:Failed to fetch cdrom://Ubuntu 13.04 _Raring Ringtail_ - Release i386 (20130424)/dists/raring/restricted/binary-i386/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
, E:Some index files failed to download. They have been ignored, or old ones used instead.
Run Code Online (Sandbox Code Playgroud)

输出 sudo add-apt-repository ppa:canonical-qt5-edgers/qt5-proper

Cannot add PPA: 'ppa:canonical-qt5-edgers/qt5-proper'.
Please check that the PPA name or format is correct.
Run Code Online (Sandbox Code Playgroud)

如何解决这个问题,这个问题的原因是什么?

提前致谢。

操作系统:Ubuntu 13.10

编辑后:在编辑之前,问题有 Ubuntu SDK 的 PPA。发布此内容后,我意识到 Ubuntu SDK 位于 Ubuntu 13.10 的存储库中。只是想,这可能就是我不能添加 PPA 的原因。我尝试了下一个 PPA,但出现了同样的一系列错误。

αғs*_*нιη 2

除了配置代理之外,还告诉 sudo 考虑带有标志的环境-E

export http_proxy=http://<proxy>:<port>
export https_proxy=http://<proxy>:<port>
sudo -E apt-add-repository ppa:canonical-qt5-edgers/qt5-proper
Run Code Online (Sandbox Code Playgroud)

使用用户名和密码:

export https_proxy=<username>:<password>@<proxy>:<port>
Run Code Online (Sandbox Code Playgroud)


jas*_*eem 0

尝试

sudo apt-get install --reinstall ca-certificates
Run Code Online (Sandbox Code Playgroud)

更多信息请访问 http://www.webupd8.org/2014/03/fix-cannot-add-ppa-please-check-that.html

  • 这不起作用 (2认同)