Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dietpi-update from v7.0.2 to v7.1.2 fails - services hanging #4413

Closed
rhpsFan65 opened this issue May 23, 2021 · 6 comments
Closed

dietpi-update from v7.0.2 to v7.1.2 fails - services hanging #4413

rhpsFan65 opened this issue May 23, 2021 · 6 comments
Labels
ARMv8 Duplicate For issues that are/were already handled within another issue Known Issue 🐛 Solution available 🥂 Definite solution has been done

Comments

@rhpsFan65
Copy link

Details:

  • Date | Sun May 23 15:52:15 CEST 2021
  • Bug report | 95a7d99e-684f-4195-a0a7-fadaa92b659a
  • DietPi version | v7.0.2 (MichaIng/master)
  • Image creator | DietPi Core Team
  • Pre-image | Raspberry Pi OS 64-bit
  • Hardware | RPi 4 Model B (aarch64) (ID=4)
  • Kernel version | Linux Raspi07 5.10.17-v8+ DietPi-Software | ownCloud/Nextcloud: Enable auto backup & recovery & other enhancements #1414 SMP PREEMPT Fri Apr 30 13:23:25 BST 2021 aarch64 GNU/Linux
  • Distro | buster (ID=5,RASPBIAN=0)
  • Command | dpkg --remove-architecture armhf
  • Exit code | 2
  • Software title | DietPi-Patch

Steps to reproduce:

  1. Login with ssh
  2. call sudo Dietpi-update

-> happened the second time now after a restore

Expected behaviour:

finish update without error

Actual behaviour:

Error Message
Some Services are not running any more after the error message

Extra details:

Would be great to get an hint on how to recover without restoring a backup.

  • ...

Additional logs:

dpkg: error: cannot remove architecture 'armhf' currently in use by the database

logs attached
dietpi-update.log
DietpiUpdate210523.txt

@MichaIng MichaIng added Known Issue 🐛 ARMv8 Duplicate For issues that are/were already handled within another issue labels May 23, 2021
@MichaIng
Copy link
Owner

Many thanks for your report.

Here the underlying issue and fix has been applied for v7.2 already: #4338

When you face the error prompt, select "Change command" and replace it with "true" or ":".

Out of interest, which armhf packages have you installed?

dpkg --get-selections '*:armhf' | mawk '{print $1}'

@MichaIng MichaIng added the Solution available 🥂 Definite solution has been done label May 23, 2021
@Joulinar
Copy link
Collaborator

Still I wonder how many people have installed armhf binaries on an aarch64 system 🤔

@MichaIng
Copy link
Owner

Obviously it was possible to install e.g. chromium-browser in some cases. When I tested it last time, I ran into a conflict, but it doesn't seem to be the case always. With v7.1 we switched it to install chromium from the Debian repo instead, i.e. an arm64 package, but here it's v7.0.

@rhpsFan65
Copy link
Author

Dear Micha,

thanks for your quick response. Here is the information requested:

$ dpkg --get-selections '*:armhf' | mawk '{print $1}'
gcc-8-base:armhf
libc6:armhf
libgcc1:armhf
shairport-sync:armhf
wiringpi:armhf

@MichaIng
Copy link
Owner

So it's WiringPi in your case, and ehm Shairport Sync? How did you install the letter one?

I recommend, after DietPi v7.2 has been released and you updated, to install WiringPi via dietpi-software and remove the DEB package. It's an old version while dietpi-software will use a new repository for it with better RPi4 support, compiling it on your system natively as aarch64 library and binary: #4324

For Shairport Sync we have aarch64 packages, actually: https://dietpi.com/downloads/binaries/buster/shairport-sync_aarch64.deb
But I'll rebuild them later today, as a new version is available.

With the two changes, you would be able to remove the armhf architecture.

@rhpsFan65
Copy link
Author

Thanks for the analysis. I'll modify the installation as you've recommended.
Acutally I did not install this packages explicitly. They must have come along with other packages.

And - your hint solved the problem - Thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARMv8 Duplicate For issues that are/were already handled within another issue Known Issue 🐛 Solution available 🥂 Definite solution has been done
Projects
None yet
Development

No branches or pull requests

3 participants