首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ubuntu20.04: apt更新给wireguard带来错误(2)

Ubuntu20.04: apt更新给wireguard带来错误(2)
EN

Ask Ubuntu用户
提问于 2020-10-22 15:08:06
回答 1查看 4.6K关注 0票数 1

我的错误和Apt更新给Wireguard带来错误描述的系统相同,但是由于某些原因,给出的解决方案并不适用于我。

bash外壳输出:

代码语言:javascript
复制
drusakov@ldn-dr:~$ sudo apt-add-repository --remove ppa:wireguard/wireguard
Cannot add PPA: 'ppa:~wireguard/ubuntu/wireguard'.
The team named '~wireguard' has no PPA named 'ubuntu/wireguard'
Please choose from the following available PPAs:

drusakov@ldn-dr:~$ sudo apt-get update
Hit:1 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease
Err:2 http://ppa.launchpad.net/wireguard/wireguard/ubuntu focal InRelease                                                                                                                          
  403  Forbidden [IP: 2001:67c:1560:8008::15 80]
Hit:3 http://packages.cloud.google.com/apt cloud-sdk InRelease                                                                                                                                     
Hit:4 http://archive.ubuntu.com/ubuntu focal InRelease                                                                                                        
Hit:5 http://dl.google.com/linux/chrome/deb stable InRelease                                          
Hit:6 http://archive.ubuntu.com/ubuntu focal-updates InRelease                  
Hit:7 http://archive.ubuntu.com/ubuntu focal-backports InRelease                
Hit:8 https://download.sublimetext.com apt/stable/ InRelease                    
Hit:9 http://archive.ubuntu.com/ubuntu focal-security InRelease
Reading package lists... Done
E: Failed to fetch http://ppa.launchpad.net/wireguard/wireguard/ubuntu/dists/focal/InRelease  403  Forbidden [IP: 2001:67c:1560:8008::15 80]
E: The repository 'http://ppa.launchpad.net/wireguard/wireguard/ubuntu focal InRelease' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

drusakov@ldn-dr:~$ sudo apt-get install wireguard
Reading package lists... Done
Building dependency tree       
Reading state information... Done
wireguard is already the newest version (1.0.20200513-1~20.04.2).
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

drusakov@ldn-dr:~$ lsb_release -r
Release:    20.04

drusakov@ldn-dr:~$ uname -a
Linux ldn-dr 5.4.0-52-generic #57-Ubuntu SMP Thu Oct 15 10:57:00 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

drusakov@ldn-dr:~$ cat /etc/issue
Ubuntu 20.04.1 LTS \n \l
EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2020-10-22 15:53:17

您需要手动删除wireguard源列表。

代码语言:javascript
复制
sudo rm -f /etc/apt/sources.list.d/wireguard*
票数 6
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1285990

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档