Repurposing an old Raspberry Pi B+ and ran into an issue after imaging Raspbian Stretch Lite during the boot up and afterwards was barraged with a series of errors.

ERROR: object '/usr/lib/arm-linux-gnueabihf/' from /etc/ cannot be preloaded (cannot open shared object file): ignored.

Trying to run anything resulted in more library errors. apt, raspbi-update and snap all failed to run. Nano was one of the few programs that would run and I tried commenting out the line in /etc/ as some people suggested but after restarting the issue seemed to be worse.

Doing some research looks like this is an issue with snapd and may be a regression. This was with the 2018-11-13 release.

The work around for me was to grab an earlier Jessie image and then update to Stretch.

To do so first update and install any upgrades

sudo apt-get update && sudo apt-get dist-upgrade

Then modify the apt-sources list files, replacing 'jessie' with 'stretch'

sudo sed -i /deb/s/jessie/stretch/g /etc/apt/sources.list

sudo sed -i /deb/s/jessie/stretch/g /etc/apt/sources.list.d/*.list

Then update and upgrade the packages, this will take a while to run

sudo apt-get upgrade && sudo apt-get dist-upgrade