elementary / appcenter

Pay-what-you-can app store for elementary OS
https://elementary.io
GNU General Public License v3.0
542 stars 102 forks source link

Runtime updates fail to install on a fresh installation citing "exit status 256" #2126

Open truefakts opened 9 months ago

truefakts commented 9 months ago

What Happened?

Full disclosure, I'm running this in a VM. But I doubt that is related to this issue

I encountered a persistent issue with system updates on a fresh installation of the early access 8.0 build. During the initial out-of-the-box experience, I enabled automatic updates and allowed the machine to idle for approximately 10 minutes. Subsequently, I received a notification to restart the machine to complete the updates, which I did. Upon reboot and login, the update notification reappeared. I repeated the process, restarting the machine two more times. However, every time I log in, I am immediately presented with a notification asking for a restart to finalize the system updates. Next I attempted to apply the updates manually through the App Center. During the manual update attempt, I encountered the following error:

Error Code: Aborted due to failure (While trying to apply extra data: apply_extra script failed, exit status 256)

Clicking the “Repair” button initiated a loading icon for approximately 1 minute, after which the repair animation disappeared. Subsequently, I was prompted to apply updates again, but the same error persisted. To aide in debugging, I will refrain from applying updates manually via the terminal, in case additional information is needed. Please review the attached screenshot of what the user sees. Thanks for reading!

Log output: journalctl.txt

Steps to Reproduce

NOTE: This was tested in a VM using the flatpak of Gnome Boxes. Should be irrelevant, but I wanted to point that out

  1. Install a fresh copy of elementaryos-8.0-daily.20240217.iso
  2. Login and follow the instructions in the greeter to enable automatic system updates
  3. Allow the automated system updates to do their thing
  4. When prompted, reboot the machine
  5. Note that you will be prompted to reboot the machine on every reboot
  6. Forcing updates via the app center will fail resulting in this error code. There is no way to recover from this using the graphical application, including the "Repair" button

Error Code: Aborted due to failure (While trying to apply extra data: apply_extra script failed, exit status 256)

Screenshot from 2024-02-17 16 01 48

Expected Behavior

Unless I'm mistaken, the latest blog post leads me to believe that operating system updates should work the same way it works on Fedora KDE spin. Ie. operating system updates should be applied using the new "offline updates" feature:

  1. The user is prompted to restart the machine to apply updates
  2. The machine reboots, POSTs and Grub loads
  3. Updates apply with a progress bar and some kind of "don't restart your computer" type message appears on the screen
  4. After updates apply, the machine reboots and the next startup is normal.
  5. Similarly, users can shutdown the machine instead of rebooting when prompted. This process repeats on the next boot

OS Version

Early Access

Software Version

Latest release (I have run all updates)

Log Output

See attached file

Hardware Info

This was tested in a VM using Gnome Boxes in a flatpak

Host machine: (probably irrelevant)

VM running elementary OS

lenemter commented 9 months ago

System updates are now managed by System Settings, not AppCenter. I can confirm the reappearing notification though

truefakts commented 9 months ago

Was there a recent change? I retested this again using the latest early access build and I can no longer reproduce. If someone can confirm my new findings, I'll be happy to close this bug report

danirabbit commented 9 months ago

The Ubuntu repos themselves are moving a lot, so it's possible this was a temporary Ubuntu packaging bug. It still might be worth seeing if we can more elegantly handle this kind of package managing error so it's probably worth waiting for a maintainer to check it out

danirabbit commented 9 months ago

Ah you know after looking at this screenshot this is a Flatpak runtime update thing so this is still handled in AppCenter. Gonna transfer back there