[Solved] Unable to Upgrade to Stretch on RPi

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
techwithjake

[Solved] Unable to Upgrade to Stretch on RPi

Post by techwithjake »

I've gone ahead and changed all the sources.list and files in sources.list.d to stretch, just replacing jessie for the most part.
When I do apt-get update everything runs through fine without any errors.

When I do apt-get upgrade though, it runs through fine mostly until it gets to libc6 and libc-bin. It throws the error:

Code: Select all

LD_LIBRARY_PATH contains the traditional /lib directory,
but not the multiarch directory /lib/arm-linux-gnueabihf.
It is not safe to upgrade the C library in this situation;
please remove the /lib/directory from LD_LIBRARY_PATH and
try again.
I've searched on the net and I may not be understanding 100% but I can find the directory /lib/arm-linux-gnueabihf. It's not a sym link and I see plenty of libs in there. It looks like this is the last thing stopping me from upgrading to stretch.

If the answer is to wipe and stretch with a fresh install, I can do that, I'd just much rather not to since I have a lot running on the RPi.

If anyone has any ideas on how to fix this, I'm wide open to suggestions.
Last edited by techwithjake on Thu Dec 14, 2017 3:55 pm, edited 1 time in total.
techwithjake

Re: Unable to Upgrade to Stretch on RPi

Post by techwithjake »

OK. Did a lot more digging and found one way to fix it but hopefully I didn't break anything in the process.

I did

Code: Select all

export LD_LIBRARY_PATH=/lib/arm-linux-gnueabihf
and then ran apt-get -f install and was able to complete it.

Hopefully this'll help anyone else that is running into the same issue.
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: [Solved] Unable to Upgrade to Stretch on RPi

Post by johnvick »

I'm in the process of doing the same on an XU4 and came across the same problems and solution.

John
techwithjake

Re: [Solved] Unable to Upgrade to Stretch on RPi

Post by techwithjake »

While this did work to get things updated, it did break my Home Assistant setup.

Luckily I backed up with the built in DietPi backup system, so I just reverted.

There are more steps needed on to get the upgrade done properly. Just need to take the time to figure it out.
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: [Solved] Unable to Upgrade to Stretch on RPi

Post by johnvick »

I'm just about 100% there only problem is Medusa (manually installed) now no longer runs.

As well as the above the install/upgrade asked me to install busybox but other than that it went OK.


John
Post Reply