0
tehcpu

Can't install avahi on armbian while building custom image

Recommended Posts

(edited)

Hi all, and first of all I want pay many thanks to authors and contributors for a great work on a Armbian itself and it's builder too. You rock, guys ;)

 

But a few days ago I ran into a problem with creating my own image. For these purposes, I use the custom-image.sh script. My goal is to preinstall the cups into my image. So, my modified script now looks like that:

 

Spoiler

...

RELEASE=$1
LINUXFAMILY=$2
BOARD=$3
BUILD_DESKTOP=$4

pb_staff_inj() {
    apt-get --yes --force-yes --allow-unauthenticated  --fix-missing install -f cups avahi-daemon avahi-discover
}

Main() {
    case $RELEASE in
        jessie)
            # your code here
            # InstallOpenMediaVault # uncomment to get an OMV 3 image
            ;;
        xenial)
            # your code here
            ;;
        stretch)
            # your code here
            # InstallOpenMediaVault # uncomment to get an OMV 4 image
            ;;
        bionic)
            # your code here
            pb_staff_inj
            ;;
    esac
} # Main

InstallOpenMediaVault() {

...

 

And when I run the compile.sh script, my compilation fails due unsuccessful installation of avahi-* packages with log below:

 

Spoiler

...

Setting up python (2.7.15~rc1-1) ...

Setting up libavahi-core7:armhf (0.7-3.1ubuntu1.2) ...

Setting up libfontconfig1:armhf (2.12.6-0ubuntu2) ...

Setting up libxcb-render0:armhf (1.13-2~ubuntu18.04) ...

Setting up gsettings-desktop-schemas (3.28.0-1ubuntu1) ...

Setting up libgtk-3-common (3.22.30-1ubuntu2) ...

Setting up libx11-6:armhf (2:1.6.4-3ubuntu0.2) ...

Setting up avahi-daemon (0.7-3.1ubuntu1.2) ...

You are required to change your password immediately (root enforced)

chfn: PAM: Authentication token is no longer valid; new one required

adduser: `/usr/bin/chfn -f Avahi mDNS daemon avahi' returned error code 1. Exiting.

dpkg: error processing package avahi-daemon (--configure):

 installed avahi-daemon package post-installation script subprocess returned error exit status 1

Setting up libpoppler73:armhf (0.62.0-2ubuntu2.8) ...

Setting up python-gi (3.26.1-2ubuntu1) ...

Setting up glib-networking:armhf (2.56.0-1) ...

Setting up libxcomposite1:armhf (1:0.4.4-2) ...

Setting up libxcb-shm0:armhf (1.13-2~ubuntu18.04) ...

Setting up libxrender1:armhf (1:0.9.10-1) ...

Setting up python-gdbm (2.7.15~rc1-1) ...

Setting up libavahi-client3:armhf (0.7-3.1ubuntu1.2) ...

Setting up libxft2:armhf (2.3.2-1) ...

Setting up python-dbus (1.2.6-1) ...

dpkg: dependency problems prevent configuration of avahi-discover:

 avahi-discover depends on avahi-daemon; however:

  Package avahi-daemon is not configured yet.

 

dpkg: error processing package avahi-discover (--configure):

 dependency problems - leaving unconfigured

Setting up fontconfig (2.12.6-0ubuntu2) ...

Regenerating fonts cache... done.

Setting up libcups2:armhf (2.2.7-1ubuntu2.4) ...

Setting up libxdamage1:armhf (1:1.1.4-3) ...

Setting up libxext6:armhf (2:1.3.3-1) ...

Setting up libxfixes3:armhf (1:5.0.3-1) ...

Setting up cups-ipp-utils (2.2.7-1ubuntu2.4) ...

Setting up libatspi2.0-0:armhf (2.28.0-1) ...

Setting up libgdk-pixbuf2.0-0:armhf (2.36.11-2) ...

Setting up libsoup2.4-1:armhf (2.62.1-1ubuntu0.1) ...

Setting up gir1.2-gdkpixbuf-2.0:armhf (2.36.11-2) ...

Setting up libcupsmime1:armhf (2.2.7-1ubuntu2.4) ...

Setting up libsoup-gnome2.4-1:armhf (2.62.1-1ubuntu0.1) ...

Setting up cups-daemon (2.2.7-1ubuntu2.4) ...

Adding group `lpadmin' (GID 115) ...

Done.

Created symlink /etc/systemd/system/multi-user.target.wants/cups.path → /lib/systemd/system/cups.path.

Created symlink /etc/systemd/system/printer.target.wants/cups.service → /lib/systemd/system/cups.service.

Created symlink /etc/systemd/system/sockets.target.wants/cups.socket → /lib/systemd/system/cups.socket.

Running in chroot, ignoring request.

invoke-rc.d: policy-rc.d denied execution of start.

Setting up libcupsppdc1:armhf (2.2.7-1ubuntu2.4) ...

Setting up libcupsfilters1:armhf (1.20.2-0ubuntu3) ...

Setting up libcupsimage2:armhf (2.2.7-1ubuntu2.4) ...

Setting up gtk-update-icon-cache (3.22.30-1ubuntu2) ...

Setting up libxcursor1:armhf (1:1.1.15-1) ...

Setting up libpango-1.0-0:armhf (1.40.14-1ubuntu0.1) ...

Setting up libatk-bridge2.0-0:armhf (2.26.2-1) ...

Setting up python-avahi (0.7-3.1ubuntu1.2) ...

Setting up librest-0.7-0:armhf (0.8.0-2) ...

Setting up libgs9:armhf (9.26~dfsg+0-0ubuntu0.18.04.8) ...

Setting up cups-client (2.2.7-1ubuntu2.4) ...

Setting up libcupscgi1:armhf (2.2.7-1ubuntu2.4) ...

Setting up libxrandr2:armhf (2:1.5.1-1) ...

Setting up libxi6:armhf (2:1.7.9-1) ...

Setting up libcairo2:armhf (1.15.10-2ubuntu0.1) ...

Setting up libxinerama1:armhf (2:1.1.3-1) ...

Setting up poppler-utils (0.62.0-2ubuntu2.8) ...

Setting up libcairo-gobject2:armhf (1.15.10-2ubuntu0.1) ...

Setting up cups-ppdc (2.2.7-1ubuntu2.4) ...

Setting up ghostscript (9.26~dfsg+0-0ubuntu0.18.04.8) ...

Setting up libpangoft2-1.0-0:armhf (1.40.14-1ubuntu0.1) ...

Setting up cups-filters-core-drivers (1.20.2-0ubuntu3) ...

Setting up cups-filters (1.20.2-0ubuntu3) ...

Setting up libpangoxft-1.0-0:armhf (1.40.14-1ubuntu0.1) ...

Setting up libpangocairo-1.0-0:armhf (1.40.14-1ubuntu0.1) ...

Setting up cups-core-drivers (2.2.7-1ubuntu2.4) ...

Setting up gir1.2-pango-1.0:armhf (1.40.14-1ubuntu0.1) ...

Setting up foomatic-db-engine (4.0.13-1) ...

Setting up librsvg2-2:armhf (2.40.20-2) ...

Setting up cups (2.2.7-1ubuntu2.4) ...

Unsupported setsockopt level=1 optname=15

Setting up librsvg2-common:armhf (2.40.20-2) ...

Setting up adwaita-icon-theme (3.28.0-1ubuntu1) ...

update-alternatives: using /usr/share/icons/Adwaita/cursor.theme to provide /usr/share/icons/default/index.theme (x-cursor-theme) in auto mode

Setting up humanity-icon-theme (0.6.15) ...

Setting up libgtk-3-0:armhf (3.22.30-1ubuntu2) ...

Setting up gir1.2-gtk-3.0:armhf (3.22.30-1ubuntu2) ...

Setting up ubuntu-mono (16.10+18.04.20181005-0ubuntu1) ...

Processing triggers for libc-bin (2.27-3ubuntu1) ...

Processing triggers for dbus (1.12.2-1ubuntu1) ...

Processing triggers for systemd (237-3ubuntu10.21) ...

Processing triggers for libgdk-pixbuf2.0-0:armhf (2.36.11-2) ...

Errors were encountered while processing:

 avahi-daemon

 avahi-discover

W: --force-yes is deprecated, use one of the options starting with --allow instead.

E: Sub-process /usr/bin/dpkg returned an error code (1)

[ error ] ERROR in function customize_image [ image-helpers.sh:120 ]

[ error ] customize-image.sh exited with error (rc: 100) 

[ o.k. ] Process terminated 

[ error ] ERROR in function unmount_on_exit [ image-helpers.sh:60 ]

[ error ] debootstrap-ng was interrupted 

[ o.k. ] Process terminated 

$

 

Commonly, I'm using VirtualBox with Ubuntu 18.04 for compiling (but I tested it with Paralles and even Docker -- with the same result). Also I did not change the kernel configuration. Funny, looks like the problem only happens with avahi packages (I also tried, for example, to install Go project packages in the same way which was successful). If you have any glue (or maybe I need to write to another place; if so, please tell me which one) - you are awfully welcome!

 

Also, feel free to ask for any additional information (I will deliver it ASAP).

Here is some other information about my env below:

 

My board: orangepizero (H2+ quad core 512MB SoC Wi-Fi/Ethernet)

Target kernel branch: next (Mainline (@kernel.org)   (4.x))

Target OS release: bionic (Ubuntu Bionic 18.04 LTS)

Guest OS: Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-47-generic x86_64)

Host OS: Ubuntu 19.04 (GNU/Linux 5.0.0-13-generic x86_64) [VirtualBox (Version 6.0.6 r130049 (Qt5.12.2))] / MacOS Mojave 10.14.4 (18E226) [Parallels Desktop (Version 13.3.1 (43365))]

 

Sincerely, Alex.

Edited by tehcpu

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0