Error uploading to Nano 2 from Arduino IDE


#1

I get the following error:

Arduino: 1.8.5 (Linux), Board: “BLE_Nano2”

Build options changed, rebuilding all
Archiving built core (caching) in: /tmp/arduino_cache_880636/core/core_RedBear_nRF52832_BLE_Nano2_3754d5a74cd56fe9722bda3d4d55cc0d.a
Sketch uses 6164 bytes (1%) of program storage space. Maximum is 524288 bytes.
/home/johncog/snap/arduino-mhall119/5/.arduino15/packages/RedBear/tools/openocd/0.10.0-dev-nrf5/bin/openocd -d1 -s /home/johncog/snap/arduino-mhall119/5/.arduino15/packages/RedBear/tools/openocd/0.10.0-dev-nrf5/scripts/ -f /home/johncog/snap/arduino-mhall119/5/.arduino15/packages/RedBear/tools/openocd/0.10.0-dev-nrf5/scripts/interface/cmsis-dap.cfg -f /home/johncog/snap/arduino-mhall119/5/.arduino15/packages/RedBear/tools/openocd/0.10.0-dev-nrf5/scripts/target/nrf52.cfg -c init;reset halt;flash erase_address 0x7F000 0x1000;flash fillw 0x7F000 0x00000001 1;flash fillw 0x7F008 0x00000000 1;program {{/tmp/arduino_build_59359/sketch_jan18a.ino.bin}} verify reset exit 0x1C000
ERROR: ld.so: object ‘/snap/arduino-mhall119/5/lib/bindtextdomain.so’ from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
/home/johncog/snap/arduino-mhall119/5/.arduino15/packages/RedBear/tools/openocd/0.10.0-dev-nrf5/bin/openocd: error while loading shared libraries: libudev.so.1: cannot open shared object file: No such file or directory

Any ideas how to solve this?