Failure on update with install_pivariety_pkgs

Pi 4 Model B Rev 1.2 - 4GB
Linux raspberrypi 5.15.76-v8+ #1597 SMP PREEMPT Fri Nov 4 12:16:41 GMT 2022 aarch64 GNU/Linux
Running BullsEye
16mp Autofocus imx519 - UC-873 Rev C.

When updating/installing I get an error which indicates the install failed and the error needs to be reported:

Using wget -O install_pivariety_pkgs.sh https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh to download install script.

Log from console:

./install_pivariety_pkgs.sh -p libcamera
=================================================
Hardware Revision: c03112
Kernel Version: 5.15.76-v8+
OS Codename: bullseye
ARCH: aarch64
=================================================

--2023-10-03 18:43:39--  https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/packages.txt
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/b3348f44-8b22-4085-a232-0d2e4cabbf06?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231003%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231003T164340Z&X-Amz-Expires=300&X-Amz-Signature=71ad257032c35c83006c267ad00fffd0cb89964d8b3db4e2911a5d30043b16c1&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Dpackages.txt&response-content-type=application%2Foctet-stream [following]
--2023-10-03 18:43:40--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/b3348f44-8b22-4085-a232-0d2e4cabbf06?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231003%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231003T164340Z&X-Amz-Expires=300&X-Amz-Signature=71ad257032c35c83006c267ad00fffd0cb89964d8b3db4e2911a5d30043b16c1&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Dpackages.txt&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.108.133, 185.199.109.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2130 (2.1K) [application/octet-stream]
Saving to: ‘packages.txt’

packages.txt                                                 100%[============================================================================================================================================>]   2.08K  --.-KB/s    in 0.002s  

2023-10-03 18:43:40 (930 KB/s) - ‘packages.txt’ saved [2130/2130]

kernel:5.15.76-v8+
--2023-10-03 18:43:40--  https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/libcamera_links.txt
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/509766ce-689d-426c-8717-331c3fa90052?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231003%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231003T164341Z&X-Amz-Expires=300&X-Amz-Signature=7f6d6063fb291f35155fe2942a77174ad04a152ee82a01bfa886bd36f9434e68&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Dlibcamera_links.txt&response-content-type=application%2Foctet-stream [following]
--2023-10-03 18:43:41--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/509766ce-689d-426c-8717-331c3fa90052?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231003%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231003T164341Z&X-Amz-Expires=300&X-Amz-Signature=7f6d6063fb291f35155fe2942a77174ad04a152ee82a01bfa886bd36f9434e68&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Dlibcamera_links.txt&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.108.133, 185.199.109.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7874 (7.7K) [application/octet-stream]
Saving to: ‘libcamera_links.txt’

libcamera_links.txt                                          100%[============================================================================================================================================>]   7.69K  --.-KB/s    in 0.01s   

2023-10-03 18:43:41 (767 KB/s) - ‘libcamera_links.txt’ saved [7874/7874]

--2023-10-03 18:43:41--  https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/libcamera-v0.0.5/libcamera0_0_git20230724+ad9428b4-1_arm64.deb
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/e38bafa9-c952-442a-9542-b49520685407?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231003%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231003T164341Z&X-Amz-Expires=300&X-Amz-Signature=f955202b166c9ea14e1d9ca68d142aea841b726087fe7dc24cc337701bec1c5e&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Dlibcamera0_0_git20230724%2Bad9428b4-1_arm64.deb&response-content-type=application%2Foctet-stream [following]
--2023-10-03 18:43:41--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/e38bafa9-c952-442a-9542-b49520685407?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231003%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231003T164341Z&X-Amz-Expires=300&X-Amz-Signature=f955202b166c9ea14e1d9ca68d142aea841b726087fe7dc24cc337701bec1c5e&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Dlibcamera0_0_git20230724%2Bad9428b4-1_arm64.deb&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.108.133, 185.199.109.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 694516 (678K) [application/octet-stream]
Saving to: ‘libcamera0_0_git20230724+ad9428b4-1_arm64.deb’

libcamera0_0_git20230724+ad9428b4-1_arm64.deb                100%[============================================================================================================================================>] 678.24K   897KB/s    in 0.8s    

2023-10-03 18:43:43 (897 KB/s) - ‘libcamera0_0_git20230724+ad9428b4-1_arm64.deb’ saved [694516/694516]

