[dpkg] Unrecoverable fatal error, aborting

Rich Koshak convinced me to upgrade to OH2 and are having issues with a clean install onto raspbian stretch lite.

attempting to install Zulu java gave me unsigned errors …

W: GPG error: http://repos.azulsystems.com/debian stable Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY B1998361219BD9C9
W: The repository ‘http://repos.azulsystems.com/debian stable Release’ is not signed.
N: Data from such a repository can’t be authenticated and is therefore potentially dangerous to use.

Installed java 8 instead which seems to have been successful

root@raspberrypi:~# javac -version
javac 1.8.0_181
root@raspberrypi:~#

When trying to install OH2 I get the same zulu unsigned error and an dpkg: unrecoverable fatal error,aborting:

See log below …

root@raspberrypi:~# sudo apt-get install openhab2
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
openhab2
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/73.5 MB of archives.
After this operation, 83.4 MB of additional disk space will be used.

Selecting previously unselected package openhab2.
dpkg: unrecoverable fatal error, aborting:
files list file for package ‘libgtk-3-common’ is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)
root@raspberrypi:~#

How can I sort this ?

delete file /etc/apt/sources.list.d/zulu.list

and make sure that you have added the bintray key for the OH2 repo. See more here: https://www.openhab.org/docs/installation/linux.html#package-repository-installation

the azul repos are outdated and you should use these instructions on how to install Zulu: HowTo: Install Zulu Embedded Java on Raspberry Pi 3

Alternatively, you can install Oracle using apt: HowTo: Install Zulu Embedded Java on Raspberry Pi 3

If I am not wrong, you have now installed the 3rd possibility: OpenJDK which is not the best…

Try to deploy zulu using the manual way

I’d suggest you rather move to openHABian (which essentially IS Raspbian stretch + Zulu + openHAB).

Getting the following when attempting to install java 8 …

root@raspberrypi:~# root@raspberrypi:~# apt-get install oracle-java8-installer oracle-java8-set-default
The following NEW packages will be installed:
gsfonts gsfonts-x11 libxfont1 oracle-java8-installer oracle-java8-set-default xfonts-encodings xfonts-utils
0 upgraded, 7 newly installed, 0 to remove and 1 not upgraded.
Need to get 3,939 kB of archives.
After this operation, 6,064 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial/main armhf oracle-java8-installer all 8u191-1~webupd8~1 [33.1 kB]
Get:3 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial/main armhf oracle-java8-set-default all 8u191-1~webupd8~1 [6,968 B]
Get:2 http://mirror.liquidtelecom.com/raspbian/raspbian stretch/main armhf gsfonts all 1:8.11+urwcyr1.0.7~pre44-4.3 [3,126 kB]
Get:4 http://mirror.liquidtelecom.com/raspbian/raspbian stretch/main armhf libxfont1 armhf 1:1.5.2-4 [120 kB]
Get:5 http://mirror.liquidtelecom.com/raspbian/raspbian stretch/main armhf xfonts-encodings all 1:1.0.4-2 [574 kB]
Get:6 http://mirror.liquidtelecom.com/raspbian/raspbian stretch/main armhf xfonts-utils armhf 1:7.7+4 [70.4 kB]
Get:7 http://mirror.liquidtelecom.com/raspbian/raspbian stretch/main armhf gsfonts-x11 all 0.24 [8,922 B]
Fetched 3,939 kB in 10s (392 kB/s)
Preconfiguring packages …
Selecting previously unselected package oracle-java8-installer.
dpkg: unrecoverable fatal error, aborting:
files list file for package ‘libgtk-3-common’ is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)
root@raspberrypi:~#

Should I try a clean install of raspbian or go with openhabian ?

Is opnhabian any different ?

If you are going with a clean install I’d recommend openHABian. It automates all the steps you would take manually to install OH on raspbian and it is known to work.

Will give openhabian a go.
Thanks chaps

1 Like