I have had terrible luck trying to upgrade Ubuntu 16.04 LTS (xenial) to 17.10 (artful) in Windows Subsystem for Linux (WSL). Here is an example of my best attempt:
Starting from a fresh install of Ubuntu on Windows 10 Pro (build 16299.248), I did the following:
$ sudo vim /etc/update-manager/release-upgrades # set Prompt=normal
$ sudo apt update
$ sudo apt install update-manager-core
$ sudo env RELEASE_UPGRADER_NO_SCREEN=1 do-release-upgrade
The full output is here, but this is the error I got:
0% [Connecting to archive.ubuntu.com]
http: ../sysdeps/posix/getaddrinfo.c:2603: getaddrinfo: Assertion `IN6_IS_ADDR_V4MAPPED (sin6->sin6_addr.s6_addr32)' failed.
I get the same error sometimes when running sudo apt update
:
$ sudo apt update
0% [Working]http: ../sysdeps/posix/getaddrinfo.c:2603: getaddrinfo: Assertion `IN6_IS_ADDR_V4MAPPED (sin6->sin6_addr.s6_addr32)' failed.
Reading package lists... Done
E: Method http has died unexpectedly!
E: Sub-process http received signal 6.
$ sudo apt update
Hit:1 http://security.ubuntu.com/ubuntu artful-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu artful InRelease
Hit:3 http://archive.ubuntu.com/ubuntu artful-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu artful-backports InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
388 packages can be upgraded. Run 'apt list --upgradable' to see them.
But it's intermittent, apparently random. I can re-run sudo apt update
until it works, but it seems that do-release-upgrade
is too long and complicated. Sometimes it goes farther than others, but it always dies at some point, with that getaddrinfo
error (and a lot of stack barf).
(Also note that something has changed after the upgrade attempt, because apt
is looking at artful
stuff now.)
I have tried a lot of advice on the topic with no improvement. (Notably, I seem unable to disable IPv6.) But there are not so many answers that I think everyone is having this problem.
Is this upgrade even possible? And how?