Get:1 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Hit:2 http://deb.debian.org/debian bullseye InRelease                      
Get:3 http://archive.raspberrypi.org/debian bullseye InRelease [23.6 kB]   
Hit:4 http://deb.debian.org/debian bullseye-updates InRelease                              
Get:5 http://security.debian.org/debian-security bullseye-security/main arm64 Packages [242 kB]
Get:6 http://security.debian.org/debian-security bullseye-security/main armhf Packages [243 kB]
Get:7 http://archive.raspberrypi.org/debian bullseye/main arm64 Packages [308 kB]
Get:8 http://archive.raspberrypi.org/debian bullseye/main armhf Packages [314 kB]
Fetched 1,179 kB in 2s (520 kB/s) 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libboost-program-options1.74.0 raspinfo
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  libcamera-apps libcamera0
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 5,401 kB disk space will be freed.
(Reading database ... 94056 files and directories currently installed.)
Removing libcamera-apps (1.2.1-1) ...
Removing libcamera0:arm64 (0~git20230720+bde9b04f-1) ...
Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u5) ...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libboost-program-options1.74.0 raspinfo
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libcamera0
The following NEW packages will be installed:
  libcamera0 python3-libcamera
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,016 kB of archives.
After this operation, 4,787 kB of additional disk space will be used.
Get:1 http://archive.raspberrypi.org/debian bullseye/main arm64 libcamera0 arm64 0~git20230720+bde9b04f-1 [826 kB]
Get:2 http://archive.raspberrypi.org/debian bullseye/main arm64 python3-libcamera arm64 0~git20230720+bde9b04f-1 [190 kB]
Fetched 1,016 kB in 1s (772 kB/s)          
Selecting previously unselected package libcamera0:arm64.
(Reading database ... 93909 files and directories currently installed.)
Preparing to unpack .../libcamera0_0~git20230720+bde9b04f-1_arm64.deb ...
Unpacking libcamera0:arm64 (0~git20230720+bde9b04f-1) ...
Replaced by files in installed package libcamera-dev (0.0.10) ...
Selecting previously unselected package python3-libcamera.
Preparing to unpack .../python3-libcamera_0~git20230720+bde9b04f-1_arm64.deb ...
Unpacking python3-libcamera (0~git20230720+bde9b04f-1) ...
dpkg: error processing archive /var/cache/apt/archives/python3-libcamera_0~git20230720+bde9b04f-1_arm64.deb (--unpack):
 trying to overwrite '/usr/lib/python3/dist-packages/libcamera/__init__.py', which is also in package libcamera-dev 0.0.10
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/python3-libcamera_0~git20230720+bde9b04f-1_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libcamera0' instead of './libcamera0_0_git20230724+ad9428b4-1_arm64.deb'
The following packages were automatically installed and are no longer required:
  libboost-program-options1.74.0 raspinfo
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
  libcamera0
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/695 kB of archives.
After this operation, 691 kB disk space will be freed.
Get:1 /home/ray/libcamera0_0_git20230724+ad9428b4-1_arm64.deb libcamera0 arm64 0~git20230724+ad9428b4-1 [695 kB]
apt-listchanges: Reading changelogs...
(Reading database ... 94009 files and directories currently installed.)
Preparing to unpack .../libcamera0_0_git20230724+ad9428b4-1_arm64.deb ...
Unpacking libcamera0:arm64 (0~git20230724+ad9428b4-1) over (0~git20230720+bde9b04f-1) ...
Replaced by files in installed package libcamera-dev (0.0.10) ...
Setting up libcamera0:arm64 (0~git20230724+ad9428b4-1) ...
Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u5) ...
--2023-10-03 18:44:05--  https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/libcamera-v0.0.5/libcamera-dev_0_git20230724+ad9428b4-1_arm64.deb
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/7d02c6e8-37df-48cb-8b5e-eb9d73b4b221?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231003%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231003T164406Z&X-Amz-Expires=300&X-Amz-Signature=ca8fd4c5bb8fea49873d55867b86cabf941ee0d2ff20e4fef0d35c2e99ef6265&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Dlibcamera-dev_0_git20230724%2Bad9428b4-1_arm64.deb&response-content-type=application%2Foctet-stream [following]
--2023-10-03 18:44:06--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/353945933/7d02c6e8-37df-48cb-8b5e-eb9d73b4b221?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231003%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231003T164406Z&X-Amz-Expires=300&X-Amz-Signature=ca8fd4c5bb8fea49873d55867b86cabf941ee0d2ff20e4fef0d35c2e99ef6265&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=353945933&response-content-disposition=attachment%3B%20filename%3Dlibcamera-dev_0_git20230724%2Bad9428b4-1_arm64.deb&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.108.133, 185.199.109.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 24384 (24K) [application/octet-stream]
Saving to: ‘libcamera-dev_0_git20230724+ad9428b4-1_arm64.deb’

libcamera-dev_0_git20230724+ad9428b4-1_arm64.deb             100%[============================================================================================================================================>]  23.81K  --.-KB/s    in 0.03s   

2023-10-03 18:44:06 (920 KB/s) - ‘libcamera-dev_0_git20230724+ad9428b4-1_arm64.deb’ saved [24384/24384]

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libcamera-dev' instead of './libcamera-dev_0_git20230724+ad9428b4-1_arm64.deb'
The following packages were automatically installed and are no longer required:
  libboost-program-options1.74.0 raspinfo
