Can't upgrade to Focal on WSL1 due to libc6 postinst
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu WSL |
In Progress
|
Medium
|
Unassigned | ||
glibc (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
When trying to upgrade from Eoan to Focal in a WSL1 environment I got:
"
rafaeldtinoco@
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
console-setup keyboard-
The following packages will be upgraded:
console-setup keyboard-
4 upgraded, 0 newly installed, 0 to remove and 915 not upgraded.
15 not fully installed or removed.
Need to get 0 B/6,599 kB of archives.
After this operation, 2,348 kB disk space will be freed.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
libkmod: ERROR ../libkmod/
Error: could not get list of modules: No such file or directory
Setting up libc6:amd64 (2.31-0ubuntu7) ...
Checking for services that may need to be restarted...
Checking init scripts...
Nothing to restart.
sleep: cannot read realtime clock: Invalid argument
dpkg: error processing package libc6:amd64 (--configure):
installed libc6:amd64 package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
libc6:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
"
And I could only mitigate that by editing:
/var/lib/
and commented the line
# set -e
so $ apt-get -f install
could continue.
That happens because wsl does not have ubuntu kernel and directory structure is different.
Changed in glibc (Ubuntu): | |
status: | New → Triaged |
Changed in wsl (Ubuntu): | |
status: | New → Triaged |
Changed in glibc (Ubuntu): | |
importance: | Undecided → Low |
Changed in wsl (Ubuntu): | |
importance: | Undecided → Medium |
Changed in glibc (Ubuntu): | |
importance: | Low → Medium |
tags: | added: rls-ff-incoming |
affects: | wsl (Ubuntu) → ubuntuwsl |
summary: |
- [focal][wsl] can't upgrade from eoan to focal due to libc6 postinst + Can't upgrade to Focal on WSL1 due to libc6 postinst |
sleep: cannot read realtime clock: Invalid argument
Please escalate to WSL upstream, as the Windows kernel is not providing the kernel interface that is needed to run focal.
In practice this means that focal is not yet supported on wsl1.
I expect things to work in wsl2.