Mar*_*tin 10 upgrade updates apt
我已经阅读了多篇文章,其中介绍了如何从 16.04 升级到 18.*。其中没有一个似乎对我有用。
当我到达
do-release-upgrade
Run Code Online (Sandbox Code Playgroud)
我收到消息
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
Run Code Online (Sandbox Code Playgroud)
目前我将/etc/update-manager/release-upgrades设置为normal将其设置为LTS 会产生相同的结果。
此外,这是在运行两者之后:
sudo apt update && sudo apt upgrade
Run Code Online (Sandbox Code Playgroud)
当然如果我跑
do-release-upgrade -d
Run Code Online (Sandbox Code Playgroud)
我收到消息
Upgrades to the development release are only
available from the latest supported release.
Run Code Online (Sandbox Code Playgroud)
这对我来说很有意义。我在这里缺少什么?我可以从 Ubuntu Server 16.04 升级到 18.* 吗?
更新
我现在跑步的时候注意到了
sudo apt update
Run Code Online (Sandbox Code Playgroud)
我得到这个输出
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.
Run Code Online (Sandbox Code Playgroud)
跑步
sudo apt list --upgradable
Run Code Online (Sandbox Code Playgroud)
产量
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.
Run Code Online (Sandbox Code Playgroud)
我相信这可能是阻止我升级到 18.* 的原因。在这一点上我有点卡住了。
更新
能够通过我接受的答案解决这个问题。
我还必须清理一些已死的存储库。我也遇到了无法连接到 security.ubuntu.com 的问题。为了解决这个问题,我做了以下事情:
sudo vi /etc/gai.conf
Run Code Online (Sandbox Code Playgroud)
取消注释以下行
#
# For sites which prefer IPv4 connections change the last line to
#
precedence ::ffff:0:0/96 100
Run Code Online (Sandbox Code Playgroud)
我能够完成更新。现在升级我的 Ubuntu 发行版
Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-43-generic x86_64)
Run Code Online (Sandbox Code Playgroud)
小智 18
我遇到过同样的问题。我做了:
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get dist-upgrade
sudo do-release-upgrade
Run Code Online (Sandbox Code Playgroud)
希望这可以帮助!
Lar*_*ars 11
万一有人无法用接受的答案解决这个问题。我有一个依赖关系已损坏的第三方存储库,它通过以下方式显示sudo apt list --upgradable- 有问题的包确实需要另一个包,但由于打包程序的错误而无法使用。
我通过禁用所有第三方存储库(以 root 身份)解决了这个问题:
cd /etc/apt/sources.list.d/
for i in *.list; do
mv $i ${i}.disabled
done
Run Code Online (Sandbox Code Playgroud)
然后清理更新状态:
apt clean
apt autoclean
Run Code Online (Sandbox Code Playgroud)
并重新启动更新过程:
do-release-upgrade
Run Code Online (Sandbox Code Playgroud)