swupd-client icon indicating copy to clipboard operation
swupd-client copied to clipboard

"swupd diagnose" and "swupd repair" do not repair the System

Open Pamalosebi opened this issue 2 years ago • 1 comments

Describe the bug "swupd diagnose" and "swupd repair" do not repair the System.

To Reproduce Hi there,

I am running Clear Linux for a while now and suddenly while normal usage it crashed (start of Android Studio). To see if there are issues on my system I ran: sudo swupd diagnose

Indeed it showed a whole bunch of missing files and files which have a wrong hash.

So, I ran: sudo swupd repair

The output is:

Inspected 248584 files 2169 files were missing 2169 of 2169 missing files were replaced 0 of 2169 missing files were not replaced 881 files did not match 881 of 881 files were repaired 0 of 881 files were not repaired (…) Repair successful

I rebooted the system and checked again using: sudo swupd diagnose

Same output… Of cause I start the repair again. Which resulted in the same output as before. It keeps going that way. At this point I am not able to “repair” the system.

Others I have talked to had the same issue. Am I doing something wrong?

Expected behavior Use swupds repair funktionality and it acutally does repair the system.

Environment (please complete the following information):

  • Clear Linux OS Version: 35130
  • Platform: Notebook, Intel i7 8th gen

Pamalosebi avatar Oct 18 '21 10:10 Pamalosebi

we're in the middle of changing how we provide avx2/512 binaries and libraries and swupd repair will result in a correct system, but will unfortunately complain while doing so. we're looking at how we can make swupd not complain about a correct setup in the new avx2/512 world

On Mon, Oct 18, 2021 at 3:16 AM Pamalosebi @.***> wrote:

Describe the bug "swupd diagnose" and "swupd repair" do not repair the System.

To Reproduce Hi there,

I am running Clear Linux for a while now and it suddenly while normal usage it crashed (start of Android Studio). To see if there are issues on my system I ran: sudo swupd diagnose

Indeed it showed a whole bunch of missing files and files which have a wrong hash.

So, I ran: sudo swupd repair

The output is:

Inspected 248584 files 2169 files were missing 2169 of 2169 missing files were replaced 0 of 2169 missing files were not replaced 881 files did not match 881 of 881 files were repaired 0 of 881 files were not repaired (…) Repair successful

I rebooted the system and checked again using: sudo swupd diagnose

Same output… Of cause I start the repair again. Which resulted in the same output as before. It keeps going that way. At this point I am not able to “repair” the system.

Others I have talked to had the same issue. Am I doing something wrong?

Expected behavior Use swupds repair funktionality and it acutally does repair the system.

Environment (please complete the following information):

  • Clear Linux OS Version: 35130
  • Platform: Notebook, Intel i7 8th gen

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/clearlinux/swupd-client/issues/1596, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ54FJ23VEOWBJZAAZ7DVDUHPXZXANCNFSM5GGIELRQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

fenrus75 avatar Oct 18 '21 13:10 fenrus75