Reading List

The Selfish Gene
The Psychopath Test: A Journey Through the Madness Industry
Bad Science
The Feynman Lectures on Physics
The Theory of Everything: The Origin and Fate of the Universe


ifknot's favorite books »

Saturday 11 July 2020

PiDP 11 ~/php.sh returns 0 Version GLIBC_2.28 not found



The latest version of smh for the PiDP11 requires glibc 2.8 unfortunately Raspbian stretch has version 2.4 and so your updated install of smh wil not work.

However, it is possible to update stretch to buster and this will solve the problem.

How to do this is a straight cut & paste from DDuck at
 https://www.domoticz.com/forum/viewtopic.php?t=30219

Let’s first update all the currently installed packages by running the following command.
CODE: SELECT ALL
sudo apt update
sudo apt dist-upgrade -y
Next, let’s go ahead and also update the Raspberry Pi’s firmware.
We can do that by running the command below on our Raspbian installation.
CODE: SELECT ALL
sudo rpi-update
Now that we have prepared our Raspbian Stretch installation, we can now start the process of moving to Buster.



To do this, we will need to modify the “/etc/apt/sources.list” file.

Begin modifying the sources file by running the following command.
CODE: SELECT ALL
sudo nano /etc/apt/sources.list
Within this file, find the following line and change “Stretch” to “Buster“.

This change will allow the package manager to search the Raspberry Pi package repository under the “Buster” distribution instead of the “Stretch” distribution.

Find:
CODE: SELECT ALL
deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
and change to:
CODE: SELECT ALL
deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
Once you have replaced all occurrences of “stretch” within the file you can save it by pressing CTRL + X then Y followed by ENTER.

Next we also need to modify the “/etc/apt/sources.list.d/raspi.list” file by running the following command.

sudo nano /etc/apt/sources.list.d/raspi.list
In this file, you need to go ahead and find the following text and change “Stretch” to “Buster“.

Find:
CODE: SELECT ALL
deb http://archive.raspberrypi.org/debian/ stretch main
Replace With:
CODE: SELECT ALL
deb http://archive.raspberrypi.org/debian/ buster main
Once you have again finished switching “Stretch” to “Buster“, you can save the file by pressing CTRL + X then Y and then ENTER.

Now before we do the final push to Raspbian Buster, we will first remove the “apt-listchanges” package.

The reason for removing this package is to give us a faster and smoother upgrading process. Without removing this package, the Raspbian operating system will have to load a fairly large changelog file which will slow down your upgrade process considerably.

Feel free to re-install this package after the upgrade process has completed.

Run the command below to uninstall the “apt-listchanges” package.
CODE: SELECT ALL
sudo apt-get remove apt-listchanges
Finally, with the source files now modified to mention the “Buster” build instead of “Stretch” we are now ready to begin the upgrade process.

The first command will update the package lists stored on the Raspberry Pi. The second command will then update all the packages to their Raspbian Buster versions.
CODE: SELECT ALL
sudo apt update
sudo apt dist-upgrade
Please note that this process can take considerable time as there are a fair few packages that will need to be updated.

Additionally, you may be required to answer prompts, so don’t stray too far from your Raspberry Pi.
(if it stops whit a error try "sudo apt --fix-broken install") It worked for me!!

Next, we need to run a few more commands to ensure we have cleaned up everything leftover from the upgrade.

The first command that we will be running is the package managers “autoremove” command. This command will remove any packages that have been marked as no longer needed due to changed dependencies.

Run the following command to remove these no longer required packages.
CODE: SELECT ALL
sudo apt autoremove -y
Now we need to run the apt package managers “autoclean“.

This autoclean command will clear out the package cache. It automatically removes any package files that are no longer available for download and thus are largely useless.

Use the command below to begin the cleaning process.
CODE: SELECT ALL
sudo apt autoclean
The final thing we should do is restart our Raspberry Pi. Restarting ensures that the Raspberry Pi will load in all the new Buster packages and clear out any old data sitting in memory.

Run the following command to reboot the Raspberry Pi.
CODE: SELECT ALL
sudo reboot
At this point, you should now have successfully updated your Raspberry Pi from Raspbian Stretch to Raspbian Buster and SMH will run.

No comments:

Post a Comment