[Bug 1871240] Re: [focal][wsl] can't upgrade from eoan to focal due to libc6 postinst

Dimitri John Ledkov launchpad at surgut.co.uk
Thu Apr 16 15:17:41 UTC 2020


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.

** Tags removed: rls-ff-incoming

** Changed in: glibc (Ubuntu)
       Status: Triaged => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/1871240

Title:
  [focal][wsl] can't upgrade from eoan to focal due to libc6 postinst

Status in Ubuntu WSL:
  Triaged
Status in glibc package in Ubuntu:
  Invalid

Bug description:
  When trying to upgrade from Eoan to Focal in a WSL1 environment I got:

  "
  rafaeldtinoco at lenovo:~$ sudo apt-get -f install
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  Correcting dependencies... Done
  The following additional packages will be installed:
    console-setup keyboard-configuration libc-bin libc6-dbg
  The following packages will be upgraded:
    console-setup keyboard-configuration libc-bin libc6-dbg
  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/libkmod-module.c:1657 kmod_module_new_from_loaded: could not open /proc/modules: No such file or directory
  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/dpkg/info/libc6\:amd64.postinst

  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntuwsl/+bug/1871240/+subscriptions



More information about the foundations-bugs mailing list