You are not logged in.

#1 2020-08-09 15:01:38

sleekmason
zoom
Registered: 2018-05-22
Posts: 1,110
Website

printer installation difficulty

Errors during installation of hplip . . . 

This also affects colord, sane-utils, hplip

Setting up avahi-daemon (0.7-4+b1) ...
adduser: No UID/GID pair is available in the range 100-999 (FIRST_SYS_UID - LAST_SYS_UID).
adduser: The user `avahi' was not created.
dpkg: error processing package avahi-daemon (--configure):
 installed avahi-daemon package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of libnss-mdns:amd64:
 libnss-mdns:amd64 depends on avahi-daemon (>= 0.6.16-1); however:
  Package avahi-daemon is not configured yet.

dpkg: error processing package libnss-mdns:amd64 (--configure):
 dependency problems - leaving unconfigured
Processing triggers for systemd (241-7~deb10u4) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for dbus (1.12.20-0+deb10u1) ...
Processing triggers for libc-bin (2.28-10) ...
Errors were encountered while processing:
 avahi-daemon
 libnss-mdns:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

Offline

#2 2020-08-09 15:36:41

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,155
Website

Re: printer installation difficulty

Output of...

apt-cache policy avahi-daemon

?


I don't care what you do at home. Would you care to explain?

Online

#3 2020-08-09 15:42:50

sleekmason
zoom
Registered: 2018-05-22
Posts: 1,110
Website

Re: printer installation difficulty

avahi-daemon:
  Installed: 0.7-4+b1
  Candidate: 0.7-4+b1
  Version table:
 *** 0.7-4+b1 500
        500 https://deb.debian.org/debian buster/main amd64 Packages
        100 /var/lib/dpkg/status

Offline

#4 2020-08-09 15:56:42

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

Re: printer installation difficulty

sleekmason wrote:

Errors during installation of hplip . . . 
This also affects colord, sane-utils, hplip

Setting up avahi-daemon (0.7-4+b1) ...

So, this is a BL Lithium box? Newly installed? No errors in /var/log/installer/status?
You get error when running "apt install xxx"?

Everything worked ok before. You have installed som programs ok. You have run BL-welcom? But those three does not work?

Did you look in /var/log/apt/?

You can try to debug the error or test reinstall. If new to linux and an new installation that is not mission-critical, it's maybe better to test reinstall?


// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

#5 2020-08-09 16:32:12

sleekmason
zoom
Registered: 2018-05-22
Posts: 1,110
Website

Re: printer installation difficulty

rbh wrote:
sleekmason wrote:

Errors during installation of hplip . . . 
This also affects colord, sane-utils, hplip

Setting up avahi-daemon (0.7-4+b1) ...

So, this is a BL Lithium box? Newly installed? No errors in /var/log/installer/status?
You get error when running "apt install xxx"?

Everything worked ok before. You have installed som programs ok. You have run BL-welcom? But those three does not work?

Did you look in /var/log/apt/?

You can try to debug the error or test reinstall. If new to linux and an new installation that is not mission-critical, it's maybe better to test reinstall?

Yes, BL Lithium, newly installed . . . with a few added packages for development, but no removal other than Compton, and no additional sources other than those already present.

No errors other than the avahi-daemon bit.  Everything else has worked well.  No other issues.


Yes, I can reinstall with no issue if need be.  It looked like a dependency problem to me.

I am sure I have done something to mess it up:)  Don't think it's ever really been something else in these situations.  No worries:)

Offline

#6 2020-08-09 17:27:10

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

Re: printer installation difficulty

sleekmason wrote:
rbh wrote:

Did you look in /var/log/apt/?

It looked like a dependency problem to me.

One big problem is that the installprocess could not create new user avahi. Check passwordfile for user avahi and hplip.

$ less /etc/passwd

Are they listed?
Probably not. Try to remove program with all configurations:

$ sudo apt --autoremove purge hplip avahi* colord

Note, this will not remove presonal configs created in ~/.config and ~/.cache, any files and hidden files in 'Home' need to be manually removed.

You might get errors with uninstalling and info that your package database is in an inconsistent state...
If you can uninstall, try to reinstall programs.

Else, consider total reinstallation.

Edit for clarity by hhh

Last edited by hhh (2020-08-09 18:49:25)


// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

#7 2020-08-09 18:51:02

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,666

Re: printer installation difficulty

sleekmason wrote:

Package avahi-daemon is not configured yet.

You can try and configure/reconfigure avahi-daemon with dpkg. Reinstalling avahi-daemon might reconfigure automatically.

Make sure the avahi-daemon service is running and enabled at startup.

systemctl start avahi-daemon.service
systemctl enable avahi-daemon.service

Last edited by PackRat (2020-08-09 18:51:22)


You must unlearn what you have learned.
    -- yoda

Online

#8 2020-08-09 18:59:24

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,155
Website

Re: printer installation difficulty

BTW, I have always removed avahi-daemon from my linux setups and in twelve years it's never been a problem to do so. Is there no workaround for this issue?


I don't care what you do at home. Would you care to explain?

Online

#9 2020-08-09 19:13:57

sleekmason
zoom
Registered: 2018-05-22
Posts: 1,110
Website

Re: printer installation difficulty

hhh wrote:

BTW, I have always removed avahi-daemon from my linux setups and in twelve years it's never been a problem to do so. Is there no workaround for this issue?

Thought about that:)

Just reinstalled for simplicity. 
I just really need to get things set up properly before tinkering with anything else/extra.

Offline

#10 2020-08-09 19:24:36

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

Re: printer installation difficulty

hhh wrote:

BTW, I have always removed avahi-daemon from my linux setups and in twelve years it's never been a problem to do so.

And I only disable it.

Is there no workaround for this issue?

It is possible to run

$ sudo apt-get install --no-install-recommends hplip

and avahi-daemon wont be installed. It is not needed, if you ain't depended on zeroconf, UPnP and similar technics..

Last edited by rbh (2020-08-09 19:25:13)


// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

Board footer

Powered by FluxBB