Portability script failing on Raspbian 10 Buster 32bit

I’ve been trying to convert my current raspbian install to the Le Potato using the portability script. However I keep getting the following errors;

2023-05-23 15:57:21 (17.2 MB/S) - "/usr/share/keyrings/libre-computer-deb.gpg'saved[3052/3052

Hit:1 /deb.debian.org/debian buster InRelease

Hit:2 /deb.debian.org/debian buster-updates InRelease

Get:3 /raspbian.raspberrypi.org/raspbian buster InRelease (15.0 kB]

Hit:4 archive.raspberrypi.org/debian buster InRelease

Hit:5 https://deb. Libre.computer/repo Linux InRelease

Fetched 15.0 kB in 3s (4,860 B/s)

Reading package Lists... Done

Building dependency tree

Reading state information... Done

All packages are up to date

shim-signed:arm64 was already set on hold.

Reading package Lists... Done

Building dependency tree

Reading state information... Done

Some packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable

distribution that some required packages have not yet been created

or been moved out of Incoming.

The following information may help to resolve the situation:

The following packages have unmet dependencies:

grub-efi-arm64:arm64 : Depends: grub-common:arm64 (= 2.06-3-deb10u1)

Depends: grubz-common: arm64 (= 2.06-3-debilui)

Depends: grub-efi-arm64-bin:arm64 (= 2.06-3-deb10u1) but it is not going to be installed

E: Unable to correct problems, you have held broken packages.

Any help would be greatly appreciated!

What happens when you run sudo apt install grub-efi-arm64-bin?

It throws the same error saying that it requires dependancies but they won’t be installed. The cycle continues. I’ve also tried a basic apt-get upgrade but that didn’t fix anything.

Try running the following:

sudo apt remove shim-signed

If that does not work, try:

sudo apt install --no-install-recommends grub-efi-arm64

If both these do not work, let us know.

When I attempted to removed shim-signed, it said it wasn’t installed. When I tried to install shim-signed just to see what would happen… dependency error.

Then when I tried the second command it gave me the same dependency error.

We just ran the tool on a clean Raspbian 10 Desktop image. Where did you get the image you are using?

$ sudo ./oneshot.sh aml-s905x-cc
This script is designed to run on existing Raspbian images and enables them               
to boot on any Libre Computer board. It uses an upstream FOSS software stack
developed by the community and Libre Computer to support booting Raspbian.
                                                                                                                                                                                                                   
It is a proof-of-concept and there are no warranties implied or otherwise.
We highly recommend backing up the image if it holds important data in case
something unexpected occurs. While the image should still boot on the original
device, this is not fully tested or guaranteed so continue at your own risk.

This script installs/configures/overwrites data on the device's MicroSD card.
It is designed to run on Raspberry Pi(R)s and requires internet access to 
download additional necessary components. Once the script finishes, the card
should still remain bootable on the original board.

Once completed, move the MicroSD card to the selected Libre Computer Board.

Please type 'continue' without quotes to acknowledge and start the script.

:continue
Executing: /tmp/apt-key-gpghome.FU9Q2qMb2M/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 605C66F00D6C9793
gpg: key 605C66F00D6C9793: public key "Debian Stable Release Key (11/bullseye) <debian-release@lists.debian.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1
Executing: /tmp/apt-key-gpghome.Fci6YpDO1D/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0E98404D386FA1D9
gpg: key 73A4F27B8DD47936: public key "Debian Archive Automatic Signing Key (11/bullseye) <ftpmaster@debian.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1
Executing: /tmp/apt-key-gpghome.F7CE9qQ51j/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 648ACFD622F3D138
gpg: key DC30D7C23CBBABEE: public key "Debian Archive Automatic Signing Key (10/buster) <ftpmaster@debian.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1
Executing: /tmp/apt-key-gpghome.a0WIdOCeW9/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 112695A0E562B32A
gpg: key 4DFAB270CAA96DFA: public key "Debian Security Archive Automatic Signing Key (10/buster) <ftpmaster@debian.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1
Removed /etc/systemd/system/multi-user.target.wants/rpi-eeprom-update.service.
--2023-05-24 15:00:06--  https://deb.libre.computer/repo/libre-computer-deb.gpg
Resolving deb.libre.computer (deb.libre.computer)... 192.53.162.101, 2600:3c00::f03c:93ff:fea1:358c
Connecting to deb.libre.computer (deb.libre.computer)|192.53.162.101|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3052 (3.0K) [application/octet-stream]
Saving to: ‘/usr/share/keyrings/libre-computer-deb.gpg’

/usr/share/keyrings/libre-computer-deb.gpg           100%[=====================================================================================================================>]   2.98K  --.-KB/s    in 0s      

2023-05-24 15:00:06 (8.36 MB/s) - ‘/usr/share/keyrings/libre-computer-deb.gpg’ saved [3052/3052]

Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
Get:2 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]                                                                                                      
Get:3 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]                                                                                                                                   
Get:4 https://deb.libre.computer/repo linux InRelease [5,174 B]                                                                                                          
Get:5 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB]                                                                                                
Get:6 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]                    
Get:7 http://deb.debian.org/debian buster/main arm64 Packages [7,737 kB]
Get:8 http://deb.debian.org/debian buster/main Translation-en [5,969 kB]
Get:9 http://deb.debian.org/debian buster-updates/main arm64 Packages [8,780 B]
Get:10 http://deb.debian.org/debian buster-updates/main Translation-en [6,915 B]
Get:11 http://security.debian.org/debian-security buster/updates/main arm64 Packages [486 kB]
Get:12 http://security.debian.org/debian-security buster/updates/main Translation-en [268 kB]
Get:13 https://deb.libre.computer/repo linux/main arm64 Packages [19.6 kB]
Get:14 http://archive.raspberrypi.org/debian buster/main armhf Packages [400 kB]
Get:15 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB]
Fetched 28.2 MB in 36s (779 kB/s)                                                                                                                                                                                 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
12 packages can be upgraded. Run 'apt list --upgradable' to see them.
shim-signed:arm64 set on hold.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  efibootmgr grub-common grub-efi-arm64-bin:arm64 grub-efi-arm64-signed:arm64 grub2-common libefiboot1 libefivar1 linux-headers-6.1.29-06024-gb4330b3386e5:arm64 linux-image-6.1.29-06024-gb4330b3386e5:arm64
  os-prober
Suggested packages:
  multiboot-doc mtools xorriso
Recommended packages:
  shim-signed:arm64
The following NEW packages will be installed:
  efibootmgr grub-common grub-efi-arm64:arm64 grub-efi-arm64-bin:arm64 grub-efi-arm64-signed:arm64 grub2-common libefiboot1 libefivar1 linux-headers-6.1.29-06024-gb4330b3386e5:arm64
  linux-headers-lc-lts-arm64:arm64 linux-image-6.1.29-06024-gb4330b3386e5:arm64 linux-image-lc-lts-arm64:arm64 os-prober
0 upgraded, 13 newly installed, 0 to remove and 12 not upgraded.
Need to get 55.1 MB of archives.
After this operation, 366 MB of additional disk space will be used.
Get:1 http://security.debian.org/debian-security buster/updates/main arm64 grub-efi-arm64-signed arm64 1+2.06+3~deb10u3 [1,217 kB]
Get:2 http://security.debian.org/debian-security buster/updates/main arm64 grub-efi-arm64-bin arm64 2.06-3~deb10u3 [1,401 kB]                                  
Get:3 http://security.debian.org/debian-security buster/updates/main arm64 grub-efi-arm64 arm64 2.06-3~deb10u3 [40.2 kB]
Get:4 https://deb.libre.computer/repo linux/main arm64 linux-headers-6.1.29-06024-gb4330b3386e5 arm64 6.1.29-06024-gb4330b3386e5-1 [8,284 kB]
Get:5 https://deb.libre.computer/repo linux/main arm64 linux-headers-lc-lts-arm64 arm64 6.1.29-06024-gb4330b3386e5-1 [1,676 B]
Get:6 https://deb.libre.computer/repo linux/main arm64 linux-image-6.1.29-06024-gb4330b3386e5 arm64 6.1.29-06024-gb4330b3386e5-1 [40.8 MB]
Get:7 http://raspbian.mirror.axinja.net/raspbian buster/main armhf libefivar1 armhf 37-2+deb10u1 [43.5 kB]
Get:8 http://raspbian.mirror.axinja.net/raspbian buster/main armhf libefiboot1 armhf 37-2+deb10u1 [41.4 kB]                     
Get:9 http://raspbian.mirror.axinja.net/raspbian buster/main armhf efibootmgr armhf 15-1 [30.9 kB]                                
Get:10 http://raspbian.mirror.axinja.net/raspbian buster/main armhf grub-common armhf 2.06-3~deb10u3 [2,473 kB]                  
Get:11 http://raspbian.mirror.axinja.net/raspbian buster/main armhf grub2-common armhf 2.06-3~deb10u3 [789 kB]                     
Get:12 http://raspbian.mirror.axinja.net/raspbian buster/main armhf os-prober armhf 1.77 [26.0 kB]                                
Get:13 https://deb.libre.computer/repo linux/main arm64 linux-image-lc-lts-arm64 arm64 6.1.29-06024-gb4330b3386e5-1 [1,676 B]                                                                                     
Fetched 55.1 MB in 7s (7,635 kB/s)                                                                                                                                                                                
 [.............................................................................................................................................................................................................] 
