pop-os / upgrade

Utility for upgrading Pop!_OS and its recovery partition to new releases.
GNU General Public License v3.0
95 stars 29 forks source link

Raspberry Pi support #300

Closed mmstick closed 2 years ago

mmstick commented 2 years ago

Uses if cfg!(aarch64) { "ports" } else { "us" } to get the correct location for Ubuntu's source lists.

Also updates Cargo dependencies.

linuxgnuru commented 2 years ago

When trying to upgrade from 21.10 I got the following error:

system76@pop-os:~$ pop-upgrade release upgrade
checking if pop-upgrade requires an update
Current Release: 21.10
Upgrading to: 22.04
New version available: 9
Event: updating package lists
Release upgrade status: release upgrade aborted: failed to update package lists for the current release

Journalctl is attached, anything else I should send that could help? journal-pi.log

mmstick commented 2 years ago

From the logs, it looks like it errors because the daemon downgraded to the release version of pop-upgrade, which doesn't set the correct URL. You would have to run the client with env S76_TEST=1 to prevent the client from checking for updates and downgrading the daemon while testing the daemon.

linuxgnuru commented 2 years ago

Getting closer, after I ran the command a long time passed before it gave an error:

system76@pop-os:~$ env S76_TEST=1 pop-upgrade release upgrade
Current Release: 21.10
Upgrading to: 22.04
New version available: 10
Release upgrade status: systems are go for launch: reboot now
[ERROR] client/mod.rs:350: breaking connection to pop-upgrade daemon due to inactivity
mmstick commented 2 years ago

Did the upgrade happen after rebooting?

mmstick commented 2 years ago

Upgrade successful on my Pi 400

linuxgnuru commented 2 years ago

Ok after rebooting and re-running the script it looks like it finally actually started the upgrade process.

The first time I only got what I pasted; now i'm getting a progress and percentage.

also, could we add raspi-config? helps in setting certain things on the pi including resizing the sd image

linuxgnuru commented 2 years ago

i'll also test my 8GB pi 4 at home tonight

linuxgnuru commented 2 years ago

Spoke too soon. After it hit 100% I got:

Release upgrade status: release upgrade aborted: unable to upgrade to next release: failed to update sources

Caused by:
     0: failed to update source lists
     1: status is unknown: exist status: 100

Looks like pop-upgrade was updated and got the staging removed again while it was running even with the env S76_TEST=1 option

linuxgnuru commented 2 years ago

Upgrade successful on my Pi 400

I'm curious, what resolution monitor are you using? I wonder if for some reason my work monitor might be too large and is slowing the pi down

mmstick commented 2 years ago

Using a VGA display with 1280x1024 resolution.

linuxgnuru commented 2 years ago

Hmm, I'm at 3840 x 1080 ... I'll try reducing it as well as try in a tty console and not gui; could also just be the factory internet

linuxgnuru commented 2 years ago

Ok, at home with my better internet and a 1440 monitor everything is upgrading perfectly.