While doing routine apt upgrade you encountered error
similar to below
dpkg: error processing archive /var/cache/apt/archives/qt6-base_6.7.2-0zneon+22.04+jammy+release+build2_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libQt6Core.so.6', which is also in package libqt6core6:amd64 6.2.4+dfsg-2ubuntu1.1
Complete Error:
Preparing to unpack .../qt6-base_6.7.2-0zneon+22.04+jammy+release+build2_amd64.deb ...
Unpacking qt6-base (6.7.2-0zneon+22.04+jammy+release+build2) ...
dpkg: error processing archive /var/cache/apt/archives/qt6-base_6.7.2-0zneon+22.04+jammy+release+build2_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libQt6Core.so.6', which is also in package libqt6core6:amd64 6.2.4+dfsg-2ubuntu1.1
Preparing to unpack .../qt6-declarative_6.7.2-0zneon+22.04+jammy+release+build3_amd64.deb ...
Unpacking qt6-declarative (6.7.2-0zneon+22.04+jammy+release+build3) ...
Errors were encountered while processing:
/var/cache/apt/archives/qt6-base_6.7.2-0zneon+22.04+jammy+release+build2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Then identify the file & do force overwrite for it like below
sudo dpkg -i --force-overwrite /var/cache/apt/archives/qt6-base_6.7.2-0zneon+22.04+jammy+release+build2_amd64.deb
Then
sudo apt-get -f install
No comments:
Post a Comment