Learn more about these different git repos.
Other Git URLs
I've just installed Fedora IoT 32 on my RPi3 using arm-image-installer with the following settings:
arm-image-installer
--image=Fedora-IoT-32-20200925.0.aarch64.raw.xz --media=/dev/sdc --addkey <mysshkey> --norootpass --resizefs --target=rpi3
I could connect to the Pi using SSH and do the initial rpm-ostree upgrade, but after that I can't upgrade or install any packages because I get the error "Timeout was reached". The initial upgrade was very slow even though I have a 100Mbps download speed and the RPi is connected over ethernet. I can ping websites just fine and the mirror looks fine, so I also don't know what is causing the slow rpm-ostree speed.
rpm-ostree upgrade
Just for reference, here are the contents of /etc/ostree/remotes.d/fedora-iot.conf:
/etc/ostree/remotes.d/fedora-iot.conf
[remote "fedora-iot"] url=https://ostree.fedoraproject.org/iot gpg-verify=true gpgkeypath=/etc/pki/rpm-gpg/ contenturl=mirrorlist=https://ostree.fedoraproject.org/iot/mirrorlist
When you did the initial upgrade, what version did you upgrade to? I tried to reproduce here but it worked (which could be due to the version I upgraded to):
[root@rpi3-2 ~]# rpm-ostree status State: idle Deployments: * ostree://fedora-iot:fedora/stable/aarch64/iot Version: 32.20201020.0 (2020-10-20T19:58:55Z) Commit: dfaca5bab3a6d09ecf2251c7bf20379a04b65f2398c849f91b37764b2a1247b4 GPGSignature: Valid signature by 97A1AE57C3A2372CCA3A4ABA6C13026D12C944D0
ostree://fedora-iot:fedora/stable/aarch64/iot Version: 32.20200925.0 (2020-09-25T14:30:27Z) Commit: 0fb1a185b604f8fa543c8a2008cb52bdfe8ce27f6b3c238f99454b3c1e6dcaa7 GPGSignature: Valid signature by 97A1AE57C3A2372CCA3A4ABA6C13026D12C944D0 [root@rpi3-2 ~]# rpm-ostree upgrade 1 metadata, 0 content objects fetched; 592 B transferred in 3 seconds; 0 bytes content written No upgrade available. [root@rpi3-2 ~]# rpm-ostree install wget Checking out tree dfaca5b... done Enabled rpm-md repositories: updates updates-modular fedora fedora-cisco-openh264 fedora-modular Updating metadata for 'updates'... done rpm-md repo 'updates'; generated: 2020-10-20T19:46:39Z Updating metadata for 'updates-modular'... done rpm-md repo 'updates-modular'; generated: 2020-10-19T17:15:39Z Updating metadata for 'fedora'... done rpm-md repo 'fedora'; generated: 2020-04-22T22:22:16Z Updating metadata for 'fedora-cisco-openh264'... done rpm-md repo 'fedora-cisco-openh264'; generated: 2020-08-25T19:05:18Z Updating metadata for 'fedora-modular'... done rpm-md repo 'fedora-modular'; generated: 2020-04-22T20:58:40Z Importing rpm-md... done Resolving dependencies... done Will download: 1 package (807.1?kB) Downloading from 'fedora'... done Importing packages... done Checking out packages... done Running pre scripts... done Running post scripts... done Running posttrans scripts... done Writing rpmdb... done Writing OSTree commit... done Staging deployment... done Added: wget-1.20.3-4.fc32.aarch64 Run "systemctl reboot" to start a reboot [root@rpi3-2 ~]# systemctl reboot [root@rpi3-2 ~]# rpm-ostree status State: idle Deployments: * ostree://fedora-iot:fedora/stable/aarch64/iot Version: 32.20201020.0 (2020-10-20T19:58:55Z) BaseCommit: dfaca5bab3a6d09ecf2251c7bf20379a04b65f2398c849f91b37764b2a1247b4 GPGSignature: Valid signature by 97A1AE57C3A2372CCA3A4ABA6C13026D12C944D0 LayeredPackages: wget
ostree://fedora-iot:fedora/stable/aarch64/iot Version: 32.20201020.0 (2020-10-20T19:58:55Z) Commit: dfaca5bab3a6d09ecf2251c7bf20379a04b65f2398c849f91b37764b2a1247b4 GPGSignature: Valid signature by 97A1AE57C3A2372CCA3A4ABA6C13026D12C944D0
I have seen timeout issues in the past on the Raspberry Pi 3, when that happened I was able to:
rpm-ostree upgrade; while [ $? != 0 ]; do rpm-ostree upgrade; done
After a couple of attempts that usually worked. Another option would be to try rolling back to the previous deployment and upgrading from that.
When you did the initial upgrade, what version did you upgrade to?
Not sure, I just ran rpm-ostree upgrade immediately after SSH-ing into the Pi. I've switched to F33-beta since, which also doesn't work and outputs the same error.
rpm-ostree status returns the same error as well, so I can't check which version there either.
rpm-ostree status
I'll try your while loop, but I'm thinking it's maybe something about my install process. Did you also use arm-image-installer?
Edit: Didn't work, so I rebooted and now I can't connect to the Pi using SSH, but I can ping it. I'll wait for your response and then try to install the same way you did.
I used the arm-image-installer, but did not use the "--norootpass" option. I'll see if that breaks something.
I used:
arm-image-installer --image Fedora-IoT-32-20200925.0.aarch64.raw.xz --media /dev/sdb --addkey <ssh key path> --target rpi3 --resizefs
Login to comment on this ticket.