-
-
Notifications
You must be signed in to change notification settings - Fork 501
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
Updating Dietpi fails (even after reinstalling) #3148
Comments
@cars11 The lock file error usually occurs when you call APT without root permissions. Please try: The other error indeed looks very strange. |
Thanks, Michalng! Unfortunately, that did not work either. Removed the directories and the lock file, ran both commands to not avail (ofc as root) root@DietPi:/# sudo apt update then running the other command: root@DietPi:/# G_SUDO G_AGUP I'm starting to think my Raspberry Pi is defective. It always has wonky behavior when there is a powerloss or when it loses connection to the router (using it as a pihole) |
@cars11
Otherwise check |
root@DietPi:~/var/lib# cp -a /var/lib/dpkg/status-old /var/lib/dpkg/status |
creating the directory dpkg doesn't fix it wither I have the feeling my raspi is busted. It's behavior is just too erratic. |
@cars11 So backups indeed are done to
Verify that
Compare this with: |
cp: cannot stat '/var/backups/dpkg.status.0': No such file or directory |
@cars11 |
no backups |
root@DietPi:/var# ls -l |
my pihole is shot again too, can't access the web interface. I am going to conclude the rasbpi is broken. |
@cars11 Do you face power losses regularly due to unstable power supply at your location? Indeed this can be a reason for SDcard corruptions and then boot failures or random file losses. In such case I suggest to use a battery/accumulator to power your Pi until static power supply is up again. If your Pi cashes, assure that there is an fsck done on boot (check |
no, no regular power losses at all. But sometimes when I change a lightbulb or something I'll cut the power and then RIP my raspbi, or my cat will pull the on the cable or something. so they really are that sensitive to power loss? in that case it might not make sense to order a new raspbi, which I have just done.. thanks for all your help! |
@cars11 What I would always try first when issues occur regularly, is to reflash the SDcard with a fresh image or test another high quality SDcard. |
I mark this issue as closed now, feel free to reopen if required. |
Steps to reproduce:
run dietpi-update
Expected behaviour:
dietpi is updated
Actual behaviour:
runs until
"[FAILED] DietPi-Update | G_AGUP"
Extra details:
I've tried created the directories below (/var/lib/dpkg/lock and /status)
But it still fails, after that I get different errors:
after creating the above directories asdditional logs ( blue text) spits out:
Hit:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Hit:2 https://packages.sury.org/php stretch InRelease
Hit:3 https://archive.raspberrypi.org/debian stretch InRelease
Reading package lists...
E: Read error - read (21: Is a directory)
E: The package lists or status file could not be parsed or opened.
Additional logs:
Additional Information (if applicable)
Kind of a noob with DietPi/Linux, hope I added enough info.
I've reinstalled once before and neither time was able to run the upgrade function
The text was updated successfully, but these errors were encountered: