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

Re: Unable to update or install anything

Post by Chester007 »

Fourdee wrote:
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.
Ah I see.. It's just that those things cost money and currently I don't have the luxury to acquire those if I do troubleshoot the hardware
User avatar
Fourdee
Site Admin
Posts: 2787
Joined: Tue Feb 06, 2007 1:36 pm

Re: Unable to update or install anything

Post by Fourdee »

Chester007 wrote: Ah I see.. It's just that those things cost money and currently I don't have the luxury to acquire those if I do troubleshoot the hardware
No worries, know the feeling :)

Ok, here is the file contents of /var/lib/dpkg/diversions on RPi 3, fresh install :

Code: Select all

/lib/udev/rules.d/75-persistent-net-generator.rules
/lib/udev/rules.d/75-persistent-net-generator.rules.distrib
:
/usr/share/man/man1/sh.1.gz
/usr/share/man/man1/sh.distrib.1.gz
dash
/usr/share/man/man1/config_data.1.gz
/usr/share/man/man1/config_data.diverted.1.gz
libmodule-build-perl
/usr/bin/config_data
/usr/bin/config_data.diverted
libmodule-build-perl
/bin/sh
/bin/sh.distrib
dash
Might also be worth clearing apt cache aswell:

Code: Select all

apt-get clean
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: No worries, know the feeling :)

Ok, here is the file contents of /var/lib/dpkg/diversions on RPi 3, fresh install :

Code: Select all

/lib/udev/rules.d/75-persistent-net-generator.rules
/lib/udev/rules.d/75-persistent-net-generator.rules.distrib
:
/usr/share/man/man1/sh.1.gz
/usr/share/man/man1/sh.distrib.1.gz
dash
/usr/share/man/man1/config_data.1.gz
/usr/share/man/man1/config_data.diverted.1.gz
libmodule-build-perl
/usr/bin/config_data
/usr/bin/config_data.diverted
libmodule-build-perl
/bin/sh
/bin/sh.distrib
dash
Might also be worth clearing apt cache aswell:

Code: Select all

apt-get clean
Thank you! I was about to completely give up on DietPi but once I tried this, everything worked fine! You just made my day, thanks :D

I do understand that I should really not set aside my power problem and I'll attend to that as soon as I can. For the mean time, I'll have fun tinkering with DietPi
User avatar
Fourdee
Site Admin
Posts: 2787
Joined: Tue Feb 06, 2007 1:36 pm

Re: Unable to update or install anything

Post by Fourdee »

You just made my day, thanks
No worries, great to hear this is now working for you :)
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