(Reading database ... 99388 files and directories currently installed.)........................................................................................................................................] 
Preparing to unpack .../00-libefivar1_37-2+deb10u1_armhf.deb ...
Unpacking libefivar1:armhf (37-2+deb10u1) ...
Selecting previously unselected package libefiboot1:armhf.
Preparing to unpack .../01-libefiboot1_37-2+deb10u1_armhf.deb ...
Unpacking libefiboot1:armhf (37-2+deb10u1) ...
Selecting previously unselected package efibootmgr.
Preparing to unpack .../02-efibootmgr_15-1_armhf.deb ...
Unpacking efibootmgr (15-1) ...
Selecting previously unselected package grub-common.
Preparing to unpack .../03-grub-common_2.06-3~deb10u3_armhf.deb ...
Unpacking grub-common (2.06-3~deb10u3) ...
Selecting previously unselected package grub-efi-arm64-signed:arm64.
Preparing to unpack .../04-grub-efi-arm64-signed_1+2.06+3~deb10u3_arm64.deb ...
Unpacking grub-efi-arm64-signed:arm64 (1+2.06+3~deb10u3) ...
Selecting previously unselected package grub2-common.
Preparing to unpack .../05-grub2-common_2.06-3~deb10u3_armhf.deb ...
Unpacking grub2-common (2.06-3~deb10u3) ...
Selecting previously unselected package linux-headers-6.1.29-06024-gb4330b3386e5:arm64.
Preparing to unpack .../06-linux-headers-6.1.29-06024-gb4330b3386e5_6.1.29-06024-gb4330b3386e5-1_arm64.deb ...
Unpacking linux-headers-6.1.29-06024-gb4330b3386e5:arm64 (6.1.29-06024-gb4330b3386e5-1) ...
Selecting previously unselected package linux-headers-lc-lts-arm64:arm64.
Preparing to unpack .../07-linux-headers-lc-lts-arm64_6.1.29-06024-gb4330b3386e5-1_arm64.deb ...
Unpacking linux-headers-lc-lts-arm64:arm64 (6.1.29-06024-gb4330b3386e5-1) ...
Selecting previously unselected package linux-image-6.1.29-06024-gb4330b3386e5:arm64.
Preparing to unpack .../08-linux-image-6.1.29-06024-gb4330b3386e5_6.1.29-06024-gb4330b3386e5-1_arm64.deb ...
Unpacking linux-image-6.1.29-06024-gb4330b3386e5:arm64 (6.1.29-06024-gb4330b3386e5-1) ...
Selecting previously unselected package linux-image-lc-lts-arm64:arm64.
Preparing to unpack .../09-linux-image-lc-lts-arm64_6.1.29-06024-gb4330b3386e5-1_arm64.deb ...
Unpacking linux-image-lc-lts-arm64:arm64 (6.1.29-06024-gb4330b3386e5-1) ...
Selecting previously unselected package os-prober.
Preparing to unpack .../10-os-prober_1.77_armhf.deb ...
Unpacking os-prober (1.77) ...
Selecting previously unselected package grub-efi-arm64-bin:arm64.
Preparing to unpack .../11-grub-efi-arm64-bin_2.06-3~deb10u3_arm64.deb ...
Unpacking grub-efi-arm64-bin:arm64 (2.06-3~deb10u3) ...
Selecting previously unselected package grub-efi-arm64:arm64.
Preparing to unpack .../12-grub-efi-arm64_2.06-3~deb10u3_arm64.deb ...
Unpacking grub-efi-arm64:arm64 (2.06-3~deb10u3) ...
Setting up libefivar1:armhf (37-2+deb10u1) ...
Setting up linux-image-6.1.29-06024-gb4330b3386e5:arm64 (6.1.29-06024-gb4330b3386e5-1) ...
update-initramfs: Generating /boot/initrd.img-6.1.29-06024-gb4330b3386e5
Setting up linux-headers-6.1.29-06024-gb4330b3386e5:arm64 (6.1.29-06024-gb4330b3386e5-1) ...
Setting up linux-image-lc-lts-arm64:arm64 (6.1.29-06024-gb4330b3386e5-1) ...
Setting up libefiboot1:armhf (37-2+deb10u1) ...
Setting up grub-common (2.06-3~deb10u3) ...
Setting up os-prober (1.77) ...
Setting up linux-headers-lc-lts-arm64:arm64 (6.1.29-06024-gb4330b3386e5-1) ...
Setting up grub-efi-arm64-bin:arm64 (2.06-3~deb10u3) ...
Setting up efibootmgr (15-1) ...
Setting up grub-efi-arm64-signed:arm64 (1+2.06+3~deb10u3) ...
Setting up grub2-common (2.06-3~deb10u3) ...
Setting up grub-efi-arm64:arm64 (2.06-3~deb10u3) ...

