我最近尝试使用以下指南安装 surfshark-vpn 和 openvpn3。
https://surfshark.com/blog/how-to-set-up-a-vpn-on-linux
https://openvpn.net/cloud-docs/openvpn-3-client-for-linux/(我觉得本指南中的某些内容可能是问题所在)
但从那时起,apt
并apt-get
未能给出以下消息:
Hit:1 http://apt.pop-os.org/proprietary groovy InRelease
Ign:2 http://us.archive.ubuntu.com/ubuntu groovy InRelease
Ign:3 http://us.archive.ubuntu.com/ubuntu groovy-security InRelease
Hit:4 http://ppa.launchpad.net/system76/pop/ubuntu groovy InRelease
Ign:5 http://us.archive.ubuntu.com/ubuntu groovy-updates InRelease
Ign:6 http://us.archive.ubuntu.com/ubuntu groovy-backports InRelease
Err:7 http://us.archive.ubuntu.com/ubuntu groovy Release
404 Not Found [IP: 91.189.91.39 80]
Err:8 http://us.archive.ubuntu.com/ubuntu groovy-security Release
404 Not Found [IP: 91.189.91.39 80]
Err:9 http://us.archive.ubuntu.com/ubuntu groovy-updates Release
404 Not Found [IP: 91.189.91.39 80]
Err:10 http://us.archive.ubuntu.com/ubuntu groovy-backports Release
404 Not Found [IP: 91.189.91.39 80]
Reading package lists... Done
E: The repository 'http://us.archive.ubuntu.com/ubuntu groovy Release' does not have a Release file.
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.
E: The repository 'http://us.archive.ubuntu.com/ubuntu groovy-security Release' does not have a Release file.
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.
E: The repository 'http://us.archive.ubuntu.com/ubuntu groovy-updates Release' does not have a Release file.
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.
E: The repository 'http://us.archive.ubuntu.com/ubuntu groovy-backports Release' does not have a Release file.
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.
我尝试搜索如何解决此问题,但我发现的所有内容似乎都没有帮助。最常见的答案似乎是:
- 跑
sudo add-apt-repository -r ppa:something here
但我不知道该放什么ppa:
- 运行
ppa-purge
,但我没有该程序,并且无法安装它,因为 apt 和 apt-get 不起作用。 - 删除一行
/etc/apt/sources.list
,但看起来该文件中的所有内容都已被注释掉。 (下面将显示其内容)
有人对我有什么建议吗?我正在考虑仅备份我的文件并重新安装,但我更愿意了解如何解决此问题。
我目前使用的是 Pop!OS v20.10
这是我的sources.list
文件
## See sources.list(5) for more information, especialy
# Remember that you can only use http, ftp or file URIs
# CDROMs are managed through the apt-cdrom tool.
# deb cdrom:[Pop_OS 20.10 _Groovy Gorilla_ - Release amd64 (20210225)]/ groovy main restricted
# deb cdrom:[Pop_OS 20.10 _Groovy Gorilla_ - Release amd64 (20210225)]/ stable main restricted
# deb cdrom:[Pop_OS 20.10 _Groovy Gorilla_ - Release amd64 (20210225)]/ unstable main restricted
谢谢
答案1
我对 pop-os 不熟悉。这意味着我不知道 ubuntu 存储库到底是在哪里选择的,但我认为像 ubuntu 一样从 /etc/apt/sources.list 中选择。 ubuntu维基
您也可以使用代码源来#EOL upgrade sources.list
安装软件。对于时髦的
deb http://old-releases.ubuntu.com/ubuntu/ groovy main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ groovy-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ groovy-security main restricted universe multiverse
# Optional
deb http://old-releases.ubuntu.com/ubuntu/ groovy-backports main restricted universe multiverse
答案2
Groovy 已停产,Pop _ossources.list 接受bionic
、focal
和hirsute
代号impish
。您可以通过curl获取远程目录:
curl -sSL http://apt.pop-os.org/release/dists/ |awk -F'"' 'FNR >3 {print $2}'
示例输出:
../
bionic/
focal/
hirsute/
impish/
Pop_os 20.04 是 LTS 版本,推荐给您。
答案3
事实并非如此apt
,而且apt-get
正在失败。错误消息是由于apt update
和/或引起的apt-get update
。您应该仍然可以ppa-purge
使用apt install ppa-purge
.
删除 /etc/apt/sources.list 中的一行,但看起来该文件中的所有内容都已被注释掉。 (下面将显示其内容)
去/etc/apt/sources.list.d
。此目录包含您手动添加的存储库,这些存储库似乎在更新期间导致了问题。注释掉引起问题的文件中不必要的行或删除整个文件。