无法从 17.10 更新到 18.04,因为存储库没有 Release 文件

无法从 17.10 更新到 18.04,因为存储库没有 Release 文件

当我尝试从 Ubuntu 17.10 更新到 18.04 时,收到以下错误消息:

E:The repository 'http://ppa.launchpad.net/jonathonf/backports/ubuntu artful Release' does not have a Release file.,
W:Updating from such a repository can't be done securely,
and is therefore disabled by default.,
W:See apt-secure(8) manpage for repository creation and user configuration details.,
W:Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:49 and /etc/apt/sources.list.d/vscode.list:3,
W:Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:49 and /etc/apt/sources.list.d/vscode.list:3,
W:Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:49 and /etc/apt/sources.list.d/vscode.list:3,
W:Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:49 and /etc/apt/sources.list.d/vscode.list:3,
W:Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:49 and /etc/apt/sources.list.d/vscode.list:3,
W:Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:49 and /etc/apt/sources.list.d/vscode.list:3

我如何继续升级?

答案1

PPA 发现http://ppa.launchpad.net/jonathonf/backports/ubuntu不是完整的 Ubuntu 存储库,而是一个 PPA。在这种情况下,它(目前)不包含任何 bionic 软件包。

您想使用包含升级所需的所有软件包的官方存储库或镜像。

看看你的/etc/apt/sources.list。是否有链接的常规存储库?

对于 Ubuntu 17.10,你应该看到类似

deb http://de.archive.ubuntu.com/ubuntu/ artful main restricted
deb http://de.archive.ubuntu.com/ubuntu/ artful-updates main restricted
deb http://de.archive.ubuntu.com/ubuntu/ artful multiverse
deb http://de.archive.ubuntu.com/ubuntu/ artful-updates multiverse
deb http://de.archive.ubuntu.com/ubuntu/ artful-backports main restricted universe multiverse
...

以及相应的deb-src条目。

其中可能还有更多*.list文件/etc/apt/sources.list.d/- 您可能必须手动禁用 PPA 条目。

您打算如何升级?他们do-release-upgrade会自动禁用 PPA 条目。截至撰写本文时,官方版本尚未发布。因此,do-release-upgrade目前找不到当前的测试版状态版本。要么等到他们发布 18.04,要么使用do-release-upgrade -d并遵循 18.04 的当前状态。

相关内容