Quad Sata Pi 4 deb fails on Ubuntu 24.04.1

Continuing the discussion from Quad SATA HAT Assembly and Troubleshooting:

I’m also struggling to get the quad sata hat setup on my Raspberry Pi 4. Installed the latest release 0.3.1 and it fails with these errors. Any assistance appreciated!

$  sudo apt install -y ./rockpi-quad-0.3.1.deb 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'rockpi-quad' instead of './rockpi-quad-0.3.1.deb'
The following additional packages will be installed:
  libgpiod2t64 python3-libgpiod
The following NEW packages will be installed:
  libgpiod2t64 python3-libgpiod rockpi-quad
0 upgraded, 3 newly installed, 0 to remove and 4 not upgraded.
Need to get 63.8 kB/973 kB of archives.
After this operation, 336 kB of additional disk space will be used.
Get:1 /home/ubuntu/rockpi-quad-0.3.1.deb rockpi-quad all 0.3.1 [909 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports noble/universe arm64 libgpiod2t64 arm64 1.6.3-1.1build1 [42.6 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports noble/universe arm64 python3-libgpiod arm64 1.6.3-1.1build1 [21.2 kB]
Fetched 63.8 kB in 1s (66.9 kB/s)          
Selecting previously unselected package libgpiod2t64:arm64.
(Reading database ... 144949 files and directories currently installed.)
Preparing to unpack .../libgpiod2t64_1.6.3-1.1build1_arm64.deb ...
Unpacking libgpiod2t64:arm64 (1.6.3-1.1build1) ...
Selecting previously unselected package python3-libgpiod:arm64.
Preparing to unpack .../python3-libgpiod_1.6.3-1.1build1_arm64.deb ...
Unpacking python3-libgpiod:arm64 (1.6.3-1.1build1) ...
Selecting previously unselected package rockpi-quad.
Preparing to unpack .../ubuntu/rockpi-quad-0.3.1.deb ...
Unpacking rockpi-quad (0.3.1) ...
Setting up libgpiod2t64:arm64 (1.6.3-1.1build1) ...
Setting up python3-libgpiod:arm64 (1.6.3-1.1build1) ...
Setting up rockpi-quad (0.3.1) ...
Collecting Adafruit-Blinka==8.39.0 (from -r /usr/bin/rockpi-quad/requirements.txt (line 1))
  Downloading Adafruit_Blinka-8.39.0-py3-none-any.whl.metadata (5.3 kB)
Collecting adafruit-circuitpython-busdevice==5.2.9 (from -r /usr/bin/rockpi-quad/requirements.txt (line 2))
  Downloading adafruit_circuitpython_busdevice-5.2.9-py3-none-any.whl.metadata (4.0 kB)
Collecting adafruit-circuitpython-connectionmanager==3.1.1 (from -r /usr/bin/rockpi-quad/requirements.txt (line 3))
  Downloading adafruit_circuitpython_connectionmanager-3.1.1-py3-none-any.whl.metadata (4.5 kB)
Collecting adafruit-circuitpython-framebuf==1.6.5 (from -r /usr/bin/rockpi-quad/requirements.txt (line 4))
  Downloading adafruit_circuitpython_framebuf-1.6.5-py3-none-any.whl.metadata (3.3 kB)
Collecting adafruit-circuitpython-requests==4.1.4 (from -r /usr/bin/rockpi-quad/requirements.txt (line 5))
  Downloading adafruit_circuitpython_requests-4.1.4-py3-none-any.whl.metadata (3.5 kB)
Collecting adafruit-circuitpython-ssd1306==2.12.17 (from -r /usr/bin/rockpi-quad/requirements.txt (line 6))
  Downloading adafruit_circuitpython_ssd1306-2.12.17-py3-none-any.whl.metadata (5.3 kB)
Collecting adafruit-circuitpython-typing==1.10.3 (from -r /usr/bin/rockpi-quad/requirements.txt (line 7))
  Downloading adafruit_circuitpython_typing-1.10.3-py3-none-any.whl.metadata (3.2 kB)
Collecting Adafruit-PlatformDetect==3.72.1 (from -r /usr/bin/rockpi-quad/requirements.txt (line 8))
  Downloading Adafruit_PlatformDetect-3.72.1-py3-none-any.whl.metadata (3.8 kB)
Collecting Adafruit-PureIO==1.1.11 (from -r /usr/bin/rockpi-quad/requirements.txt (line 9))
  Downloading Adafruit_PureIO-1.1.11-py3-none-any.whl.metadata (3.0 kB)
Collecting pyftdi==0.55.4 (from -r /usr/bin/rockpi-quad/requirements.txt (line 10))
  Downloading pyftdi-0.55.4-py3-none-any.whl.metadata (3.2 kB)
Requirement already satisfied: pyserial==3.5 in /usr/lib/python3/dist-packages (from -r /usr/bin/rockpi-quad/requirements.txt (line 11)) (3.5)
Collecting pyusb==1.2.1 (from -r /usr/bin/rockpi-quad/requirements.txt (line 12))
  Downloading pyusb-1.2.1-py3-none-any.whl.metadata (2.2 kB)
Collecting typing-extensions==4.12.2 (from -r /usr/bin/rockpi-quad/requirements.txt (line 13))
  Downloading typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
Downloading Adafruit_Blinka-8.39.0-py3-none-any.whl (334 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 334.4/334.4 kB 8.6 MB/s eta 0:00:00
Downloading adafruit_circuitpython_busdevice-5.2.9-py3-none-any.whl (7.5 kB)
Downloading adafruit_circuitpython_connectionmanager-3.1.1-py3-none-any.whl (7.8 kB)
Downloading adafruit_circuitpython_framebuf-1.6.5-py3-none-any.whl (9.2 kB)
Downloading adafruit_circuitpython_requests-4.1.4-py3-none-any.whl (10 kB)
Downloading adafruit_circuitpython_ssd1306-2.12.17-py3-none-any.whl (7.6 kB)
Downloading adafruit_circuitpython_typing-1.10.3-py3-none-any.whl (11 kB)
Downloading Adafruit_PlatformDetect-3.72.1-py3-none-any.whl (24 kB)
Downloading Adafruit_PureIO-1.1.11-py3-none-any.whl (10 kB)
Downloading pyftdi-0.55.4-py3-none-any.whl (145 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 145.6/145.6 kB 6.9 MB/s eta 0:00:00
Downloading pyusb-1.2.1-py3-none-any.whl (58 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.4/58.4 kB 4.0 MB/s eta 0:00:00
Downloading typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Installing collected packages: Adafruit-PlatformDetect, typing-extensions, pyusb, Adafruit-PureIO, pyftdi, adafruit-circuitpython-connectionmanager, Adafruit-Blinka, adafruit-circuitpython-requests, adafruit-circuitpython-busdevice, adafruit-circuitpython-typing, adafruit-circuitpython-framebuf, adafruit-circuitpython-ssd1306
Successfully installed Adafruit-Blinka-8.39.0 Adafruit-PlatformDetect-3.72.1 Adafruit-PureIO-1.1.11 adafruit-circuitpython-busdevice-5.2.9 adafruit-circuitpython-connectionmanager-3.1.1 adafruit-circuitpython-framebuf-1.6.5 adafruit-circuitpython-requests-4.1.4 adafruit-circuitpython-ssd1306-2.12.17 adafruit-circuitpython-typing-1.10.3 pyftdi-0.55.4 pyusb-1.2.1 typing-extensions-4.12.2
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Created symlink /etc/systemd/system/multi-user.target.wants/rockpi-quad.service → /usr/lib/systemd/system/rockpi-quad.service.
/var/lib/dpkg/info/rockpi-quad.postinst: line 48: raspi-config: command not found
dpkg: error processing package rockpi-quad (--configure):
 installed rockpi-quad package post-installation script subprocess returned error exit status 127
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
Errors were encountered while processing:
 rockpi-quad
needrestart is being skipped since dpkg has failed
N: Download is performed unsandboxed as root as file '/home/ubuntu/rockpi-quad-0.3.1.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
E: Sub-process /usr/bin/dpkg returned an error code (1)

Since raspi-config is missing I’ve installed it.

$ sudo apt-get install raspi-config
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  alsa-utils libatopology2t64 libfftw3-single3
Suggested packages:
  dialog libfftw3-bin libfftw3-dev
The following NEW packages will be installed:
  alsa-utils libatopology2t64 libfftw3-single3 raspi-config
0 upgraded, 4 newly installed, 0 to remove and 4 not upgraded.
1 not fully installed or removed.
Need to get 1843 kB of archives.
After this operation, 4959 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://ports.ubuntu.com/ubuntu-ports noble/main arm64 libatopology2t64 arm64 1.2.11-1build2 [51.5 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports noble/main arm64 libfftw3-single3 arm64 3.3.10-1ubuntu3 [583 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports noble/main arm64 alsa-utils arm64 1.2.9-1ubuntu5 [1187 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports noble/universe arm64 raspi-config all 20221214-0ubuntu1 [22.3 kB]
Fetched 1843 kB in 1s (1319 kB/s)       
Selecting previously unselected package libatopology2t64:arm64.
(Reading database ... 144987 files and directories currently installed.)
Preparing to unpack .../libatopology2t64_1.2.11-1build2_arm64.deb ...
Unpacking libatopology2t64:arm64 (1.2.11-1build2) ...
Selecting previously unselected package libfftw3-single3:arm64.
Preparing to unpack .../libfftw3-single3_3.3.10-1ubuntu3_arm64.deb ...
Unpacking libfftw3-single3:arm64 (3.3.10-1ubuntu3) ...
Selecting previously unselected package alsa-utils.
Preparing to unpack .../alsa-utils_1.2.9-1ubuntu5_arm64.deb ...
Unpacking alsa-utils (1.2.9-1ubuntu5) ...
Selecting previously unselected package raspi-config.
Preparing to unpack .../raspi-config_20221214-0ubuntu1_all.deb ...
Unpacking raspi-config (20221214-0ubuntu1) ...
Setting up libatopology2t64:arm64 (1.2.11-1build2) ...
Setting up libfftw3-single3:arm64 (3.3.10-1ubuntu3) ...
Setting up rockpi-quad (0.3.1) ...
Requirement already satisfied: Adafruit-Blinka==8.39.0 in /usr/local/lib/python3.12/dist-packages (from -r /usr/bin/rockpi-quad/requirements.txt (line 1)) (8.39.0)
Requirement already satisfied: adafruit-circuitpython-busdevice==5.2.9 in /usr/local/lib/python3.12/dist-packages (from -r /usr/bin/rockpi-quad/requirements.txt (line 2)) (5.2.9)
Requirement already satisfied: adafruit-circuitpython-connectionmanager==3.1.1 in /usr/local/lib/python3.12/dist-packages (from -r /usr/bin/rockpi-quad/requirements.txt (line 3)) (3.1.1)
Requirement already satisfied: adafruit-circuitpython-framebuf==1.6.5 in /usr/local/lib/python3.12/dist-packages (from -r /usr/bin/rockpi-quad/requirements.txt (line 4)) (1.6.5)
Requirement already satisfied: adafruit-circuitpython-requests==4.1.4 in /usr/local/lib/python3.12/dist-packages (from -r /usr/bin/rockpi-quad/requirements.txt (line 5)) (4.1.4)
Requirement already satisfied: adafruit-circuitpython-ssd1306==2.12.17 in /usr/local/lib/python3.12/dist-packages (from -r /usr/bin/rockpi-quad/requirements.txt (line 6)) (2.12.17)
Requirement already satisfied: adafruit-circuitpython-typing==1.10.3 in /usr/local/lib/python3.12/dist-packages (from -r /usr/bin/rockpi-quad/requirements.txt (line 7)) (1.10.3)
Requirement already satisfied: Adafruit-PlatformDetect==3.72.1 in /usr/local/lib/python3.12/dist-packages (from -r /usr/bin/rockpi-quad/requirements.txt (line 8)) (3.72.1)
Requirement already satisfied: Adafruit-PureIO==1.1.11 in /usr/local/lib/python3.12/dist-packages (from -r /usr/bin/rockpi-quad/requirements.txt (line 9)) (1.1.11)
Requirement already satisfied: pyftdi==0.55.4 in /usr/local/lib/python3.12/dist-packages (from -r /usr/bin/rockpi-quad/requirements.txt (line 10)) (0.55.4)
Requirement already satisfied: pyserial==3.5 in /usr/lib/python3/dist-packages (from -r /usr/bin/rockpi-quad/requirements.txt (line 11)) (3.5)
Requirement already satisfied: pyusb==1.2.1 in /usr/local/lib/python3.12/dist-packages (from -r /usr/bin/rockpi-quad/requirements.txt (line 12)) (1.2.1)
Requirement already satisfied: typing-extensions==4.12.2 in /usr/local/lib/python3.12/dist-packages (from -r /usr/bin/rockpi-quad/requirements.txt (line 13)) (4.12.2)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Installation will take effect after reboot!!!
Setting up alsa-utils (1.2.9-1ubuntu5) ...
alsa-restore.service is a disabled or a static unit, not starting it.
alsa-state.service is a disabled or a static unit, not starting it.
Setting up raspi-config (20221214-0ubuntu1) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
Scanning processes...                                                                                                                                                                                       
Scanning processor microcode...                                                                                                                                                                             
Scanning linux images...                                                                                                                                                                                    

Running kernel seems to be up-to-date.

The processor microcode seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.

Rebooted and performed a full-upgrade and now 0.3.1 is working.

1 Like