error processing archive /var/cache/apt/archives/libpcre2-posix3_10.39-3+u, trying to overwrite '/usr/lib/x86_64-linux-gnu/libpcre2-posix.so.3.0.1', which is also in package libpcre2-posix2:amd64 10.39-2+ubuntu20.04.1+deb.sury.org+1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pcre2 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
owner@device:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
libpcre2-posix2
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
libpcre2-posix3
The following NEW packages will be installed:
libpcre2-posix3
0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded.
1 not fully installed or removed.
Need to get 8 068 B of archives.
After this operation, 34,8 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://
Fetched 8 068 B in 0s (20,5 kB/s)
(Reading database ... 377119 files and directories currently installed.)
Preparing to unpack .../libpcre2-
Unpacking libpcre2-
dpkg: error processing archive /var/cache/
buntu20.
trying to overwrite '/usr/lib/
is also in package libpcre2-
Errors were encountered while processing:
/var/cache/
d64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
affects: | ubuntu → pcre2 (Ubuntu) |
tags: | added: focal |
Initially, upgrade failed in UI.
I found 4-month bug report on similar topic, but I'm not sure how it can be resolved: https:/ /askubuntu. com/questions/ 1377997/ the-package- system- is-broken- in-ubuntu- 21-04-with- php-ppa