upgrade to 20.10 beta from 20.04 fails immediate configuration

Bug #1899272 reported by terry b
38
This bug affects 8 people
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Confirmed
Undecided
Unassigned

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@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

Revision history for this message
terry b (tbohaning-gmail) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-release-upgrader (Ubuntu):
status: New → Confirmed
Revision history for this message
Eason Yu (ieason8) wrote :
Download full text (12.8 KiB)

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...

Revision history for this message
asavah (irherder) wrote :

Any comments from the maintainers or workarounds?

Revision history for this message
terry b (tbohaning-gmail) wrote :

Tested after 20.10 release. No improvement.

Revision history for this message
asavah (irherder) wrote :

Found a workaround, but beware here be dragons and this could kill your OS install!
Do not do this unless you know what you are doing!

After do-release-upgrade -d fails
cd /var/cache/apt
sudo dpkg --force-depends --force-breaks -i libnss-nis_3.1-0ubuntu4_amd64.deb

This will install the package that fails regardless missing deps and the possibility of breaking glibc.

Try upgrading again
sudo do-release-upgrade -d

This worked for me.

Revision history for this message
Benoît Rouits (brouits) wrote :

This affects me also even when now 20.10 is not beta.

Revision history for this message
terry b (tbohaning-gmail) wrote :

HI Asavah,

I took your suggestion and modified it slightly.

sudo -s
do-release-upgrade -d (expected to fail)

cd /var/cache/apt/archives
dpkg --force-depends --force-breaks -i libnss-nis_3.1-0ubuntu4_amd64.deb

do-release-upgrade -d

It did allow the libnss-nis package to install. Afterwards, running do-release-upgrade -d worked nicely.

Thanks for you help!

Revision history for this message
Borislav Ivanov (by-ivanov) wrote :

That worked for me! Thank you, terry b (tbohaning-gmail)!

Revision history for this message
Jo (mm4o) wrote :

Worked for me too, thanks terry b (tbohaning-gmail)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.