Skip to content

Commit b08b149

Browse files
authored
Fixoffline (#2074)
* remove bad dpkg option --confnew (it is only for apt) * fix offline build Signed-off-by: Markus Storm <markus.storm@gmx.net>
1 parent 17b8aa0 commit b08b149

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

build-image/offline-install-modifications.bash

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,24 @@ adoptium_fetch_apt
3333

3434
apt-get --quiet update
3535
apt-get --quiet upgrade --yes --force-confnew
36-
apt-get --quiet install --download-only --yes
37-
openhab openhab-addons \
36+
apt-get --quiet install --download-only --yes openhab openhab-addons \
3837
acl amanda-common amanda-server amanda-client apt-transport-https arping \
3938
avahi-daemon bash-completion bc bzip2 comitup coreutils curl \
4039
dnsutils dns-root-data dnsmasq-base dirmngr exim4 fontconfig gdisk git \
41-
htop iotop javascript-common jq \
42-
libc6 libcairo2 libgudev-1.0-0 libjs-jquery libmbim-glib4 libmbim-proxy \
43-
libmm-glib0 libndp0 libnm0 libpixman-1-0 libqmi-glib5 libqmi-proxy libstdc++6 \
44-
libteamdctl0 libxcb-render0 libxcb-shm0 libxrender1 \
45-
make man-db mc mailutils modemmanager moreutils multitail nano network-manager \
40+
htop inetutils-telnet iotop javascript-common jq \
41+
libblas3 libc6 libcairo2 libgudev-1.0-0 libjs-jquery libmbim-glib4 libgpm2 \
42+
liblinear4 liblua5.4-0 libmbim-proxy \
43+
libmm-glib0 libndp0 libnet1 libnm0 libpcre2-32-0 \
44+
libpixman-1-0 libqmi-glib5 libqmi-proxy libsodium23i libstdc++6 \
45+
libteamdctl0 libxcb-render0 libxcb-shm0 libxrender1 libyascreen0 \
46+
make man-db mc mc-data mailcap mailutils modemmanager moreutils multitail \
47+
nano network-manager nmap nmap-common \
4648
python3-blinker python3-cairo python3-click python3-colorama python3-flask \
4749
python3-itsdangerous python3-jinja2 python3-markupsafe \
4850
python3-networkmanager python3-pyinotify python3-simplejson python3-werkzeug \
4951
python3 python3-pip python3-wheel python3-setuptools \
50-
samba screen sysstat tailscale temurin-21-jre usbutils util-linux \
51-
unzip vfu vim wget whiptail xz-utils zip zlib1g
52+
samba screen sysstat tailscale telnet temurin-21-jre usbutils util-linux \
53+
unzip vfu vfu-yascreen vim vim-runtime wget whiptail xz-utils zip zlib1g
5254

5355
source /opt/openhabian/functions/nodejs-apps.bash
5456
nodejs_setup

functions/java-jre.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ adoptium_fetch_apt() {
4747
if [[ $1 == "21" ]] && [[ $(getconf LONG_BIT) == 32 ]]; then
4848
if ! cond_redirect wget -nv -O "${cachedir}/${cachefile}" "${URL}/${pkgfile}"; then echo "FAILED (download JVM pkg)"; rm -f "${cachedir}/${cachefile}"; return 1; fi
4949
else
50-
if ! cond_redirect dpkg --configure -a --confnew; then echo "FAILED (dpkg)"; return 1; fi
50+
if ! cond_redirect dpkg --configure -a; then echo "FAILED (dpkg)"; return 1; fi
5151
if cond_redirect apt-get install --download-only --yes "temurin-${1}-jre"; then echo "OK"; else echo "FAILED"; return 1; fi
5252
fi
5353
}

0 commit comments

Comments
 (0)