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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1953524

Title:
  Upgrade 20.04 to 21.10

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to