Not possible to install plugins after restore configuration

I am experiencing difficulties installing plugins after a restore of my configuration.

Steps:

  • New image on SD card
  • Installing previously used plugins
    • Tuya
    • Onewire

System says it’s updating, but after restart no installed plugins …

Is there a way to troubleshoot this? Maybe manual installation of these plugins?

Regards,

André

Hi Foenky,

hmm… Yes, perhaps try to do that manually. If you ssh into the rpi, try sudo apt-get install nymea-plugin-... If you hit an error message, please let us know.

You could also try to sudo apt-get dist-upgrade to see if any error happen.

Well I definitely got an error:

sudo apt-get install nymea-plugin-onewire
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
libow-3.2-3 libowcapi-3.2-3 owfs-common
The following NEW packages will be installed:
libow-3.2-3 libowcapi-3.2-3 nymea-plugin-onewire owfs-common
0 upgraded, 4 newly installed, 0 to remove and 91 not upgraded.
Need to get 0 B/342 kB of archives.
After this operation, 1,163 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Traceback (most recent call last):
File “/usr/bin/apt-listchanges”, line 38, in
import apt_listchanges, DebianFiles, ALCApt, ALCConfig, ALCSeenDb
File “/usr/share/apt-listchanges/apt_listchanges.py”, line 38, in
import tempfile
File “/usr/lib/python3.7/tempfile.py”, line 44, in
import shutil as _shutil
File “”, line 983, in _find_and_load
File “”, line 967, in _find_and_load_unlocked
File “”, line 677, in _load_unlocked
File “”, line 724, in exec_module
File “”, line 857, in get_code
File “”, line 525, in _compile_bytecode
ValueError: bad marshal data (unknown type code)
Selecting previously unselected package owfs-common.
dpkg: unrecoverable fatal error, aborting:
files list file for package ‘login’ is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)

dpkg config problem?

Regards,

André

Hmm… This really looks like you’ve unplugged the rpi in the middle of an “apt-get update” operation… According to the internet (here) you should be able to fix it with:

sudo dpkg --configure -a
sudo apt update
sudo apt upgrade
1 Like

I will save my curent config and redeploy the image again.
A lot quicker, because the actions to fix it doesn’t work for me.

Thanks!