我已经阅读了多篇关于如何从16.04升级到18.*的文章,但似乎都对我无效。
当我进行到...
我收到了信息
目前我将/etc/update-manager/release-upgrades设置为normal。将其设置为LTS会得到相同的结果。
此外,在运行以下两个命令之后:
当然,如果我跑起来
我收到了信息
这对我来说很有道理。我在这里漏掉了什么?我能从Ubuntu Server 16.04升级到18.*吗?
更新:
我注意到现在当我运行时
我得到这个输出
跑步
我相信这可能是阻止我升级到18.*的原因。我在这一点上有些困扰。
更新:
通过我接受的答案,我成功解决了这个问题。
我还不得不清理一些无效的仓库。我遇到了一个无法连接到security.ubuntu.com的问题。为了解决这个问题,我采取了以下步骤:
取消注释以下行
我已经完成更新了。现在正在升级我的Ubuntu发行版。
当我进行到...
do-release-upgrade
我收到了信息
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
目前我将/etc/update-manager/release-upgrades设置为normal。将其设置为LTS会得到相同的结果。
此外,在运行以下两个命令之后:
sudo apt update && sudo apt upgrade
当然,如果我跑起来
do-release-upgrade -d
我收到了信息
Upgrades to the development release are only
available from the latest supported release.
这对我来说很有道理。我在这里漏掉了什么?我能从Ubuntu Server 16.04升级到18.*吗?
更新:
我注意到现在当我运行时
sudo apt update
我得到这个输出
sudo apt-get update
Hit:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://download.mono-project.com/repo/debian jessie InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:4 http://ppa.launchpad.net/ermshiperete/monodevelop/ubuntu xenial InRelease
Hit:5 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:6 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:8 http://ppa.launchpad.net/iconnor/zoneminder/ubuntu xenial InRelease
Hit:9 http://ppa.launchpad.net/jcfp/ppa/ubuntu xenial InRelease
Hit:10 http://ppa.launchpad.net/modriscoll/nzbget/ubuntu xenial InRelease
Get:7 http://download.sonarr.tv/repos/apt/debian master InRelease [13.3 kB]
Err:11 http://shell.ninthgate.se/packages/debian jessie InRelease
Could not connect to shell.ninthgate.se:80 (195.22.88.165). - connect (111: Connection refused)
Fetched 13.3 kB in 5s (2,532 B/s)
Reading package lists... Done
W: Failed to fetch http://shell.ninthgate.se/packages/debian/dists/jessie/InRelease Could not connect to shell.ninthgate.se:80 (195.22.88.165). - connect (111: Connection refused)
W: Some index files failed to download. They have been ignored, or old ones used instead.
跑步
sudo apt list --upgradable
产量
Listing... Done
libgdiplus/stable-jessie 5.6-0xamarin5+debian8b1 amd64 [upgradable from: 4.2-1ubuntu1]
N: There are 2 additional versions. Please use the '-a' switch to see them.
我相信这可能是阻止我升级到18.*的原因。我在这一点上有些困扰。
更新:
通过我接受的答案,我成功解决了这个问题。
我还不得不清理一些无效的仓库。我遇到了一个无法连接到security.ubuntu.com的问题。为了解决这个问题,我采取了以下步骤:
sudo vi /etc/gai.conf
取消注释以下行
#
# For sites which prefer IPv4 connections change the last line to
#
precedence ::ffff:0:0/96 100
我已经完成更新了。现在正在升级我的Ubuntu发行版。
Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-43-generic x86_64)
sudo apt update
命令,然后如果需要的话,执行了sudo apt upgrade
命令吗? - Organic Marbledo-release-upgrade
命令的完整输出结果。 - user535733