Google assistant problem after install Z-WAVE in Matrix creator

I’ve installed Z-WAVE in matrix creator and it run well. Then I’d like to run google assistant in the some matrix creator.

I’ve followe the instruction .

But when I run
sudo apt install matrixio-kernel-modules
it show the error

 $ sudo apt install matrixio-kernel-modules
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  erlang-base erlang-crypto erlang-syntax-tools fonts-lato gyp libboost-thread1.62.0 libdouble-conversion1 libjs-inherits
  libjs-node-uuid libpcre16-3 libqt5concurrent5 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5opengl5
  libqt5printsupport5 libqt5scintilla2-12v5 libqt5scintilla2-l10n libqt5svg5 libqt5widgets5 libqt5x11extras5 libqt5xml5
  libqwt-qt5-6 libruby2.3 libscsynth1 libsctp1 libuv1-dev libxcb-icccm4 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0
  libxcb-xinerama0 libxcb-xkb1 libxkbcommon-x11-0 libxkbcommon0 libyaml-0-2 lxkeymap node-abbrev node-ansi
  node-ansi-color-table node-archy node-async node-balanced-match node-block-stream node-brace-expansion node-builtin-modules
  node-combined-stream node-concat-map node-cookie-jar node-delayed-stream node-forever-agent node-form-data node-fs.realpath
  node-fstream node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs node-hosted-git-info node-inflight
  node-inherits node-ini node-is-builtin-module node-isexe node-json-stringify-safe node-lockfile node-lru-cache node-mime
  node-minimatch node-mkdirp node-mute-stream node-node-uuid node-nopt node-normalize-package-data node-npmlog node-once
  node-osenv node-path-is-absolute node-pseudomap node-qs node-read node-read-package-json node-request node-retry
  node-rimraf node-semver node-sha node-slide node-spdx-correct node-spdx-expression-parse node-spdx-license-ids node-tar
  node-tunnel-agent node-underscore node-validate-npm-package-license node-which node-wrappy node-yallist python-cairo
  python-gobject python-gobject-2 python-gtk2 python-xklavier qt5-gtk-platformtheme qttranslations5-l10n rake ruby
  ruby-did-you-mean ruby-minitest ruby-net-telnet ruby-power-assert ruby-test-unit ruby2.3 rubygems-integration
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  matrixio-kernel-modules
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/16.2 kB of archives.
After this operation, 100 kB of additional disk space will be used.
(Reading database ... 151998 files and directories currently installed.)
Preparing to unpack .../matrixio-kernel-modules_0.1.4_armhf.deb ...
Unpacking matrixio-kernel-modules (0.1.4) ...
dpkg: error processing archive /var/cache/apt/archives/matrixio-kernel-modules_0.1.4_armhf.deb (--unpack):
 unable to make backup link of './boot/overlays/matrixio.dtbo' before installing new version: Operation not permitted
Errors were encountered while processing:
 /var/cache/apt/archives/matrixio-kernel-modules_0.1.4_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

But I continue the installation since I think the matrixio-kernel-modules has been well installed before for running Z-WAVE network.

After I run
~/google-assistant-matrixio/google-matrixio-assistant-hotword --project_id your-dev-project-id --device_model_id your-model-id
It show error

device_model_id: matrix-creator-e7-matrix-creator-p36
device_id: BA335DBF6E9CE9C12B1AAD435015

https://embeddedassistant.googleapis.com/v1alpha2/projects/matrix-creator-e92d7/devices/BA335DBF6E9CE9C12954B1AAD4350185 200
EventType.ON_MUTED_CHANGED
EventType.ON_MEDIA_STATE_IDLE
Traceback (most recent call last):
  File "/home/pi/google-assistant-matrixio/google-matrixio-assistant-hotword", line 11, in <module>
    sys.exit(main())
  File "/home/pi/google-assistant-matrixio/matrixio/hotword.py", line 187, in main
    process_event(event, assistant.device_id)
  File "/home/pi/google-assistant-matrixio/matrixio/hotword.py", line 68, in process_event
    set_everloop_color(0,0,0,10) # blue
  File "/home/pi/google-assistant-matrixio/matrixio/hotword.py", line 53, in set_everloop_color
    with open('/dev/matrixio_everloop','wb') as bin_file:
