openhab / openhabian

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

Unable to install frontail on fresh install OH 4 #1841

Closed FrankH1 closed 4 months ago

FrankH1 commented 4 months ago

Issue information:

I did perform a fresh setup to migrate to OH4. Used a new SD card with the image as indicated below Nothing changed there, performed initial setup, when OH was up and running installed successfully Phoscon, Mosquitto, Samba and loaded the previous config from OH 3.3. System runs - I’,m quite happy. Facing Problems because I’m not able to install frontail (option 21). As this is a fresh install - it is obviously something fundamental.

What wonders me additional - that apt-get update is obviously started twice. When I once tried to install frontail the next time I get an additional output (reading package lists... Done E: Could not get lock /var/lib/apt/lists/lock. It is held by process 27578 (apt-get) )- but this disappears after reboot. Started a thread at and got the recommendation to post here.

Debug information:

Please provide all of the output provided by utilizing the debugmode=maximum parameter in the /etc/openhabian.conf file. For more information on how to accomplish this, please see openhabian-DEBUG.md.

sudo openhabian-config
[sudo] password for openhabian:
2024-02-08_19:39:08_CET [openHABian] Checking for root privileges... OK
2024-02-08_19:39:08_CET [openHABian] Loading configuration file '/etc/openhabian                                                      .conf'... OK
2024-02-08_19:39:10_CET [openHABian] openHABian configuration tool version: [ope                                                      nHAB]{2024-02-06T16:24:27+01:00}(a497e54)
2024-02-08_19:39:10_CET [openHABian] Checking for changes in origin branch openH                                                      AB... OK
2024-02-08_19:39:11_CET [openHABian] Switching to branch openHAB... OK
2024-02-08_19:39:11_CET [openHABian] Checking openHAB Signing Key expiry.
2024-02-08_19:39:11_CET [openHABian] Checking expiry date of apt keys... OK
2024-02-08_19:39:11_CET [openHABian] Installing prerequsites for openhab_rules_t                                                      ools for JS Scripting (NodeJS)...
$ nodejs_setup
2024-02-08_19:39:12_CET [openHABian] Adding required keys to apt... OK
2024-02-08_19:39:12_CET [openHABian] Adding NodeSource repository to apt...
$ apt-get update
Hit:1 http://phoscon.de/apt/deconz generic InRelease
Hit:2 http://davesteele.github.io/comitup/repo comitup InRelease
Hit:3 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:4 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:5 https://deb.nodesource.com/node_18.x bullseye InRelease
Hit:6 https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable InRelease
Reading package lists... Done
OK
2024-02-08_19:39:16_CET [openHABian] Installing NodeJS...
$ apt-get install --yes -o DPkg::Lock::Timeout= nodejs npm
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libnode72 : Conflicts: nodejs-legacy
 nodejs : Conflicts: npm
E: Unable to correct problems, you have held broken packages.
FAILED
FAILED
2024-02-08_19:39:23_CET [openHABian] Updating Linux package information... OK
2024-02-08_19:39:23_CET [openHABian] Installing Frontail prerequsites (NodeJS)...
$ nodejs_setup
2024-02-08_19:39:23_CET [openHABian] Adding required keys to apt... OK
2024-02-08_19:39:23_CET [openHABian] Adding NodeSource repository to apt...
$ apt-get update
Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:3 http://davesteele.github.io/comitup/repo comitup InRelease
Hit:4 http://phoscon.de/apt/deconz generic InRelease
Hit:5 https://deb.nodesource.com/node_18.x bullseye InRelease
Hit:6 https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable InRelease
Reading package lists... Done
OK
2024-02-08_19:39:28_CET [openHABian] Installing NodeJS...
$ apt-get install --yes -o DPkg::Lock::Timeout= nodejs npm
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libnode72 : Conflicts: nodejs-legacy
 nodejs : Conflicts: npm
E: Unable to correct problems, you have held broken packages.
FAILED
FAILED
2024-02-08_19:39:34_CET [openHABian] Checking for default openHABian username:password combination... FAILED
2024-02-08_19:39:35_CET [openHABian] We hope you got what you came for! See you again soon ;)
openhabian@openhabian:~ $

System information:

Hardware: Raspi 4 OS: Linux openhabian 6.1.21 Java Runtime Environment: openjdk version “17.0.9” 2023-10-17 OpenJDK Runtime Environment (build 17.0.9+9-Raspbian-1deb11u1rpt1) OpenJDK Client VM (build 17.0.9+9-Raspbian-1deb11u1rpt1, mixed mode, emulated-client) openHAB version: 4.1.1 - release build build from scratch from the following image: openhabian-pi-raspios32-202402051947-git4f124c2-crc903d2975.img.xz

cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
mstormi commented 4 months ago

It's a Debian upstream problem we cannot fix in openHABian.

FrankH1 commented 4 months ago

Shouldn't Option 21 disappear than from openhabian-config if its not working?

mstormi commented 4 months ago

Shouldn't Option 21 disappear than from openhabian-config if its not working?

No.