-
-
Notifications
You must be signed in to change notification settings - Fork 494
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 fails to complete due to apt-key cannot create /dev/null #7152
Comments
Hmm, I faced a very similar issue some weeks ago. The ls -l /dev/null |
I restored to my most recent backup and this was the result pre dietpi-update After the update to the be clear, the update still fails to complete and it breaks apt completely, giving me the gpgv errors as mentioned in the initial report |
Can you share the full update log: cat /var/tmp/dietpi/logs/dietpi-update.log |
|
Just to be sure, after restoring the backup, you ran We have a 2nd report: #7157 This will re-create the node with the correct permissions: sudo rm /dev/null
sudo mknod -m 0666 /dev/null c 1 3 Since it is a correct node in your case already: sudo chmod 0666 /dev/null |
What I want to verify:
Because interesting is that the timestamp is now older: rm /path/to/file /dev/null Such mistake would however result in a later/current timestamp. Means that e.g. a EDIT: Can you also show the services you have installed? dietpi-services status |
yes, that is correct. i had restored to a working backup. i obtained the output of ls on /dev/null immediately after rebooting. i then attempted dietpi-update again to obtain the second output of ls.
this all occurred while at work and unable to respond as i don't have regular access to any computer during those hours, thus it was done using my mobile and a detached tmux session so i may let things run in the background while i will more than likely lose my ssh connection. i appreciate your quick replies and help in the matter so far! |
Let's go through some possible culprits: ls -l /dev/null # check that it is still has right permissions
apt update
ls -l /dev/null
apt upgrade
ls -l /dev/null
dietpi-services restart
ls -l /dev/null |
Creating a bug report/issue
Required Information
DietPi version |
G_DIETPI_VERSION_CORE=9 G_DIETPI_VERSION_SUB=2 G_DIETPI_VERSION_RC=1 G_GITBRANCH='master' G_GITOWNER='MichaIng'
Distro version |
bookworm 1
Kernel version | 6.1.21-v7+
SBC model | RPi 3B+
Power supply used | stock US included
SD card used | SanDisk ultra 32 GB
Bug report ID | d8fd3fe5-bbd1-4970-a5ce-7e520d61e20a
Steps to reproduce
sudo dietpi-update
Expected behaviour
Successful update/patching from v9.2.1 to v9.6.1
Actual behaviour
Extra details
After the update fails, my shell prompt includes three lines of
-bash: /dev/null: Permission denied
with the only remedy being to restore using dietpi-backup.
I will admit I have quite a bit of additional software installed, including the starship shell prompt, that may be giving me this error. I have found that a manual
sudo apt-get update/upgrade
yields no issues, and other software installed viadietpi-softwate
such as pihole has no issues updating.The text was updated successfully, but these errors were encountered: