[Bug 1899272] Re: upgrade to 20.10 beta from 20.04 fails immediate configuration

Eason Yu 1899272 at bugs.launchpad.net
Wed Oct 14 01:27:40 UTC 2020


I also encountered this issue recently, FYI, I build a docker image base on Debian OS daily, and some specific commands (install some packages, e.g. python, postgresql-client) will be ran during the building, since Oct 11, get the following error, ref:
=================================================
    docker: + apt-get -y install postgresql-client-9.6
    docker: Reading package lists...
    docker: Building dependency tree...
    docker: Reading state information...
    docker: The following additional packages will be installed:
    docker: gcc-10-base libc-bin libc6 libcom-err2 libcomerr2 libcrypt1 libgcc-s1
    docker: libgssapi-krb5-2 libidn2-0 libk5crypto3 libkrb5-3 libkrb5support0 libnss-nis
    docker: libnss-nisplus libpq5 libreadline8 libtinfo6 postgresql-client-common
    docker: Suggested packages:
    docker: glibc-doc libc-l10n locales krb5-doc krb5-user postgresql-9.6
    docker: postgresql-doc-9.6
    docker: Recommended packages:
    docker: manpages krb5-locales
    docker: The following NEW packages will be installed:
    docker: gcc-10-base libcom-err2 libcrypt1 libgcc-s1 libnss-nis libnss-nisplus libpq5
    docker: libreadline8 libtinfo6 postgresql-client-9.6 postgresql-client-common
    docker: The following packages will be upgraded:
    docker: libc-bin libc6 libcomerr2 libgssapi-krb5-2 libidn2-0 libk5crypto3 libkrb5-3
    docker: libkrb5support0
    docker: 8 upgraded, 11 newly installed, 0 to remove and 304 not upgraded.
    docker: Need to get 6960 kB of archives.
    docker: After this operation, 11.2 MB of additional disk space will be used.
    docker: Get:1 http://security.debian.org stretch/updates/main amd64 postgresql-client-9.6 amd64 9.6.19-0+deb9u1 [1288 kB]
    docker: Get:2 http://ftp.de.debian.org/debian sid/main amd64 gcc-10-base amd64 10.2.0-15 [199 kB]
    docker: Get:3 http://ftp.de.debian.org/debian sid/main amd64 libgcc-s1 amd64 10.2.0-15 [41.4 kB]
    docker: Get:4 http://ftp.de.debian.org/debian sid/main amd64 libnss-nis amd64 3.1-3 [25.6 kB]
    docker: Get:5 http://ftp.de.debian.org/debian sid/main amd64 libnss-nisplus amd64 1.3-3 [21.6 kB]
    docker: Get:6 http://ftp.de.debian.org/debian sid/main amd64 libc6 amd64 2.31-4 [2804 kB]
    docker: Get:7 http://ftp.de.debian.org/debian sid/main amd64 libcrypt1 amd64 1:4.4.17-1 [86.9 kB]
    docker: Get:8 http://ftp.de.debian.org/debian sid/main amd64 libc-bin amd64 2.31-4 [804 kB]
    docker: Get:9 http://ftp.de.debian.org/debian sid/main amd64 libcom-err2 amd64 1.45.6-1 [71.7 kB]
    docker: Get:10 http://ftp.de.debian.org/debian sid/main amd64 libcomerr2 amd64 1.45.6-1 [67.6 kB]
    docker: Get:11 http://ftp.de.debian.org/debian sid/main amd64 libtinfo6 amd64 6.2+20200918-1 [340 kB]
    docker: Get:12 http://ftp.de.debian.org/debian sid/main amd64 libreadline8 amd64 8.0-4 [160 kB]
    docker: Get:13 http://ftp.de.debian.org/debian sid/main amd64 libgssapi-krb5-2 amd64 1.17-10 [156 kB]
    docker: Get:14 http://ftp.de.debian.org/debian sid/main amd64 libkrb5-3 amd64 1.17-10 [366 kB]
    docker: Get:15 http://ftp.de.debian.org/debian sid/main amd64 libk5crypto3 amd64 1.17-10 [115 kB]
    docker: Get:16 http://ftp.de.debian.org/debian sid/main amd64 libkrb5support0 amd64 1.17-10 [64.6 kB]
    docker: Get:17 http://ftp.de.debian.org/debian sid/main amd64 libidn2-0 amd64 2.3.0-1 [85.4 kB]
    docker: Get:18 http://ftp.de.debian.org/debian sid/main amd64 libpq5 amd64 13.0-3 [174 kB]
    docker: Get:19 http://ftp.de.debian.org/debian sid/main amd64 postgresql-client-common all 220 [88.3 kB]
    docker: debconf: delaying package configuration, since apt-utils is not installed
    docker: Fetched 6960 kB in 2s (3400 kB/s)
    docker: Selecting previously unselected package gcc-10-base:amd64.
    docker: (Reading database ... 27106 files and directories currently installed.)
    docker: Preparing to unpack .../gcc-10-base_10.2.0-15_amd64.deb ...
    docker: Unpacking gcc-10-base:amd64 (10.2.0-15) ...
    docker: Setting up gcc-10-base:amd64 (10.2.0-15) ...
    docker: Selecting previously unselected package libgcc-s1:amd64.
    docker: (Reading database ... 27111 files and directories currently installed.)
    docker: Preparing to unpack .../libgcc-s1_10.2.0-15_amd64.deb ...
    docker: Unpacking libgcc-s1:amd64 (10.2.0-15) ...
    docker: Replacing files in old package libgcc1:amd64 (1:6.3.0-18) ...
    docker: Setting up libgcc-s1:amd64 (10.2.0-15) ...
    docker: (Reading database ... 27113 files and directories currently installed.)
    docker: Preparing to unpack .../libc6_2.31-4_amd64.deb ...
    docker: debconf: unable to initialize frontend: Dialog
    docker: debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
    docker: debconf: falling back to frontend: Readline
    docker: debconf: unable to initialize frontend: Readline
    docker: debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
    docker: debconf: falling back to frontend: Teletype
    docker: Checking for services that may need to be restarted...
    docker: Checking init scripts...
    docker: Unpacking libc6:amd64 (2.31-4) over (2.24-11+deb9u1) ...
    docker: Selecting previously unselected package libnss-nis:amd64.
    docker: Preparing to unpack .../libnss-nis_3.1-3_amd64.deb ...
    docker: Unpacking libnss-nis:amd64 (3.1-3) ...
    docker: Selecting previously unselected package libcrypt1:amd64.
    docker: Preparing to unpack .../libcrypt1_1%3a4.4.17-1_amd64.deb ...
    docker: Unpacking libcrypt1:amd64 (1:4.4.17-1) ...
    docker: Selecting previously unselected package libnss-nisplus:amd64.
    docker: Preparing to unpack .../libnss-nisplus_1.3-3_amd64.deb ...
    docker: Unpacking libnss-nisplus:amd64 (1.3-3) ...
    docker: Setting up libnss-nis:amd64 (3.1-3) ...
    docker: Setting up libcrypt1:amd64 (1:4.4.17-1) ...
    docker: Setting up libnss-nisplus:amd64 (1.3-3) ...
    docker: Setting up libc6:amd64 (2.31-4) ...
    docker: Installing new version of config file /etc/ld.so.conf.d/x86_64-linux-gnu.conf ...
    docker: debconf: unable to initialize frontend: Dialog
    docker: debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
    docker: debconf: falling back to frontend: Readline
    docker: debconf: unable to initialize frontend: Readline
    docker: debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
    docker: debconf: falling back to frontend: Teletype
    docker: Checking for services that may need to be restarted...
    docker: Checking init scripts...
    docker: Nothing to restart.
    docker: (Reading database ... 27125 files and directories currently installed.)
    docker: Preparing to unpack .../libc-bin_2.31-4_amd64.deb ...
    docker: Unpacking libc-bin (2.31-4) over (2.24-11+deb9u1) ...
    docker: Setting up libc-bin (2.31-4) ...
    docker: Updating /etc/nsswitch.conf to current default.
    docker: (Reading database ... 27125 files and directories currently installed.)
    docker: Preparing to unpack .../libcomerr2_1.45.6-1_amd64.deb ...
    docker: Unpacking libcomerr2:amd64 (1.45.6-1) over (1.43.4-2) ...
    docker: Selecting previously unselected package libcom-err2:amd64.
    docker: Preparing to unpack .../libcom-err2_1.45.6-1_amd64.deb ...
    docker: Unpacking libcom-err2:amd64 (1.45.6-1) ...
    docker: Setting up libcom-err2:amd64 (1.45.6-1) ...
    docker: Selecting previously unselected package libtinfo6:amd64.
    docker: (Reading database ... 27128 files and directories currently installed.)
    docker: Preparing to unpack .../0-libtinfo6_6.2+20200918-1_amd64.deb ...
    docker: Unpacking libtinfo6:amd64 (6.2+20200918-1) ...
    docker: Selecting previously unselected package libreadline8:amd64.
    docker: Preparing to unpack .../1-libreadline8_8.0-4_amd64.deb ...
    docker: Unpacking libreadline8:amd64 (8.0-4) ...
    docker: Preparing to unpack .../2-libgssapi-krb5-2_1.17-10_amd64.deb ...
    docker: Unpacking libgssapi-krb5-2:amd64 (1.17-10) over (1.15-1+deb9u1) ...
    docker: Preparing to unpack .../3-libkrb5-3_1.17-10_amd64.deb ...
    docker: Unpacking libkrb5-3:amd64 (1.17-10) over (1.15-1+deb9u1) ...
    docker: Preparing to unpack .../4-libk5crypto3_1.17-10_amd64.deb ...
    docker: Unpacking libk5crypto3:amd64 (1.17-10) over (1.15-1+deb9u1) ...
    docker: Preparing to unpack .../5-libkrb5support0_1.17-10_amd64.deb ...
    docker: Unpacking libkrb5support0:amd64 (1.17-10) over (1.15-1+deb9u1) ...
    docker: Preparing to unpack .../6-libidn2-0_2.3.0-1_amd64.deb ...
    docker: Unpacking libidn2-0:amd64 (2.3.0-1) over (0.16-1+deb9u1) ...
    docker: Selecting previously unselected package libpq5:amd64.
    docker: Preparing to unpack .../7-libpq5_13.0-3_amd64.deb ...
    docker: Unpacking libpq5:amd64 (13.0-3) ...
    docker: Selecting previously unselected package postgresql-client-common.
    docker: Preparing to unpack .../8-postgresql-client-common_220_all.deb ...
    docker: Unpacking postgresql-client-common (220) ...
    docker: Selecting previously unselected package postgresql-client-9.6.
    docker: Preparing to unpack .../9-postgresql-client-9.6_9.6.19-0+deb9u1_amd64.deb ...
    docker: Unpacking postgresql-client-9.6 (9.6.19-0+deb9u1) ...
    docker: Setting up libidn2-0:amd64 (2.3.0-1) ...
    docker: Setting up libtinfo6:amd64 (6.2+20200918-1) ...
    docker: Setting up libkrb5support0:amd64 (1.17-10) ...
    docker: Processing triggers for libc-bin (2.31-4) ...
    docker: Setting up postgresql-client-common (220) ...
    docker: Setting up libcomerr2:amd64 (1.45.6-1) ...
    docker: Setting up libreadline8:amd64 (8.0-4) ...
    docker: Setting up libk5crypto3:amd64 (1.17-10) ...
    docker: Setting up libkrb5-3:amd64 (1.17-10) ...
    docker: Setting up libgssapi-krb5-2:amd64 (1.17-10) ...
    docker: Setting up libpq5:amd64 (13.0-3) ...
    docker: Setting up postgresql-client-9.6 (9.6.19-0+deb9u1) ...
    docker: update-alternatives: using /usr/share/postgresql/9.6/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode
    docker: Processing triggers for libc-bin (2.31-4) ...
    docker: E: Could not configure 'libc6:amd64'.
    docker: E: Could not perform immediate configuration on 'libcrypt1:amd64'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
==> docker: Killing the container: f7f06a04876e2964be28ddbd394cb73b1fb20da6043d615494cf070ac2e16e0b
Build 'docker' errored: Script exited with non-zero exit status: 100
=======================================

Note: Before 'apt-get -y install postgresql-client-9.6', 'apt-get -y
update' is ran.

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

Title:
  upgrade to 20.10 beta from 20.04 fails immediate configuration

Status in ubuntu-release-upgrader package in Ubuntu:
  Confirmed

Bug description:
  This problem shows up when using any update method (update-manager -d,
  do-release-upgrade -d). The captured data shows an immediate-configure
  error.

  ------------------------------------------------------------------------------

  Fetched 0 B in 0s (0 B/s)                                                                                                         
  Error in function: install

  apt_pkg.Error: E:Could not configure 'libc6:amd64'. , E:Could not perform immediate configuration on 'libnss-nis:amd64'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
  Error in sys.excepthook:
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/problem_report.py", line 477, in add_to_existing
      self.write(f)
    File "/usr/lib/python3/dist-packages/problem_report.py", line 430, in write
      block = f.read(1048576)
    File "/usr/lib/python3.8/codecs.py", line 322, in decode
      (result, consumed) = self._buffer_decode(data, self.errors, final)
  UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte

  Original exception was:
  apt_pkg.Error: E:Could not configure 'libc6:amd64'. , E:Could not perform immediate configuration on 'libnss-nis:amd64'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
  Error in function: install

  apt_pkg.Error: E:Could not perform immediate configuration on 'libffi8ubuntu1:amd64'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
  Error in sys.excepthook:
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/problem_report.py", line 477, in add_to_existing
      self.write(f)
    File "/usr/lib/python3/dist-packages/problem_report.py", line 430, in write
      block = f.read(1048576)
    File "/usr/lib/python3.8/codecs.py", line 322, in decode
      (result, consumed) = self._buffer_decode(data, self.errors, final)
  UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte

  Original exception was:
  apt_pkg.Error: E:Could not perform immediate configuration on 'libffi8ubuntu1:amd64'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)

  Could not install the upgrades

  The upgrade has aborted. Your system could be in an unusable state. A 
  recovery will run now (dpkg --configure -a). 

  
  Upgrade infeasible 

  The upgrade could not be completed, there were errors during the 
  upgrade process. 

  
  Restoring original system state

  Aborting
  Reading package lists... Done    
  Building dependency tree          
  Reading state information... Done

  ------------------------------------------------------------------
  I've deleted the cache of new packages and rerun the download to confirm that I didn't have a bad package download.

  ubuntu-release-upgrader-core/focal-updates,focal-updates,now 1:20.04.25 all [installed]
    manage release upgrades

  ubuntu-release-upgrader-gtk/focal-updates,focal-updates,now 1:20.04.25 all [installed,automatic]
    manage release upgrades

  ubuntu-release-upgrader-qt/focal-updates,focal-updates,now 1:20.04.25 all [installed]
    manage release upgrades

  --------------------------------------------------------------------
  root at wizard:/var/lib# lsb_release -rd
  Description:    Ubuntu 20.04.1 LTS
  Release:        20.04

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: ubuntu-release-upgrader-core 1:20.04.25
  ProcVersionSignature: Ubuntu 5.4.0-48.52-generic 5.4.60
  Uname: Linux 5.4.0-48-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset nvidia
  ApportVersion: 2.20.11-0ubuntu27.9
  Architecture: amd64
  CasperMD5CheckResult: skip
  CrashDB: ubuntu
  Date: Sat Oct 10 10:17:59 2020
  InstallationDate: Installed on 2017-03-11 (1308 days ago)
  InstallationMedia: Kubuntu 17.04 "Zesty Zapus" - Alpha amd64 (20170222)
  PackageArchitecture: all
  SourcePackage: ubuntu-release-upgrader
  Symptom: ubuntu-release-upgrader
  UpgradeStatus: Upgraded to focal on 2020-10-10 (0 days ago)
  VarLogDistupgradeTermlog:
   
  mtime.conffile..etc.update-manager.release-upgrades: 2020-04-02T08:44:51.029022

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1899272/+subscriptions



More information about the foundations-bugs mailing list