-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
[FAILED] DietPi-Installer | /var/lib/dpkg/info/base-files.postinst configure #6407
Comments
Many thanks for reporting.
This is a file, not a directory. I checked the package, and it ships So, where did you get the image from? If you used one from Radxa, I highly recommend the one from Armbian instead, which won't cause these issues: https://www.armbian.com/rockpie/ |
Ah, that was written in a rush. None the less, the only way to resolve 1. was to recreate a /root directory, so i guess at some point it must have been removed
This was indeed done directly on a fresh install of Armbian…
Sent from Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: MichaIng ***@***.***>
Sent: Saturday, June 3, 2023 5:13:29 PM
To: MichaIng/DietPi ***@***.***>
Cc: Max Birge ***@***.***>; Author ***@***.***>
Subject: Re: [MichaIng/DietPi] [FAILED] DietPi-Installer | /var/lib/dpkg/info/base-files.postinst configure (Issue #6407)
Many thanks for reporting.
mkdir /root/.profile
This is a file, not a directory. I checked the package, and it ships /root as directory natively, and postinst runs afterwards, copies the .profile (file!) into this directory. So if this did not happen in your case, then something else failed, e.g. an issue with the drive or filesystem. /var/lock should never be a directory but a symlink. Indeed the base-files' postinst script tries to remove it via rmdir if it is not a symlink yet which intentionally fails if it is not empty, as only the admin will know whether the content is still needed or not. However, if whichever base image you used ships /var/lock as directory, then it is a pretty broken image and I would use a different one.
So, where did you get the image from? If you used one from Radxa, I highly recommend the one from Armbian instead, which won't cause these issues: https://www.armbian.com/rockpie/
—
Reply to this email directly, view it on GitHub<#6407 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAU4Z6TCAQ6LIWRCCMCXCLLXJNPCTANCNFSM6AAAAAAYZGFHDM>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Had the same issue on a clean install of Armbian / OrangePi Zero 2. Created root folder and it carried on. |
Did you guys use Bullseye or Bookworm images? |
Bookworm
Sent from Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: MichaIng ***@***.***>
Sent: Saturday, June 10, 2023 1:46:49 PM
To: MichaIng/DietPi ***@***.***>
Cc: Max Birge ***@***.***>; Author ***@***.***>
Subject: Re: [MichaIng/DietPi] [FAILED] DietPi-Installer | /var/lib/dpkg/info/base-files.postinst configure (Issue #6407)
Did you guys use Bullseye or Bookworm images?
—
Reply to this email directly, view it on GitHub<#6407 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAU4Z6UL24ICI5HVDJAUEYDXKRUDTANCNFSM6AAAAAAYZGFHDM>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Hmm, However, the package ships the symlink (as well as the Just tested it and indeed if root@VM-Bookworm:/tmp# rm /var/lock
root@VM-Bookworm:/tmp# mkdir /var/lock
root@VM-Bookworm:/tmp# > /var/lock/test
root@VM-Bookworm:/tmp# /var/lib/dpkg/info/base-files.postinst configure
rmdir: failed to remove '/var/lock': Directory not empty Easy to fix by checking after the package install whether it is a symlink, and if not, just removing it before calling the Now about root@VM-Bookworm:/tmp# rm -R /root/
root@VM-Bookworm:/tmp# dpkg -i base-files_12.4_amd64.deb
(Reading database ... 15843 files and directories currently installed.)
Preparing to unpack base-files_12.4_amd64.deb ...
Unpacking base-files (12.4) over (12.4) ...
Setting up base-files (12.4) ...
root@VM-Bookworm:/tmp# ls -Al /root/
total 0
root@VM-Bookworm:/tmp# /var/lib/dpkg/info/base-files.postinst configure
root@VM-Bookworm:/tmp# ls -Al /root/
total 8.0K
-rw-r--r-- 1 root root 571 Apr 10 2021 .bashrc
-rw-r--r-- 1 root root 161 Jul 9 2019 .profile I will test with an actual Armbian image. |
Found it: root@rockpi-e:/tmp# apt policy base-files
base-files:
Installed: 23.05.1--bookworm-1armbian1-B9e4a
Candidate: 23.05.1--bookworm-1armbian1-B9e4a
Version table:
*** 23.05.1--bookworm-1armbian1-B9e4a 100
100 /var/lib/dpkg/status
12.4 500
500 http://deb.debian.org/debian bookworm/main arm64 Packages
root@rockpi-e:/tmp# apt install --reinstall base-files
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Reinstallation of base-files is not possible, it cannot be downloaded.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Armbian ships their images with an own echo -e '\''Package: base-files\nPin: origin *\nPin-Priority: 1000'\'' > /etc/apt/preferences.d/99dietpi-base-files
apt --reinstall install base-files
rm /etc/apt/preferences.d/99dietpi-base-files |
- DietPi-Installer | Fix two issues found with current Armbian Bookworm images: They ship with an own base-files we want to replace with Debian's and errornously /var/lock being a directory, which fails to be migrated if it has content already. Many thanks to @DigiDr for reporting those issues: #6407
Both issues fixed in |
Creating a bug report/issue
Required Information
I tried the installer on a Rock Pi E (A Radxa device - strangely missing from OOB support), using https://dietpi.com/docs/hardware/#make-your-own-distribution.
It fails at: [FAILED] DietPi-Installer | /var/lib/dpkg/info/base-files.postinst configure in two places:
Otherwise working perfectly!
The text was updated successfully, but these errors were encountered: