openhab / openhabian

openHABian - empowering the smart home, for Raspberry Pi and Debian systems
https://community.openhab.org/t/13379
ISC License
822 stars 251 forks source link

Failed installation v1.0 - "dpkg: regarding xxx.deb containing dpkg, pre-dependency problem" #51

Closed EliasGabrielsson closed 7 years ago

EliasGabrielsson commented 7 years ago

Tried to install the distro according to readme. Got hit by a lot of these errors:

dpkg: regarding .../dpkg_1.17.27_armhf.deb containing dpkg, pre-dependency problem:
 dpkg pre-depends on libbz2-1.0
  libbz2-1.0 is not installed.

I think its best to look at the raw log for precise information.

Hardware: RaspberryPi 2, 16gb sd-card.

installLog.txt

Firepower commented 7 years ago

Same errors here, RPI3 , 16gb sd-card. Unfortunately no log available

ThomDietrich commented 7 years ago

Hey guys, thanks for your issue report. These log lines are uncritical. See https://github.com/debian-pi/raspbian-ua-netinst/issues/434

However, your installLog.txt ends with

[openHABian] Installing additional needed packages... FAILED

which is the real problem here. This routine does not do more than install a few packages through apt, I can't think of a reason why this could fail, other than a network error.

@Firepower There should always be a log file, in really weird constellations it's located under /boot.

I've done my last successful installation, as a proof of operation, the day before yesterday. Please check your network connection and restart with a fresh image flash or by simply typing sudo mv /boot/config-reinstall.txt /boot/config.txt && sudo reboot Up till this day I and other users in the forum had rarely any problems like this.

EliasGabrielsson commented 7 years ago

So the "not installed" statement have nothing to do with dependency for apt-get install, are you sure? I did another reinstallation as I thougth it was network error and get the same errors.

Are there anyway to see the install-log for the part which failed?

ThomDietrich commented 7 years ago

This is really unexpected. I've restarted the setup process on my testing Pi. It's strange that the basic packages are installed but additional packages fail. Could you please execute the step manually. Just connect per SSH and type:

sudo apt install raspi-config oracle-java8-jdk apt-transport-https samba bc sysstat avahi-daemon
ThomDietrich commented 7 years ago

My installation just finished without errors...

[openHABian] === Start executing 'openhabian-setup.sh' ===
[openHABian] Checking for root privileges... OK
[openHABian] Setting timezone (Europe/Berlin) and locale (en_US.UTF-8)... OK
[openHABian] Activating first boot script... OK
[openHABian] Setting the GPU memory split down to 16MB for headless system... OK
[openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... OK
[openHABian] Installing additional needed packages... OK
[openHABian] Adding slightly tuned bash config files to system... OK
[openHABian] Adding slightly tuned vim config file to system... OK
[openHABian] Downloading FireMotD... OK
[openHABian] Preparing Oracle Java 8 Web Upd8 repository... OK
[openHABian] Adding openHAB 2 Snapshot repositories to sources.list.d... OK
[openHABian] Installing openhab2-offline... OK
[openHABian] Activating openHAB... OK
[openHABian] Adding openHAB syntax to vim editor... OK
[openHABian] Adding openHAB syntax to nano editor... OK
[openHABian] Setting up Samba... OK
[openHABian] Installing etckeeper (git based /etc backup)... OK
[openHABian] Applying multiple useful system settings (permissions, ...)... OK
[openHABian] === Finished executing 'openhabian-setup.sh' ===
=== Finished executing post-install.txt. ===
=================================================
Removing cdebootstrap-helper-rc.d... OK
Saving current time for fake-hwclock...
Installation finished at Sat Dec 17 20:09:13 UTC 2016 and took 44 min 30 sec (2670 seconds)

[openHABian] Booting for the first time!
[openHABian] Installing Oracle Java 8 from Web Upd8 repository... OK
[openHABian] Indicating success through green LED heartbeat.

Please execute the command manually to see which package makes problems for you...

EliasGabrielsson commented 7 years ago

Retried installation today and it works. I wonder if my local apt-get servers where down at the installation moments, they had problems before.

Anyway thanks for a great job putting this together Thomas!

Firepower commented 7 years ago

After using another sd-card its working now. Seems like the other card is not working anymore which is the reason for no available logs ;-)

ThomDietrich commented 7 years ago

@EliasGabrielsson after this incident I realized, that this might indeed be needed:

Are there anyway to see the install-log for the part which failed?

It's an easy enhancement. I'll look into that.