Troubles when apt-update and apt-upgrade

I’m trying to upgrade ubuntu by

sudo apt-get update && sudo apt-get upgrade

But there is the error due upgrading (only tail of logs):

Unpacking libpython3.6-minimal:arm64 (3.6.9-1~18.04ubuntu1.7) over (3.6.9-1~18.04ubuntu1.4) ...
Preparing to unpack .../12-bluez-obexd_5.48-0ubuntu3.8_arm64.deb ...
Unpacking bluez-obexd (5.48-0ubuntu3.8) over (5.48-0ubuntu3.5) ...
dpkg: error processing archive /tmp/apt-dpkg-install-U4MdwE/12-bluez-obexd_5.48-0ubuntu3.8_arm64.deb (--unpack):
 trying to overwrite '/usr/lib/bluetooth/obexd', which is also in package bluez 5.50-1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../13-base-files_10.1ubuntu2.11_arm64.deb ...
Warning: Stopping motd-news.service, but it can still be activated by:
  motd-news.timer
Unpacking base-files (10.1ubuntu2.11) over (10.1ubuntu2.10) ...
Errors were encountered while processing:
 /tmp/apt-dpkg-install-U4MdwE/12-bluez-obexd_5.48-0ubuntu3.8_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

So how I can handle with this problem?

Looks like you manually installed bluez before and it failed and affect the apt status?

No, I didn’t install anything by hand

sudo dpkg --remove --force-remove-reinstreq package_name

Try to use above command to remove your 12-bluez-obexd_5.48-0ubuntu3.8_arm64.deb?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.