Unable to update or install anything

Having issues with your DietPi installation, or, found a bug? Post it here.
Chester007
Posts: 32
Joined: Sat Mar 04, 2017 3:57 pm

Unable to update or install anything

Post by Chester007 »

After scrolling through the raspberry pi subreddit, I've read about dietpi and how it's a much better os to use than Raspbian so I wanted to try it.

But once I try to update the system or install even using dietpi-software, I get these errors. I have tried to look for a solution all day but could not find one that would fix my problem.

Image
Image

Any help would be appreciated. Thanks
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Unable to update or install anything

Post by Fourdee »

Hi,

Looks like a system filesystem corruption, possibly linked to insufficient PSU or faulty SD card.

Which PSU/SD?

Please can you complete the following, in the link below and let us know results:
- Section "Before writing this image, lets also complete a full format on the SD card:"
- Re-download image and re-write
https://github.com/Fourdee/DietPi/issue ... -283030267
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Chester007
Posts: 32
Joined: Sat Mar 04, 2017 3:57 pm

Re: Unable to update or install anything

Post by Chester007 »

Thanks for the quick reply!

I'm using a Kingston Class 10 microSD card and I did try to redownload dietpi, reformat (FULL (Erase)) and reinstall the OS into the card but it did not work. I'm going to try Full Erase now. I'm using a generic 2.4A phone charger I found lying here in the house so power can be a suspect. I'll try using a 2.4A Cheero battery and see if that has any effect.
Chester007
Posts: 32
Joined: Sat Mar 04, 2017 3:57 pm

Re: Unable to update or install anything

Post by Chester007 »

Fourdee wrote:Hi,

Looks like a system filesystem corruption, possibly linked to insufficient PSU or faulty SD card.

Which PSU/SD?

Please can you complete the following, in the link below and let us know results:
- Section "Before writing this image, lets also complete a full format on the SD card:"
- Re-download image and re-write
https://github.com/Fourdee/DietPi/issue ... -283030267
Tried doing a full format by following the instructions on the link provided and experimented with all the available phone chargers here ranging from 1A to 2.4A but I still have the problem.
If someone sends me a copy of a working /usr/bin/dpkg/diversions and I replace mine with it, could it work? If not, what else can I do to isolate the problem and find out what's causing it?
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Unable to update or install anything

Post by Fourdee »

Which RPi are you running this on? I'll run some tests here just to ensure no issues with our image.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Chester007
Posts: 32
Joined: Sat Mar 04, 2017 3:57 pm

Re: Unable to update or install anything

Post by Chester007 »

I'm using Raspberry Pi 3 and it's almost brand new. I've only been using it for less than a month now
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Unable to update or install anything

Post by Fourdee »

Chester007 wrote:I'm using Raspberry Pi 3 and it's almost brand new. I've only been using it for less than a month now
Hi,

Ran fresh image and install of samba server on RPi 3, unable to replicate the errors your receiving.

I believe its a hardware issue, whether that is PSU, SD and/or the RPi 3 itself, not sure. But I would recommend trying a non-mobile charger PSU, most of these lack a stable 5v voltage, especially under load.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Chester007
Posts: 32
Joined: Sat Mar 04, 2017 3:57 pm

Re: Unable to update or install anything

Post by Chester007 »

Fourdee wrote:
Chester007 wrote:I'm using Raspberry Pi 3 and it's almost brand new. I've only been using it for less than a month now
Hi,

Ran fresh image and install of samba server on RPi 3, unable to replicate the errors your receiving.

I believe its a hardware issue, whether that is PSU, SD and/or the RPi 3 itself, not sure. But I would recommend trying a non-mobile charger PSU, most of these lack a stable 5v voltage, especially under load.
Alright thanks for all the help, really appreciate it!
It's going to take a while for me to get a hold of a proper PSU so it looks like I'm going to have to stick with Raspbian for a while until I do. Kind of strange that I don't have this error with Raspbian
Chester007
Posts: 32
Joined: Sat Mar 04, 2017 3:57 pm

Re: Unable to update or install anything

Post by Chester007 »

Would it help if I get hold of a working /var/lib/dpkg/diversions and replace mine with it?
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Unable to update or install anything

Post by Fourdee »

Chester007 wrote:Would it help if I get hold of a working /var/lib/dpkg/diversions and replace mine with it?
It may fix that issue now, but I wouldn't recommend it. Instead, try to resolve the underlying issue (Hardware, PSU, SD and/or RPi itself), or things will get much worse.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Post Reply