PermissionError: [Errno 13] Permission denied: '/dev/matrixio_everloop'

I run
ls -l /dev/matrixio_*
the output is
ls: cannot access '/dev/matrixio_*': No such file or directory

So my question is the Matrix creator can be used as ZWAVE controller and google assistant in the same device?

Anyone has a solution for this issure?

Thanks for your answers.

Can you share the output of

lsmod | grep matrix
sudo dpkg -l | grep matrix

$ lsmod | grep matrix

matrixio_codec         16384  2
matrixio_pcm          278528  1
snd_soc_core          188416  2 matrixio_pcm,matrixio_codec
matrixio_uart          16384  0
matrixio_core          16384  2 matrixio_pcm,matrixio_uart
snd_pcm                98304  5 matrixio_pcm,snd_pcm_dmaengine,snd_bcm2835,snd_soc_core

sudo dpkg -l | grep matrix

ii  libmatrixio-creator-hal:armhf         0.3.5                                armhf        Hardware Abstraction Layer for MATRIX.
ii  libmatrixio-malos:armhf               0.1.3                                armhf        Libraries of MATRIX abstraction layer for MOS
ii  libmatrixio-malos-dev                 0.1.3                                armhf        Libraries of MATRIX abstraction layer for MOS
ii  libmatrixio-protos:armhf              0.1.5                                armhf        Protocolbuffers for MATRIX abstraction layer
ii  libmatrixio-protos-dev                0.1.5                                armhf        Protocolbuffers headers for MATRIX abstraction layer
ii  libswresample2:armhf                  7:3.2.10-1~deb9u1+rpt1               armhf        FFmpeg library for audio resampling, rematrixing etc. - runtime files
ii  matrixio-creator-init                 0.4.12                               armhf        Install scripts that can program the MATRIX Creator FPGA and SAM3 IMU.
ii  matrixio-libzwaveip:armhf             0.1.1                                armhf        libzwaveip is a library to control Z-Wave devices from your IP network via a Z/IP Gateway
ii  matrixio-libzwaveip-dev               0.1.1                                armhf        libzwaveip is a library to control Z-Wave devices from your IP network via a Z/IP Gateway
ii  matrixio-malos-zwave                  0.1.5                                armhf        Allows queries to MATRIX Creator hardware via ZMQ.
ii  matrixio-openocd                      1.0.1                                armhf        Open on-chip JTAG debug solution for ARM and MIPS systems
ii  matrixio-protobuf                     3.5.0                                armhf        Protocol Buffers - Google's data interchange format. (From GRPC 3.5.0)
ii  matrixio-xc3sprog                     1.1.1                                armhf        Spartan3, XCF and CPLD JTAG programmer and other utilities.
ii  matrixio-zipgateway                   2.61.0                               armhf        zipgateway built using CMake
ii  matrixio-zwave-utils                  0.2.0                                armhf        Install scripts that can init the Zwave Module in MATRIX Creator.

And I checked /dev/ directory there is no matrixio_everloop , matrixio_regmap file.
/dev $ ls

autofs           gpiochip1  loop7               pts    ram8       tty1   tty23  tty37  tty50  tty7        vcs2   vhci
block            gpiochip2  loop-control        ram0   ram9       tty10  tty24  tty38  tty51  tty8        vcs3   video0
btrfs-control    gpiomem    mapper              ram1   random     tty11  tty25  tty39  tty52  tty9        vcs4   watchdog
bus              hwrng      mem                 ram10  raw        tty12  tty26  tty4   tty53  ttyAMA0     vcs5   watchdog0
cachefiles       initctl    memory_bandwidth    ram11  rfkill     tty13  tty27  tty40  tty54  ttyMATRIX0  vcs6   zero
char             input      mmcblk0             ram12  serial0    tty14  tty28  tty41  tty55  ttyprintk   vcs7
console          kmsg       mmcblk0p1           ram13  serial1    tty15  tty29  tty42  tty56  ttyS0       vcsa
cpu_dma_latency  log        mmcblk0p2           ram14  shm        tty16  tty3   tty43  tty57  uhid        vcsa1
cuse             loop0      mqueue              ram15  snd        tty17  tty30  tty44  tty58  uinput      vcsa2
disk             loop1      net                 ram2   spidev0.1  tty18  tty31  tty45  tty59  urandom     vcsa3
fb0              loop2      network_latency     ram3   stderr     tty19  tty32  tty46  tty6   vchiq       vcsa4
fd               loop3      network_throughput  ram4   stdin      tty2   tty33  tty47  tty60  vcio        vcsa5
full             loop4      null                ram5   stdout     tty20  tty34  tty48  tty61  vc-mem      vcsa6
fuse             loop5      ppp                 ram6   tty        tty21  tty35  tty49  tty62  vcs         vcsa7
gpiochip0        loop6      ptmx                ram7   tty0       tty22  tty36  tty5   tty63  vcs1        vcsm

mmm weird … you should have something like :

Can you remove and install back again the kernel modules?

sudo apt-get remove matrixio-kernel-modules
sudo apt-get install matrixio-kernel-modules

Let me know how it goes

After run sudo apt-get remove matrixio-kernel-modules

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'matrixio-kernel-modules' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  dkms erlang-base erlang-crypto erlang-syntax-tools fonts-lato gyp libboost-thread1.62.0 libdouble-conversion1
  libjs-inherits libjs-node-uuid libpcre16-3 libqt5concurrent5 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5
  libqt5opengl5 libqt5printsupport5 libqt5scintilla2-12v5 libqt5scintilla2-l10n libqt5svg5 libqt5widgets5 libqt5x11extras5
  libqt5xml5 libqwt-qt5-6 libruby2.3 libscsynth1 libsctp1 libuv1-dev libxcb-icccm4 libxcb-keysyms1 libxcb-randr0
  libxcb-render-util0 libxcb-xinerama0 libxcb-xkb1 libxkbcommon-x11-0 libxkbcommon0 libyaml-0-2 lxkeymap node-abbrev
  node-ansi node-ansi-color-table node-archy node-async node-balanced-match node-block-stream node-brace-expansion
  node-builtin-modules node-combined-stream node-concat-map node-cookie-jar node-delayed-stream node-forever-agent
  node-form-data node-fs.realpath node-fstream node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs
  node-hosted-git-info node-inflight node-inherits node-ini node-is-builtin-module node-isexe node-json-stringify-safe
  node-lockfile node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream node-node-uuid node-nopt
  node-normalize-package-data node-npmlog node-once node-osenv node-path-is-absolute node-pseudomap node-qs node-read
  node-read-package-json node-request node-retry node-rimraf node-semver node-sha node-slide node-spdx-correct
  node-spdx-expression-parse node-spdx-license-ids node-tar node-tunnel-agent node-underscore
  node-validate-npm-package-license node-which node-wrappy node-yallist python-cairo python-gobject python-gobject-2
  python-gtk2 python-xklavier qt5-gtk-platformtheme qttranslations5-l10n rake ruby ruby-did-you-mean ruby-minitest
  ruby-net-telnet ruby-power-assert ruby-test-unit ruby2.3 rubygems-integration
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

Then run sudo apt-get install matrixio-kernel-modules

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  erlang-base erlang-crypto erlang-syntax-tools fonts-lato gyp libboost-thread1.62.0 libdouble-conversion1 libjs-inherits
  libjs-node-uuid libpcre16-3 libqt5concurrent5 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5opengl5
  libqt5printsupport5 libqt5scintilla2-12v5 libqt5scintilla2-l10n libqt5svg5 libqt5widgets5 libqt5x11extras5 libqt5xml5
  libqwt-qt5-6 libruby2.3 libscsynth1 libsctp1 libuv1-dev libxcb-icccm4 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0
  libxcb-xinerama0 libxcb-xkb1 libxkbcommon-x11-0 libxkbcommon0 libyaml-0-2 lxkeymap node-abbrev node-ansi
  node-ansi-color-table node-archy node-async node-balanced-match node-block-stream node-brace-expansion node-builtin-modules
  node-combined-stream node-concat-map node-cookie-jar node-delayed-stream node-forever-agent node-form-data node-fs.realpath
  node-fstream node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs node-hosted-git-info node-inflight
  node-inherits node-ini node-is-builtin-module node-isexe node-json-stringify-safe node-lockfile node-lru-cache node-mime
  node-minimatch node-mkdirp node-mute-stream node-node-uuid node-nopt node-normalize-package-data node-npmlog node-once
  node-osenv node-path-is-absolute node-pseudomap node-qs node-read node-read-package-json node-request node-retry
  node-rimraf node-semver node-sha node-slide node-spdx-correct node-spdx-expression-parse node-spdx-license-ids node-tar
  node-tunnel-agent node-underscore node-validate-npm-package-license node-which node-wrappy node-yallist python-cairo
  python-gobject python-gobject-2 python-gtk2 python-xklavier qt5-gtk-platformtheme qttranslations5-l10n rake ruby
  ruby-did-you-mean ruby-minitest ruby-net-telnet ruby-power-assert ruby-test-unit ruby2.3 rubygems-integration
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  matrixio-kernel-modules
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/16.2 kB of archives.
After this operation, 100 kB of additional disk space will be used.
(Reading database ... 152251 files and directories currently installed.)
Preparing to unpack .../matrixio-kernel-modules_0.1.4_armhf.deb ...
Unpacking matrixio-kernel-modules (0.1.4) ...
dpkg: error processing archive /var/cache/apt/archives/matrixio-kernel-modules_0.1.4_armhf.deb (--unpack):
 unable to make backup link of './boot/overlays/matrixio.dtbo' before installing new version: Operation not permitted
Errors were encountered while processing:
 /var/cache/apt/archives/matrixio-kernel-modules_0.1.4_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Then run sudo apt autoremove matrixio-kernel-modules

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'matrixio-kernel-modules' is not installed, so not removed
The following packages will be REMOVED:
  dkms erlang-base erlang-crypto erlang-syntax-tools fonts-lato gyp libboost-thread1.62.0 libdouble-conversion1
  libjs-inherits libjs-node-uuid libpcre16-3 libqt5concurrent5 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5
  libqt5opengl5 libqt5printsupport5 libqt5scintilla2-12v5 libqt5scintilla2-l10n libqt5svg5 libqt5widgets5 libqt5x11extras5
  libqt5xml5 libqwt-qt5-6 libruby2.3 libscsynth1 libsctp1 libuv1-dev libxcb-icccm4 libxcb-keysyms1 libxcb-randr0
  libxcb-render-util0 libxcb-xinerama0 libxcb-xkb1 libxkbcommon-x11-0 libxkbcommon0 libyaml-0-2 lxkeymap node-abbrev
  node-ansi node-ansi-color-table node-archy node-async node-balanced-match node-block-stream node-brace-expansion
  node-builtin-modules node-combined-stream node-concat-map node-cookie-jar node-delayed-stream node-forever-agent
  node-form-data node-fs.realpath node-fstream node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs
  node-hosted-git-info node-inflight node-inherits node-ini node-is-builtin-module node-isexe node-json-stringify-safe
  node-lockfile node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream node-node-uuid node-nopt
  node-normalize-package-data node-npmlog node-once node-osenv node-path-is-absolute node-pseudomap node-qs node-read
  node-read-package-json node-request node-retry node-rimraf node-semver node-sha node-slide node-spdx-correct
  node-spdx-expression-parse node-spdx-license-ids node-tar node-tunnel-agent node-underscore
  node-validate-npm-package-license node-which node-wrappy node-yallist python-cairo python-gobject python-gobject-2
  python-gtk2 python-xklavier qt5-gtk-platformtheme qttranslations5-l10n rake ruby ruby-did-you-mean ruby-minitest
  ruby-net-telnet ruby-power-assert ruby-test-unit ruby2.3 rubygems-integration
0 upgraded, 0 newly installed, 116 to remove and 2 not upgraded.
After this operation, 91.9 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 152251 files and directories currently installed.)
Removing dkms (2.3-2) ...
Removing erlang-syntax-tools (1:19.2.1+dfsg-2+deb9u1) ...
Removing erlang-crypto (1:19.2.1+dfsg-2+deb9u1) ...
Removing erlang-base (1:19.2.1+dfsg-2+deb9u1) ...
Searching for services which depend on erlang and should be stopped...none found.
Killing epmd...it is not running.
Removing fonts-lato (2.0-1) ...
Removing gyp (0.1+20150913git1f374df9-1) ...
Removing libscsynth1 (1:3.7.0~repack-4) ...
Removing libboost-thread1.62.0:armhf (1.62.0+dfsg-4) ...
Removing qt5-gtk-platformtheme:armhf (5.7.1+dfsg-3+rpi1) ...
Removing libqt5xml5:armhf (5.7.1+dfsg-3+rpi1) ...
Removing libqwt-qt5-6 (6.1.2-6) ...
Removing libqt5svg5:armhf (5.7.1~20161021-2) ...
Removing node-tar (2.2.1-1) ...
Removing node-block-stream (0.0.9-1) ...
Removing node-fstream-ignore (0.0.6-2) ...
Removing node-fstream (1.0.10-1) ...
Removing node-rimraf (2.5.4-2) ...
Removing node-request (2.26.1-1) ...
Removing node-node-uuid (1.4.0-1) ...
Removing libjs-node-uuid (1.4.0-1) ...
Removing libqt5concurrent5:armhf (5.7.1+dfsg-3+rpi1) ...
Removing libqt5x11extras5:armhf (5.7.1~20161021-2) ...
Removing libqt5opengl5:armhf (5.7.1+dfsg-3+rpi1) ...
Removing libqt5scintilla2-12v5 (2.9.3+dfsg-4) ...
Removing libqt5printsupport5:armhf (5.7.1+dfsg-3+rpi1) ...
Removing libqt5scintilla2-l10n (2.9.3+dfsg-4) ...
Removing libsctp1:armhf (1.0.17+dfsg-1) ...
Removing libuv1-dev:armhf (1.9.1-3) ...
Removing lxkeymap (0.8.0~bzr25-1+rpi3) ...
Removing node-nopt (3.0.6-3) ...
Removing node-abbrev (1.0.9-1) ...
Removing node-ansi-color-table (1.0.0-1) ...
Removing node-npmlog (0.0.4-1) ...
Removing node-ansi (0.3.0-2) ...
Removing node-archy (1.0.0-1) ...
Removing node-form-data (0.1.0-1) ...
Removing node-async (0.8.0-1) ...
Removing node-read-package-json (1.2.4-1) ...
Removing node-normalize-package-data (2.3.5-2) ...
Removing node-is-builtin-module (1.0.0-1) ...
Removing node-builtin-modules (1.1.1-1) ...
Removing node-combined-stream (0.0.5-1) ...
Removing node-cookie-jar (0.3.1-1) ...
Removing node-delayed-stream (0.0.5-1) ...
Removing node-forever-agent (0.5.1-1) ...
Removing node-github-url-from-git (1.4.0-1) ...
Removing node-graceful-fs (4.1.11-1) ...
Removing node-hosted-git-info (2.1.5-1) ...
Removing node-ini (1.1.0-1) ...
Removing node-which (1.2.11-1) ...
Removing node-isexe (1.1.2-1) ...
Removing node-json-stringify-safe (5.0.0-1) ...
Removing node-lockfile (0.4.1-1) ...
Removing node-lru-cache (4.0.2-1) ...
Removing node-mime (1.3.4-1) ...
Removing node-mkdirp (0.5.0-1) ...
Removing node-read (1.0.7-1) ...
Removing node-mute-stream (0.0.7-1) ...
Removing node-osenv (0.1.0-1) ...
Removing node-pseudomap (1.0.2-1) ...
Removing node-qs (2.2.4-1) ...
Removing node-retry (0.6.0-1) ...
Removing node-semver (5.3.0-1) ...
Removing node-sha (1.2.3-1) ...
Removing node-slide (1.1.4-1) ...
Removing node-validate-npm-package-license (3.0.1-1) ...
Removing node-spdx-correct (1.0.2-1) ...
Removing node-spdx-expression-parse (1.0.4-1) ...
Removing node-spdx-license-ids (1.2.2-1) ...
Removing node-tunnel-agent (0.3.1-1) ...
Removing node-underscore (1.8.3~dfsg-1) ...
Removing node-yallist (2.0.0-1) ...
Removing python-gtk2 (2.24.0-5.1) ...
Removing python-cairo (1.8.8-2.2) ...
Removing python-xklavier (0.4-4) ...
Removing python-gobject (3.22.0-2) ...
Removing python-gobject-2 (2.28.6-13) ...
Removing qttranslations5-l10n (5.7.1~20161021-1) ...
Removing libqt5widgets5:armhf (5.7.1+dfsg-3+rpi1) ...
Removing node-glob (7.1.1-1) ...
Removing node-inherits (2.0.3-1) ...
Removing libjs-inherits (2.0.3-1) ...
Removing libqt5gui5:armhf (5.7.1+dfsg-3+rpi1) ...
Removing libqt5network5:armhf (5.7.1+dfsg-3+rpi1) ...
Removing libqt5dbus5:armhf (5.7.1+dfsg-3+rpi1) ...
Removing libxcb-icccm4:armhf (0.4.1-1) ...
Removing libxcb-keysyms1:armhf (0.4.0-1) ...
Removing libxcb-randr0:armhf (1.12-1) ...
Removing libxcb-render-util0:armhf (0.3.9-1) ...
Removing libxcb-xinerama0:armhf (1.12-1) ...
Removing libxkbcommon-x11-0:armhf (0.7.1-2~deb9u1) ...
Removing libxcb-xkb1:armhf (1.12-1) ...
Removing libxkbcommon0:armhf (0.7.1-2~deb9u1) ...
Removing node-minimatch (3.0.3-1) ...
Removing node-brace-expansion (1.1.6-1+deb9u1) ...
Removing node-balanced-match (0.4.2-1) ...
Removing node-concat-map (0.0.1-1) ...
Removing node-fs.realpath (1.0.0-1) ...
Removing node-inflight (1.0.6-1) ...
Removing node-once (1.4.0-2) ...
Removing node-path-is-absolute (1.0.0-1) ...
Removing node-wrappy (1.0.2-1) ...
Removing libqt5core5a:armhf (5.7.1+dfsg-3+rpi1) ...
Removing libdouble-conversion1:armhf (2.0.1-4) ...
Removing libpcre16-3:armhf (2:8.39-3) ...
Removing ruby (1:2.3.3) ...
Removing ruby2.3 (2.3.3-1+deb9u1+rpi1) ...
Removing libruby2.3:armhf (2.3.3-1+deb9u1+rpi1) ...
Removing rake (10.5.0-2) ...
Removing libyaml-0-2:armhf (0.1.7-2) ...
Removing ruby-did-you-mean (1.0.0-2) ...
Removing ruby-minitest (5.9.0-1) ...
Removing ruby-net-telnet (0.1.1-2) ...
Removing ruby-test-unit (3.1.7-2) ...
Removing ruby-power-assert (0.3.0-1) ...
Removing rubygems-integration (1.11) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for gnome-menus (3.13.3-9) ...
Processing triggers for fontconfig (2.11.0-6.7) ...

