大网数据广告活动
服务器运维问答

Ubuntu 18.04.1, cannot add PPA wireguard/ubuntu/wireguard

· 52CE 我爱测

I'm trying to install WireGurad on my fresh vanilla Ubuntu 18.04.1 machine, by following the instructions from WireGuard website . But when I try to execute very first command: sudo add-apt-repository ppa:wireguard/wireguard I'm …

问题原文

原帖链接 · Aleksandar Pesic · CC BY-SA 4.0

I'm trying to install WireGurad on my fresh vanilla Ubuntu 18.04.1 machine, by following the instructions from WireGuard website. But when I try to execute very first command:

sudo add-apt-repository ppa:wireguard/wireguard

I'm getting the following error:

Cannot add PPA: 'ppa:~wireguard/ubuntu/wireguard'.
ERROR: '~wireguard' user or team does not exist.

Although there is WireGuard page at launchpad.net: https://launchpad.net/~wireguard/+archive/ubuntu/wireguard.

Any suggestion on how to install it?

Thanks!

UPDATE: The problem was in proxy settings (as the link from the accepted answer suggests). After exporting HTTP_PROXY and HTTPS_PROXY environment variables, everything works.

已采纳解答

原帖链接 · valiano · CC BY-SA 4.0

As a workaround, you could manually add the following to your /etc/apt/sources.list:

deb http://ppa.launchpad.net/wireguard/wireguard/ubuntu bionic main 
deb-src http://ppa.launchpad.net/wireguard/wireguard/ubuntu bionic main 

And then sudo apt-get update.

You could see these steps in the WireGuard Launchpad page - reveal by expanding "Technical details about this PPA" and picking "Bionic 18.04" in the drop down.

The following post suggests that this error from add-apt-repository may be due to apt proxy settings, and gives a possible fix: Cannot add PPA - “user or team does not exist”.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-01-13)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。