此命令:
sudo add-apt-repository ppa:upubuntu-com/network -y
返回:
Cannot add PPA: ''This PPA does not support focal''.
然后,我将跳过对“add-apt-repository”基本部分的回答和过度回答,直接进入正题。
此命令:
sudo gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv A5D712AEE06E6293
sudo gpg -a --export A5D712AEE06E6293 | sudo apt-key add -
sudo bash -c "echo -e 'deb http://ppa.launchpad.net/upubuntu-com/network/ubuntu wily main\ndeb-src http://ppa.launchpad.net/upubuntu-com/network/ubuntu wily main' > /etc/apt/sources.list.d/upubuntu-com-ubuntu-network-wily.list"
返回正确的输出但是当我去运行时:
sudo apt-get update
同样返回错误:
W: GPG error: http://ppa.launchpad.net/upubuntu-com/network/ubuntu wily Release: The following signatures were invalid: DED04C8CBB517AE45B073F12A5D712AEE06E6293
E: The repository 'http://ppa.launchpad.net/upubuntu-com/network/ubuntu wily Release' is not 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.
- - - - - - - - - - - - - - - - - - - - 更新 - - - - - - - - - - - - - - - - - - - -
存储库:
deb [ trusted=yes allow-insecure=yes allow-weak=yes allow-downgrade-to-insecure=yes check-valid-until=no ] http://ppa.launchpad.net/upubuntu-com/network/ubuntu wily main
deb-src [ trusted=yes allow-insecure=yes allow-weak=yes allow-downgrade-to-insecure=yes check-valid-until=no ] http://ppa.launchpad.net/upubuntu-com/network/ubuntu wily main
使用以下命令:
sudo apt-get update --allow-unauthenticated --allow-insecure-repositories
没有效果,但错误信息变短了:
W: GPG error: http://ppa.launchpad.net/upubuntu-com/network/ubuntu wily Release: The following signatures were invalid: DED04C8CBB517AE45B073F12A5D712AEE06E6293
答案1
这电力购买协议 (PPA) 存在问题已过时,其最新支持的 Ubuntu 版本是“wily”(15.10)。您不应在任何当前支持的 Ubuntu 版本上使用此类 PPA。
也可以看看:如果存储库/PPA 没有 Release 文件,我该怎么办?,尤其是N0rbert 的回答可能会对你有帮助。
答案2
我从另一个角度看待这个问题。
在第一种情况下:
deb http://ppa.launchpad.net/upubuntu-com/network/ubuntu wily main
deb-src http://ppa.launchpad.net/upubuntu-com/network/ubuntu wily main
命令:
sudo apt-get update > /dev/null
echo $?
返回错误代码100
In the second case:
deb [trusted=yes] http://ppa.launchpad.net/upubuntu-com/network/ubuntu wily main
deb-src [trusted=yes] http://ppa.launchpad.net/upubuntu-com/network/ubuntu wily main
令我惊讶的是,命令:
sudo apt-get update > /dev/null
echo $?
给我0
代码。然后我怀疑并尝试了
sudo apt-get install ipscan
命令确实有效!