在代理服务器后面的计算机上(适当配置我希望),从 Ubuntu 18.04 LTS 升级到 20.04 再升级到 22.04 后:
- 从官方 Ubuntu 存储库更新/升级工作正常,因此我认为网络配置没有问题
- 但是更新任何非官方 PPA 总是会出现错误,见下文。
> sudo apt update
Ign:1 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu jammy InRelease
Ign:2 https://download.owncloud.com/desktop/ownCloud/stable/latest/linux/Ubuntu_22.04 InRelease
Hit:3 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Get:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB]
Hit:6 http://archive.ubuntu.com/ubuntu jammy-security InRelease
Hit:7 http://dl.google.com/linux/chrome/deb stable InRelease
Ign:1 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu jammy InRelease
Ign:2 https://download.owncloud.com/desktop/ownCloud/stable/latest/linux/Ubuntu_22.04 InRelease
Ign:1 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu jammy InRelease
Ign:2 https://download.owncloud.com/desktop/ownCloud/stable/latest/linux/Ubuntu_22.04 InRelease
Err:1 https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu jammy InRelease
Could not handshake: An unexpected TLS packet was received. [IP: 134.226.56.7 8080]
Err:2 https://download.owncloud.com/desktop/ownCloud/stable/latest/linux/Ubuntu_22.04 InRelease
Could not handshake: An unexpected TLS packet was received. [IP: 134.226.56.7 8080]
Fetched 109 kB in 7s (15.3 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
3 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu/dists/jammy/InRelease Could not handshake: An unexpected TLS packet was received. [IP: 134.226.56.7 8080]
W: Failed to fetch https://download.owncloud.com/desktop/ownCloud/stable/latest/linux/Ubuntu_22.04/InRelease Could not handshake: An unexpected TLS packet was received. [IP: 134.226.56.7 8080]
W: Some index files failed to download. They have been ignored, or old ones used instead.
这看起来像是网络错误,对吧?如果是这样,为什么只有非官方 PPA 才会发生这种情况?有什么建议可以解决这个问题吗?
答案1
感谢@nobody 的评论,将在中发现的失败的非官方 PPA 地址中的所有https
替换为解决了大多数存储库的问题。http
/etc/apt/sources.list.d/xxx
这种方法至少适用于三种不同的 PPA,但 owncloud PPA 仍然会出错。可能存在具体错误与他们的服务器。