因此,我的系统运行良好,直到昨晚我想设置一个旧网络摄像头。我执行了 sudo apt-get update 并得到了以下信息:
Fetched 1,475 B in 3min 25s (7 B/s)
Reading package lists... Done
W: The repository 'http://security.ubuntu.com/ubuntu yakkety-security Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://ca.archive.ubuntu.com/ubuntu yakkety Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://download.opensuse.org/repositories/home:/jgeboski/xUbuntu_16.10 Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 12C6ADA61C85BB5E
W: The repository 'http://download.opensuse.org/repositories/home:/jgeboski/xUbuntu_16.10 Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://ca.archive.ubuntu.com/ubuntu yakkety-updates Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://ca.archive.ubuntu.com/ubuntu yakkety-backports Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://ppa.launchpad.net/eugenesan/ppa/ubuntu yakkety Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
并且 sudo apt-get install 任何命令都会产生
E: Package 'program' has no installation candidate
我怀疑我遇到这个问题是因为我使用的是 Ubuntu 16.10。如果不是,我想知道如何修复它,因为我真的很喜欢我的系统。否则,我会考虑安装 16.04 或 17.10,但我也想知道哪一个更好,以及是否有一种安装方法不会丢失我的所有程序和内容。其中一些安装起来相当令人沮丧,我真的需要它们。
谢谢!
答案1
您的问题是,正如@Organic Marble 所说,yakkety (16.10) 是一个“停产”版本。
要解决您的问题,您需要升级到另一个“停产”版本,即 zesty (17.04)。然后,您必须从后者升级到 artful (17.10)。
我的回答受到了启发参考。其中,@kap 为我们提供了一种快速解决的方法,因为他的问题已被标记为重复。在此,我还要感谢@Sidepipe - 阅读他的回答和评论 -。
我在虚拟机中测试了两次 - 使用 virtualbox - 并且成功了。
然后,我将它应用到我的主机上,也成功了。我不得不说,这种方法无法修复你的“损坏的 ppa”。你必须为 artful 版本找到正确的 ppa。
我不会解释一切。我相信你会自己找到答案,StackExchange或网络上的其他地方。
所有操作都必须以 root 身份或通过 sudo 完成。
要检查您的版本,请执行以下操作:$ lsb_release -a
或$ cat /etc/os-release
好了,我们必须分开了。
I) 从“寿命终止” yakkety (16.10) 升级到“寿命终止” zesty (17.04)
- 修复 /etc/apt/sources.list.d
# update-manager
- 取消选中每个 ppa
- 下载压缩包
- 验证包真实性 - 同一 URL 上的 gpg 文件
- 提取档案 - 并修改以下文件
# vi ./DistUgradeController.py"
- 更改每个“archive.ubuntu.com”==>“old-releases.ubuntu.com”
- 更改每个“security.ubuntu.com”==>“old-releases.ubuntu.com”
# vi ./mirrors.cfg
- 将“ubuntu/”附加到每个“old-releases.ubuntu.com/”
- /etc/apt/sources.list
- 更改每个“fr.archive.ubuntu.com”==>“old-releases.ubuntu.com”
- 更改每个“security.ubuntu.com”==>“old-releases.ubuntu.com”
# apt-get update
# apt-get upgrade
# apt-get dist-upgrade
# ./zesty --mode=server --frontend=DistUpgradeViewText
# reboot
# apt-get update
- 有问题,请参阅下一步 -- 删除 /etc/apt/sources.list 中的重复项
# apt-get update
# apt-get upgrade
# apt-get dist-upgrade
# apt-get autoremove
# apt-get autoclean
# reboot
II) 从“生命终结”的热情(17.04)升级到艺术(17.10)
# do-release-upgrade
# reboot
# apt-get update
# apt-get upgrade
# apt-get dist-upgrade
# apt-get autoremove
# apt-get autoclean
# reboot
答案2
你的怀疑是正确的!16.10 于去年夏天终止使用,不再受支持。
您可能仍可以升级到 17.10(17.04 也已停产),但我对此不确定。升级路径并非永远有效。
18.04 将在几个月后发布,并且将成为长期支持版本。