无法添加任何 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.

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

我使用软件中心添加了 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.

输出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.

如何解决这个问题以及导致该问题的原因是什么?

提前致谢。

操作系统:Ubuntu 13.10

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

答案1

除了配置代理之外,还要告诉 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

使用用户名和密码:

export https_proxy=<username>:<password>@<proxy>:<port>

答案2

尝试

sudo apt-get install --reinstall ca-certificates

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

相关内容