Public bug reported:

When running apt-get distupgrade I saw this message:

Preparing to unpack .../apparmor_4.0.0~alpha2-0ubuntu3_amd64.deb ...
Unpacking apparmor (4.0.0~alpha2-0ubuntu3) over (4.0.0~alpha2-0ubuntu2) ...
dpkg: error processing archive 
/var/cache/apt/archives/apparmor_4.0.0~alpha2-0ubuntu3_amd64.deb (--unpack):
 trying to overwrite '/etc/apparmor.d/usr.bin.lxc-start', which is also in 
package liblxc-common 1:5.0.1-0ubuntu6
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)

The problem could be overcome with:

sudo apt-get install liblxc-common --reinstall

which resulted in output

Preparing to unpack .../liblxc-common_1%3a5.0.1-0ubuntu6_amd64.deb ...
Unpacking liblxc-common (1:5.0.1-0ubuntu6) over (1:5.0.1-0ubuntu6) ...

I have seen the same type of problem before with other packages.

I would have expected apt-get to correctly sequence all necessary
actions on its own.

ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: apt 2.7.3
ProcVersionSignature: Ubuntu 6.5.0-5.5-generic 6.5.0
Uname: Linux 6.5.0-5-generic x86_64
NonfreeKernelModules: zfs
ApportVersion: 2.27.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: KDE
Date: Sat Sep 16 11:12:36 2023
InstallationDate: Installed on 2021-07-01 (807 days ago)
InstallationMedia: Kubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420)
SourcePackage: apt
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: apt (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug foundations-todo mantic

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/2036302

Title:
  Apt fails to upgrade when file ownership of packages changes

Status in apt package in Ubuntu:
  New

Bug description:
  When running apt-get distupgrade I saw this message:

  Preparing to unpack .../apparmor_4.0.0~alpha2-0ubuntu3_amd64.deb ...
  Unpacking apparmor (4.0.0~alpha2-0ubuntu3) over (4.0.0~alpha2-0ubuntu2) ...
  dpkg: error processing archive 
/var/cache/apt/archives/apparmor_4.0.0~alpha2-0ubuntu3_amd64.deb (--unpack):
   trying to overwrite '/etc/apparmor.d/usr.bin.lxc-start', which is also in 
package liblxc-common 1:5.0.1-0ubuntu6
  dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)

  The problem could be overcome with:

  sudo apt-get install liblxc-common --reinstall

  which resulted in output

  Preparing to unpack .../liblxc-common_1%3a5.0.1-0ubuntu6_amd64.deb ...
  Unpacking liblxc-common (1:5.0.1-0ubuntu6) over (1:5.0.1-0ubuntu6) ...

  I have seen the same type of problem before with other packages.

  I would have expected apt-get to correctly sequence all necessary
  actions on its own.

  ProblemType: Bug
  DistroRelease: Ubuntu 23.10
  Package: apt 2.7.3
  ProcVersionSignature: Ubuntu 6.5.0-5.5-generic 6.5.0
  Uname: Linux 6.5.0-5-generic x86_64
  NonfreeKernelModules: zfs
  ApportVersion: 2.27.0-0ubuntu2
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: KDE
  Date: Sat Sep 16 11:12:36 2023
  InstallationDate: Installed on 2021-07-01 (807 days ago)
  InstallationMedia: Kubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420)
  SourcePackage: apt
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/2036302/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to