Creating config file /etc/default/grub with new version
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for install-info (6.5.0.dfsg.1-4+b1) ...
Processing triggers for libc-bin (2.28-10+rpt2+rpi1+deb10u1) ...
Installing for arm64-efi platform.
Installation finished. No error reported.
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-6.1.29-06024-gb4330b3386e5
Found initrd image: /boot/initrd.img-6.1.29-06024-gb4330b3386e5
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Raspbian GNU/Linux 10 (buster) on /dev/mmcblk0p2
done
--2023-05-24 15:04:00--  http://boot.libre.computer/ci/aml-s905x-cc
Resolving boot.libre.computer (boot.libre.computer)... 192.53.162.101, 2600:3c00::f03c:93ff:fea1:358c
Connecting to boot.libre.computer (boot.libre.computer)|192.53.162.101|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 851968 (832K) [application/octet-stream]
Saving to: ‘/tmp/tmp.FrMBBxkVd4’

/tmp/tmp.FrMBBxkVd4                                  100%[=====================================================================================================================>] 832.00K  3.07MB/s    in 0.3s    

2023-05-24 15:04:00 (3.07 MB/s) - ‘/tmp/tmp.FrMBBxkVd4’ saved [851968/851968]

1664+0 records in
1664+0 records out
851968 bytes (852 kB, 832 KiB) copied, 0.0897584 s, 9.5 MB/s
Modifications complete. Press any key to shutdown. Once the green LED stops blinking and turns off for 10 seconds, remove power and move the MicroSD card to the Libre Computer Board.

I’m using the BlueWave’s studio Raspbian 10 32bit OpenAuto Pro image. It shouldn’t have any other modification to it that cause the script to fail. I am using a Raspberry Pi3.

We have updated the code. Check that you are entering the right board name when you run the tool.

Unfortunately the updated script did not work and I am still receiving the same original error. I noticed in the error it says that shim-signed:arm64 is already set on hold. I’m not sure if that information is any use. I double checked and I am putting the correct board when running the script.

Just looked at the logs more carefully. Are they running a 64-bit Raspbian 10?

Can you run sudo dpkg --print-architecture and sudo dpkg --print-foreign-architecture and post the result?

64 bit Raspbian 10 is not supported per the readme.

The first one printed out armhf while the other printed out arm64? I’m not entirely sure if this means I have a 64-bit image.

The results of uname -m is armv7l.

That is correct. It seems that your apt sources are setup in an unexpected way. It is pulling arm64 packages when it should be pulling armhf packages. Can you provide the output of sudo grep -r "" /etc/apt/sources.list*.

Looks like you are correct based on what I can make of the logs. I wasn’t able to do a direct copy and paste of the output but here’s an image. Now the main question would be what exactly should I change if it is pulling the wrong architecture packages.

Can you also run sudo cat /etc/os-release? It looks like they modified some system variables so it doesn’t show up as Raspbian anymore.Thus when the script tries to detect Raspbian and make the appropriate changes, it fails to do so. That source list is missing quite a few lines.

Here’s the output;

PRETTY NAME=“Raspbian GNU/Linux 10 (buster)”
NAME= “Raspbian GNU/Linux”
VERSION ID=“10”
VERSION=“10 (buster)”
VERSION CODENAME=buster
ID raspbian
ID LIKE=debian
HOME_URL=“http://www.raspbian.org/
SUPPORT URL=“RaspbianForums - Raspbian
BUGREPORT_URL=“/www.raspbian.org/RaspbianBugs”

When attempting to fix the dependencies, it wants to remove all of these packages below it order to install everything that grub-efi-arm64:arm64 requires. Would following through with this “mass removal” brick the software?

It is also worth mentioning that when trying to install one of the dependencies ‘gcc-8-base:arm64’, apt attempts to remove over 1700 packages.

This was fixed a while ago. Just forgot to post here about the fix.