package libsgutils2-1.46-2 (not installed) failed to install/upgrade: trying to overwrite '/usr/lib/aarch64-linux-gnu/libsgutils2-1.46.so.2.0.0', which is also in package libsgutils2-2:arm64 1.46-1ubuntu0.23.04.1

Bug #2039348 reported by JF Lim
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
sg3-utils (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Error occurs after "sudo do-release-upgrade -d" from Lunar to Mantic was completed and run first system update/upgrade with "sudo apt update" and "sudo apt upgrade" with 444 packages to upgraded. Held back Firefox as I am on Arm64 Amlogic S922X SOC and Firefox Snap and Chromium Snap does NOT runs well on Arm64 Amlogic SOC.

No idea what causes the error:

Errors were encountered while processing:
 /tmp/apt-dpkg-install-r9Tdo0/247-libsgutils2-1.46-2_1.46-3ubuntu2_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 23.10
Package: libsgutils2-1.46-2 (not installed)
Uname: Linux 6.1.55-lnxaml-3pole aarch64
ApportVersion: 2.27.0-0ubuntu5
Architecture: arm64
CasperMD5CheckResult: unknown
Date: Sat Oct 14 18:36:31 2023
ErrorMessage: trying to overwrite '/usr/lib/aarch64-linux-gnu/libsgutils2-1.46.so.2.0.0', which is also in package libsgutils2-2:arm64 1.46-1ubuntu0.23.04.1
ImageMediaBuild: 20230327
Python3Details: /usr/bin/python3.11, Python 3.11.6, python3-minimal, 3.11.4-5
PythonDetails: N/A
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageVersions:
 dpkg 1.22.0ubuntu1
 apt 2.7.3
SourcePackage: sg3-utils
Title: package libsgutils2-1.46-2 (not installed) failed to install/upgrade: trying to overwrite '/usr/lib/aarch64-linux-gnu/libsgutils2-1.46.so.2.0.0', which is also in package libsgutils2-2:arm64 1.46-1ubuntu0.23.04.1
UpgradeStatus: Upgraded to mantic on 2023-10-14 (0 days ago)

Revision history for this message
JF Lim (jflim) wrote :
affects: ubuntu → sg3-utils (Ubuntu)
Revision history for this message
JF Lim (jflim) wrote :

Tried to resolve the error by performing:

jfl@jfl-lunar:~$ sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of libgpod-common:
 libgpod-common depends on libsgutils2-1.46-2 (>= 1.27); however:
  Package libsgutils2-1.46-2:arm64 is not installed.

dpkg: error processing package libgpod-common (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.38-1ubuntu6) ...
Errors were encountered while processing:
 libgpod-common

Another package libgpod-common was left unconfigured

Revision history for this message
JF Lim (jflim) wrote (last edit ):

This error/bug render the newly upgraded Ubuntu Mantic from further system upgrade packages.

Tried to remove "libsgutils2-2" using the command "sudo apt remove --purge libsgutils2-2" but was not successful in removing the the package.

sudo apt remove --purge libsgutils2-2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libgpod-common : Depends: libsgutils2-1.46-2 (>= 1.27) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

But this command "sudo dpkg --remove --force-remove-reinstreq libsgutils2-2" removed the package successfully.

sudo dpkg --remove --force-remove-reinstreq libsgutils2-2
(Reading database ... 125707 files and directories currently installed.)
Removing libsgutils2-2:arm64 (1.46-1ubuntu0.23.04.1) ...
Processing triggers for libc-bin (2.38-1ubuntu6) ...

The following command "sudo apt --fix-broken install" resolved system upgrade issue.

sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  cpp-12 devio ffmpeg fonts-liberation2 gcc-12-base libavutil57
  libblockdev-crypto2 libblockdev-fs2 libblockdev-loop2 libblockdev-part-err2
  libblockdev-part2 libblockdev-swap2 libblockdev-utils2 libblockdev2
  libcodec2-1.0 libcolamd2 libcupsfilters1 libdmapsharing-3.0-2 libiniparser1
  liblc3-0 liblua5.3-0 libmozjs-102-0 libmujs2 liborcus-0.17-0
  liborcus-parser-0.17-0 libplacebo208 libpoppler126 libpostproc56 libraw20
  libsuitesparseconfig5 libswscale6 libtiff5 libubootenv-tool libubootenv0.1
  mtd-utils python3-mutagen python3-pycryptodome python3-pyxattr
  python3-renderpm python3-reportlab-accel python3-websockets rtmpdump
  u-boot-tools
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libsgutils2-1.46-2
Suggested packages:
  sg3-utils
The following NEW packages will be installed:
  libsgutils2-1.46-2
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
5 not fully installed or removed.
Need to get 0 B/91.9 kB of archives.
After this operation, 313 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 125702 files and directories currently installed.)
Preparing to unpack .../libsgutils2-1.46-2_1.46-3ubuntu2_arm64.deb ...
Unpacking libsgutils2-1.46-2:arm64 (1.46-3ubuntu2) ...
Setting up python3-mutagen (1.46.0-2) ...
Setting up libsgutils2-1.46-2:arm64 (1.46-3ubuntu2) ...
Setting up libmozjs-102-0:arm64 (102.15.1-1) ...
Setting up u-boot-tools (2023.07+dfsg-1ubuntu2) ...
Setting up python3-pyxattr:arm64 (0.8.1-1) ...
Setting up libgpod-common (0.8.3-18) ...
Processing triggers for libc-bin (2.38-1ubuntu6) ...

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

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

Changed in sg3-utils (Ubuntu):
status: New → Confirmed
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Thanks for reporting this bug. It's already been reported (bug #2039279) and is being worked on, so I'm marking this one as a duplicate.

Revision history for this message
JF Lim (jflim) wrote :

Noted. Thank you.

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.