Then run sudo apt-get install matrixio-kernel-modules again ,can’t install

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  dkms
Suggested packages:
  python3-apport menu
The following NEW packages will be installed:
  dkms matrixio-kernel-modules
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/91.0 kB of archives.
After this operation, 389 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package dkms.
(Reading database ... 149310 files and directories currently installed.)
Preparing to unpack .../archives/dkms_2.3-2_all.deb ...
Unpacking dkms (2.3-2) ...
Preparing to unpack .../matrixio-kernel-modules_0.1.4_armhf.deb ...
Unpacking matrixio-kernel-modules (0.1.4) ...
dpkg: error processing archive /var/cache/apt/archives/matrixio-kernel-modules_0.1.4_armhf.deb (--unpack):
 unable to make backup link of './boot/overlays/matrixio.dtbo' before installing new version: Operation not permitted
Errors were encountered while processing:
 /var/cache/apt/archives/matrixio-kernel-modules_0.1.4_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

What OS are you using?

uname -a

uname -a
Linux raspb 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l GNU/Linux

Can you try:

  • sudo apt-get remove matrixio-kernel-modules
  • Then do:
sudo rm -rf /boot/overlays/matrixio.dtbo
sudo rm -rf /lib/modules/$(shell uname -r)/kernel/drivers/mfd/matrixio*.ko
  • Then install again : sudo apt-get install matrixio-kernel-modules

Sorry for the back and forth