Use 'sudo apt autoremove' to remove them.
The following packages will be DOWNGRADED:
  libcamera-dev
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
E: Packages were downgraded and -y was used without --allow-downgrades.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libboost-program-options1.74.0 raspinfo
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  freeglut3 libglu1-mesa libturbojpeg0 python3-libcamera python3-opengl python3-pidng python3-piexif python3-simplejpeg python3-v4l2
Suggested packages:
  libgle3
The following NEW packages will be installed:
  freeglut3 libglu1-mesa libturbojpeg0 python3-libcamera python3-opengl python3-picamera2 python3-pidng python3-piexif python3-simplejpeg python3-v4l2
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,210 kB/1,400 kB of archives.
After this operation, 10.2 MB of additional disk space will be used.
Get:1 http://archive.raspberrypi.org/debian bullseye/main arm64 python3-pidng arm64 4.0.9-1 [25.4 kB]
Get:2 http://deb.debian.org/debian bullseye/main arm64 freeglut3 arm64 2.8.1-6 [119 kB]
Get:3 http://archive.raspberrypi.org/debian bullseye/main arm64 python3-piexif all 1.1.3-1 [17.4 kB]
Get:4 http://archive.raspberrypi.org/debian bullseye/main arm64 python3-simplejpeg arm64 1.6.4-1 [70.0 kB]
Get:5 http://deb.debian.org/debian bullseye/main arm64 libglu1-mesa arm64 9.0.1-1 [146 kB]
Get:6 http://archive.raspberrypi.org/debian bullseye/main arm64 python3-v4l2 all 0.3.2-1 [14.4 kB]
Get:7 http://archive.raspberrypi.org/debian bullseye/main arm64 python3-picamera2 all 0.3.12-2 [50.4 kB]
Get:8 http://deb.debian.org/debian bullseye/main arm64 libturbojpeg0 arm64 1:2.0.6-4 [158 kB]
Get:9 http://deb.debian.org/debian bullseye/main arm64 python3-opengl all 3.1.5+dfsg-1 [610 kB]
Fetched 1,210 kB in 1s (823 kB/s)       
Selecting previously unselected package freeglut3:arm64.
(Reading database ... 93957 files and directories currently installed.)
Preparing to unpack .../0-freeglut3_2.8.1-6_arm64.deb ...
Unpacking freeglut3:arm64 (2.8.1-6) ...
Selecting previously unselected package libglu1-mesa:arm64.
Preparing to unpack .../1-libglu1-mesa_9.0.1-1_arm64.deb ...
Unpacking libglu1-mesa:arm64 (9.0.1-1) ...
Selecting previously unselected package libturbojpeg0:arm64.
Preparing to unpack .../2-libturbojpeg0_1%3a2.0.6-4_arm64.deb ...
Unpacking libturbojpeg0:arm64 (1:2.0.6-4) ...
Preparing to unpack .../3-python3-libcamera_0~git20230720+bde9b04f-1_arm64.deb ...
Unpacking python3-libcamera (0~git20230720+bde9b04f-1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-c050Tg/3-python3-libcamera_0~git20230720+bde9b04f-1_arm64.deb (--unpack):
 trying to overwrite '/usr/lib/python3/dist-packages/libcamera/__init__.py', which is also in package libcamera-dev 0.0.10
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Selecting previously unselected package python3-opengl.
Preparing to unpack .../4-python3-opengl_3.1.5+dfsg-1_all.deb ...
Unpacking python3-opengl (3.1.5+dfsg-1) ...
Selecting previously unselected package python3-pidng.
Preparing to unpack .../5-python3-pidng_4.0.9-1_arm64.deb ...
Unpacking python3-pidng (4.0.9-1) ...
Selecting previously unselected package python3-piexif.
Preparing to unpack .../6-python3-piexif_1.1.3-1_all.deb ...
Unpacking python3-piexif (1.1.3-1) ...
Selecting previously unselected package python3-simplejpeg.
Preparing to unpack .../7-python3-simplejpeg_1.6.4-1_arm64.deb ...
Unpacking python3-simplejpeg (1.6.4-1) ...
Selecting previously unselected package python3-v4l2.
Preparing to unpack .../8-python3-v4l2_0.3.2-1_all.deb ...
Unpacking python3-v4l2 (0.3.2-1) ...
Selecting previously unselected package python3-picamera2.
Preparing to unpack .../9-python3-picamera2_0.3.12-2_all.deb ...
Unpacking python3-picamera2 (0.3.12-2) ...
Errors were encountered while processing:
 /tmp/apt-dpkg-install-c050Tg/3-python3-libcamera_0~git20230720+bde9b04f-1_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Unknown error, please send the error message to [email protected]

Hi,
Please update your kernel version to 6.1.21 and then give it a try again.