ubuntu failed upgrade from 21.10 to 22.04

Bug #1986902 reported by James Cobban
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I manually removed all of the PPAs in Other Software but the upgrade still would not complete. Telling me to run ppa-purge but with no clues as to what parameters to specify is not helpful.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: ubuntu-release-upgrader-core 1:20.04.38
ProcVersionSignature: Ubuntu 5.4.0-124.140-generic 5.4.195
Uname: Linux 5.4.0-124-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.24
Architecture: amd64
CasperMD5CheckResult: skip
CrashDB: ubuntu
CurrentDesktop: ubuntu:GNOME
Date: Thu Aug 18 00:26:26 2022
InstallationDate: Installed on 2020-02-09 (920 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
PackageArchitecture: all
SourcePackage: ubuntu-release-upgrader
UpgradeStatus: Upgraded to focal on 2022-08-18 (0 days ago)
VarLogDistupgradeTermlog:

Revision history for this message
James Cobban (7-webmaster) wrote :
Revision history for this message
James Cobban (7-webmaster) wrote :

Following the advice I looked into the log files but could not see anything that looked like an error message explaining why the upgrade did not succeed. This process definitely requires more explanation of how to debug failures, since I would rather not waste the time of the support team for something which is presumably trivial. After removing the Other Software PPAs I went further and also removed the application, QGIS, which I had installed from those PPAs, and auto-removed its dependencies. sudo apt-get remove qgis ; sudo apt-get remove --auto-remove qgis ; sudo apt-get purge qgis ; sudo apt-get update ; sudo apt-get upgrade

Please tell me what the upgrade is ACTUALLY upset about as just telling me it is unhappy while leaving me with nothing that I can do about it is frustrating.

Revision history for this message
James Cobban (7-webmaster) wrote :

sudo apt-get update complains:

Get:6 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease [23.9 kB]
Err:6 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4F4EA0AAE5267A6C
Reading package lists... Done
W: GPG error: http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4F4EA0AAE5267A6C
E: The repository 'http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease' is not signed.

I did not add that PPA to the system, the 22.04 UPGRADE added it. Why is the upgrade adding PPAs which DO NOT WORK?

I tried this both using the Canadian Server and the Main Server.

Revision history for this message
Nick Rosbrook (enr0n) wrote (last edit ):

AFAICT, there is nothing in ubuntu-release-upgrader that will add PPAs to your system. However, looking at the attached VarLogDistupgradeAptlog.txt, it looks like the nodesource PPA is causing your problems. There are several lines that look like this:

  mocha:amd64 Depends on nodejs:any:any < none @un H > can't be satisfied!
  node-ajv:amd64 Depends on nodejs:any:any < none @un H > can't be satisfied!

Please try removing packages installed from that PPA by using the ppa-purge tool:

ppa-purge -s deb.nodesource.com -p dists node%5f12.x

If that does not work, maybe just try:

apt purge nodejs
rm -r /etc/apt/sources.list.d/nodesource.list

After that, please try the upgrade again.

Changed in ubuntu-release-upgrader (Ubuntu):
status: New → Incomplete
Revision history for this message
James Cobban (7-webmaster) wrote :
Download full text (11.8 KiB)

Thank you.

sudo ppa-purge -s deb.nodesource.com -p dists node%5f12.x
[sudo] password for jcobban:
Updating packages lists
PPA to be removed: node%5f12.x dists
Package revert list generated:
 nodejs/focal

Updating packages lists
Reading package lists... Done
Building dependency tree
Reading state information... Done
nodejs is already the newest version (12.22.12-deb-1nodesource1).
Selected version '12.22.12-deb-1nodesource1' (Node Source:deb.nodesource.com [amd64]) for 'nodejs'
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
PPA purged successfully

Could not calculate the upgrade

An unresolvable problem occurred while calculating the upgrade.

 This was likely caused by:
 * Unofficial software packages not provided by Ubuntu
Please use the tool 'ppa-purge' from the ppa-purge
package to remove software from a Launchpad PPA and
try the upgrade again.

If none of this applies, then please report this bug using the command 'ubuntu-bug ubuntu-release-upgrader-core' in a terminal. If you want to investigate this yourself the log files in '/var/log/dist-upgrade' will contain details about the upgrade. Specifically, look at 'main.log' and 'apt.log'.

$ sudo apt purge nodejs
[sudo] password for jcobban:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libjs-inherits libjs-regenerate libjs-source-map libjs-sprintf-js
  node-jschardet
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  eslint* livescript* mocha* node-ajv* node-ansi-escapes* node-ansi-regex*
  node-ansi-styles* node-anymatch* node-argparse* node-async-each*
  node-balanced-match* node-binary-extensions* node-brace-expansion*
  node-braces* node-browser-stdout* node-camelcase* node-chalk* node-chokidar*
  node-cli-cursor* node-cli-width* node-cliui* node-clone* node-color-convert*
  node-color-name* node-commander* node-concat-map* node-concat-stream*
  node-core-util-is* node-cross-spawn* node-debbundle-acorn* node-debug*
  node-decamelize* node-deep-is* node-defaults* node-define-properties*
  node-diff* node-doctrine* node-end-of-stream* node-escape-string-regexp*
  node-eslint-scope* node-eslint-visitor-keys* node-espree* node-esprima*
  node-esquery* node-esrecurse* node-estraverse* node-esutils* node-execa*
  node-exit-hook* node-external-editor* node-fast-deep-equal*
  node-fast-levenshtein* node-file-entry-cache* node-fill-range* node-find-up*
  node-flat-cache* node-flatted* node-fs.realpath* node-function-bind*
  node-functional-red-black-tree* node-get-caller-file* node-get-stream*
  node-glob* node-glob-parent* node-globals* node-graceful-fs* node-growl*
  node-has-flag* node-he* node-iconv-lite* node-ignore* node-imurmurhash*
  node-inflight* node-inherits* node-inquirer* node-invert-kv*
  node-is-binary-path* node-is-buffer* node-is-extglob* node-is-glob*
  node-is-number* node-is-promise* node-is-stream* node-isarray* node-isexe*
  node-js-yaml* node-json-schema-traverse* node-json-stable-stringify*
  node-jsonify* node-kind-of* node-lcid* node-levn* node-locate-path*
  node-lodash* node...

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ubuntu-release-upgrader (Ubuntu) because there has been no activity for 60 days.]

Changed in ubuntu-release-upgrader (Ubuntu):
status: Incomplete → Expired
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.