home-assistant / supervised-installer

Installer for a generic Linux system
Apache License 2.0
1.67k stars 580 forks source link

Bug Report: Depends: systemd-resolved but it is not installable #323

Closed amitsamanta996 closed 5 months ago

amitsamanta996 commented 11 months ago

OS Version

Debian GNU/Linux 11 (bullseye)

System Information

Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux

What happened?

Installed with sudo dpkg -i --ignore-depends=systemd-resolved homeassistant-supervised.deb all good with home assistant, but when trying to do anything with apt-get You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: homeassistant-supervised : Depends: systemd-resolved but it is not installable E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

You guys needs to understand people do other stuff in one server not dedicate entirely for just home assistant. Please have a fix for this

Machine Type

raspberrypi4-64

Installer output

No response

Relevant log output

No response

ADR

Code of Conduct

Lockszmith-GH commented 11 months ago

See my answer to #321

Also, the 'you need to understand' is rubbing off in a very wrong way - we (you and I) chose not to go with their fool-proof way - aka a VM - so I don't think this complaint is valid.

There is a solution, it is to install the package correctly (again: see my answer on what/how).

Asking for help - legitimate, complaining - not.

amitsamanta996 commented 11 months ago

thanks, Updating debian fixed the issue, you should allow other docker containers to run like pihole, portainer, etc and not show the system is unhealthy (just a suggestion)

Aleksahek commented 10 months ago
dpkg -i --ignore-depends=systemd-resolved homeassistant-supervised.deb
Selecting previously unselected package homeassistant-supervised.
(Reading database ... 165906 files and directories currently installed.)
Preparing to unpack homeassistant-supervised.deb ...
[warn]
[warn] If you want more control over your own system, run
[warn] Home Assistant as a VM or run Home Assistant Core
[warn] via a Docker container.
[warn]
Adding 'diversion of /etc/NetworkManager/NetworkManager.conf to /etc/NetworkManager/NetworkManager.conf.real by homeassistant-supervised'
Adding 'diversion of /etc/NetworkManager/system-connections/default to /etc/NetworkManager/system-connections/default.real by homeassistant-supervised'
Adding 'diversion of /etc/docker/daemon.json to /etc/docker/daemon.json.real by homeassistant-supervised'
Adding 'diversion of /etc/network/interfaces to /etc/network/interfaces.real by homeassistant-supervised'
Unpacking homeassistant-supervised (1.5.0) ...
dpkg: dependency problems prevent configuration of homeassistant-supervised:
 homeassistant-supervised depends on network-manager; however:
  Package network-manager is not installed.
 homeassistant-supervised depends on systemd-journal-remote; however:
  Package systemd-journal-remote is not installed.

dpkg: error processing package homeassistant-supervised (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 homeassistant-supervised
apt install ./homeassistant-supervised.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'homeassistant-supervised' instead of './homeassistant-supervised.deb'
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:
 systemd-resolved : Depends: systemd (= 252.5-2~bpo11+1) but 247.3-7+deb11u4 is to be installed
                    Breaks: systemd (< 251.3-2~) but 247.3-7+deb11u4 is to be installed
E: Unable to correct problems, you have held broken packages.

Update is not help me.

How to fix it?

cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Lockszmith-GH commented 10 months ago

Note that you're riding another's issue - but, I'll try and help.

You havn't upgraded to Debian 12. Are you experiencing any issues upgrading to Debian 12?

weksupport commented 10 months ago

We have the same problem

With Superviser 1.4.3 (not 1.5.0 the latest) It works fine !!

We have Debian 11

Lockszmith-GH commented 10 months ago

That is correct, for latest supervisor you must first upgrade your debian.

Follow the link, and follow the instructions. This solved the issue for OP (amitsamanta996), I'm sure it will solve it for you as well. The link will also provide you with all the 'why' this works.

See my answer to #321

github-actions[bot] commented 8 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

ikifar2012 commented 8 months ago

The fix is pending release

toxa1983poloskov commented 7 months ago

Debian GNU/Linux 12 (bookworm) Raspberry PI 3

dpkg: ошибка при обработке пакета homeassistant-supervised (--configure): подпроцесс из пакета homeassistant-supervised установлен сценарий post-installation возвратил код ошибки 1 При обработке следующих пакетов произошли ошибки: homeassistant-supervised

github-actions[bot] commented 5 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

ikifar2012 commented 5 months ago

This issue was fixed in https://github.com/home-assistant/supervised-installer/releases/tag/1.6.0

Venodor commented 5 months ago

Debian12 on PC dpkg: ошибка при обработке пакета homeassistant-supervised (--configure): подпроцесс из пакета homeassistant-supervised установлен сценарий post-installation возвратил код ошибки 1 При обработке следующих пакетов произошли ошибки: homeassistant-supervised E: Sub-process /usr/bin/dpkg returned an error code (1)

agners commented 5 months ago

@Venodor please english comments only. Also make sure to search community forums and issues, this seems like a problem reported elsewhere already.