[Bug 1953524] Re: Upgrade 20.04 to 21.10

Brian Murray 1953524 at bugs.launchpad.net
Wed Dec 8 16:25:53 UTC 2021


The following lines in VarLogDistUpgradeApttermlog.txt indicate where
part of the problem is:

Preparing to unpack .../npm_7.5.2+ds-1_all.deb ...^M
dpkg-maintscript-helper: error: file '/usr/share/npm/node_modules/node-gyp' not owned by package 'npm:all'^M
dpkg-maintscript-helper: error: file '/usr/share/npm/node_modules/node-gyp/gyp' not owned by package 'npm:all'^M
dpkg-maintscript-helper: error: file '/usr/share/npm/node_modules/node-gyp/gyp/pylib' not owned by package 'npm:all'^M
dpkg-maintscript-helper: error: file '/usr/share/npm/node_modules/node-gyp/gyp/pylib/gyp' not owned by package 'npm:all'^M
dpkg-maintscript-helper: error: file '/usr/share/npm/node_modules/node-gyp/gyp/pylib/gyp/generator' not owned by package 'npm:all'^M
dpkg-maintscript-helper: error: file '/usr/share/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.pyc' not owned by package 'npm:all'^M
dpkg-maintscript-helper: error: file '/usr/share/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.pyc' not owned by package 'npm:all'^M
dpkg-maintscript-helper: error: file '/usr/share/npm/node_modules/node-gyp/gyp/pylib/gyp/input.pyc' not owned by package 'npm:all'^M
dpkg-maintscript-helper: error: file '/usr/share/npm/node_modules/node-gyp/gyp/pylib/gyp/common.pyc' not owned by package 'npm:all'^M
dpkg-maintscript-helper: error: file '/usr/share/npm/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.pyc' not owned by package 'npm:all'^M
dpkg-maintscript-helper: error: file '/usr/share/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.pyc' not owned by package 'npm:all'^M
dpkg-maintscript-helper: error: file '/usr/share/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.pyc' not owned by package 'npm:all'^M
dpkg-maintscript-helper: error: directory '/usr/share/npm' contains files not owned by package npm:all, cannot switch to symlink^M
dpkg: error processing archive /var/cache/apt/archives/npm_7.5.2+ds-1_all.deb (--unpack):^M
 new npm package pre-installation script subprocess returned error exit status 1^M
Errors were encountered while processing:^M
 /var/cache/apt/archives/npm_7.5.2+ds-1_all.deb^M

However, looking at VarLogDistUpgradeAptclone the package node-gyp
(which I'm guessing owns those files) is the official one from the
Ubuntu archive for Focal.

The file /var/log/dist-upgrade/main.log from your upgrade attempt would
be helpful in further figuring out what went wrong. The folder
/var/log/dist-upgrade/ contains folders for the date and times an
upgrade was attempted or made so if you don't find it in the root
directory look in a folder like '20211207-1234'.

** Changed in: ubuntu-release-upgrader (Ubuntu)
       Status: New => Incomplete

-- 
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/1953524

Title:
  Upgrade 20.04 to 21.10

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

Bug description:
  I ran the installation to upgrade using https://help.ubuntu.com/community/ImpishUpgrades 
  section:- Upgrading Ubuntu Desktops to 21.10
  but got the following message:
  The upgrade will continue but the '/tmp/apt-dpkg-install-ZM0HnK/0993-npm_7.5.2+ds-1_all.deb' package may not be in a working state. Please consider submitting a bug report about it.

  Now I cant upgrade using the software updater I get the following error
  The package system is broken
  If you are using third party repositories then disable them, since they are a common source of problems.
  Now run the following command in a terminal: apt-get install -f
  Transaction failed: The package system is broken
   The following packages have unmet dependencies:
  node-mkdirp:
  --- 
  ProblemType: Bug
  ApportVersion: 2.20.11-0ubuntu65.4
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CrashDB: ubuntu
  CurrentDesktop: ubuntu:GNOME
  DistributionChannelDescriptor:
   # This is a distribution channel descriptor
   # For more information see http://wiki.ubuntu.com/DistributionChannelDescriptor
   canonical-oem-somerville-xenial-amd64-20160624-2
  DistroRelease: Ubuntu 21.04
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2017-11-12 (1486 days ago)
  InstallationMedia: Ubuntu 16.04 "Xenial" - Build amd64 LIVE Binary 20160624-10:47
  Package: ubuntu-release-upgrader (not installed)
  ProcVersionSignature: Ubuntu 5.4.0-91.102-generic 5.4.151
  RebootRequiredPkgs: Error: path contained symlinks.
  Tags:  hirsute dist-upgrade
  Uname: Linux 5.4.0-91-generic x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm audio cdrom dip docker lpadmin plugdev pulse pulse-access root sambashare sudo video wireshark
  VarLogDistupgradeTermlog:
   
  _MarkForUpload: True

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




More information about the foundations-bugs mailing list