由于授权问题,无法从 16.04 升级到 18.04.1

Ben*_*aye 5 upgrade 16.04 18.04

我在工作中运行 Ubuntu 16.04,并想升级到 18.04。

$ uname -a
Linux superbock 4.15.0-34-generic #37~16.04.1-Ubuntu SMP Tue Aug 28 10:44:06  UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)

当我得到如下升级窗口时:

在此处输入图片说明

我点击Upgrade...但没有任何反应。

我尝试使用在命令行上运行更新管理器

$ update-manager
Run Code Online (Sandbox Code Playgroud)

当我单击时Update...,它在控制台上显示

检查授权时出错 com.ubuntu.release-upgrader.release-upgrade: GDBus.Error:org.freedesktop.DBus.Error.NoReply: 消息接收者与消息总线断开连接,没有回复

我也尝试使用do-release-upgrade命令:

$ sudo apt update
$ sudo apt upgrade
$ sudo apt dist-upgrade
$ sudo apt-get autoremove
$ sudo apt install update-manager-core
$ sudo do-release-upgrade
Run Code Online (Sandbox Code Playgroud)

我得到以下信息:

Checking for a new Ubuntu release
Get:1 Upgrade tool signature [819 B]                                                                                                                               
Get:2 Upgrade tool [1,258 kB]                                                                                                                                      
Fetched 1,259 kB in 0s (0 B/s)                                                                                                                                     
authenticate 'bionic.tar.gz' against 'bionic.tar.gz.gpg' 
gpg exited 1
Debug information: 


gpg: Signature made Wed 29 Aug 2018 19:33:13 BST using RSA key ID C0B21F32
gpg: /tmp/ubuntu-release-upgrader-ahhadl1h/trustdb.gpg: trustdb created
gpg: BAD signature from "Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>"

Authentication failed
Authenticating the upgrade failed. There may be a problem with the network or with the server. 
Run Code Online (Sandbox Code Playgroud)

不知道发生了什么?有人可以建议如何进行排序吗?

Ben*_*aye 4

感谢特伦斯在我原来的帖子中的评论,我设法修复了它。问题是gb.archive.ubuntu.com无法访问。

它是在此处配置的(下拉菜单显示“ Server for United Kingdom ”): 在此输入图像描述

它不允许我将其更改为主服务器。即使以 root 身份运行update-manager,所以我也必须在/etc/apt/sources.list文件中手动执行此操作。

一旦替换了更新管理器中所有出现的http://gb.archive.ubuntu.comby ,现在就设置为主服务器下载源:http://archive.ubuntu.com/etc/apt/sources.list

在此输入图像描述

之后,更新将继续进行,没有任何问题。