You have to redirect output into a file
Terminal
sudo dpkg -l | awk '/^ii/{print $2}' > /tmp/installed-packages.txt
for example. On my Pi3/4 devel installation I have 1033 packages installed
Here's my output...... Hope it helps.
Code:
4acl
adduser
alsa-base
alsa-tools
alsa-utils
anacron
apt
apt-utils
at
atomicparsley
autoconf
autofs
automake
autotools-dev
avahi-daemon
base-files
base-passwd
bash
bc
bind9-host
binutils
blt
bsdmainutils
bsdutils
btrfs-progs
btrfs-tools
build-essential
bzip2
ca-certificates
cec-utils
cgmanager
cifs-utils
cme
console-setup
console-setup-linux
consolekit
coreutils
cpio
cpp
cpp-4.6
cpp-4.9
cpp-6
crda
cron
cvs
dash
dbus
debconf
debconf-i18n
debian-archive-keyring
debian-keyring
debianutils
dh-python
dialog
diffutils
dirmngr
distro-info-data
dmsetup
dosfstools
dpkg
dpkg-dev
e2fslibs:armhf
e2fsprogs
exfat-fuse
exfat-utils
f2fs-tools
fail2ban
ffmpeg
file
findutils
firmware-atheros
firmware-misc-nonfree
firmware-ralink
firmware-realtek
fontconfig
fontconfig-config
fonts-dejavu-core
fuse
g++
g++-4.9
g++-6
gcc
gcc-4.5-base:armhf
gcc-4.6
gcc-4.6-base:armhf
gcc-4.9
gcc-4.9-base:armhf
gcc-6
gcc-6-base:armhf
get-iplayer
gettext
gettext-base
git
git-core
git-man
gnupg
gnupg-agent
gpgv
grep
groff-base
guile-2.0-libs:armhf
gzip
hdparm
hfsplus
hfsprogs
hfsutils
hostname
i2c-tools
ifplugd
ifupdown
inetutils-tools
init-system-helpers
initramfs-tools
initramfs-tools-core
initscripts
insserv
ipcalc
iproute
iproute2
iptables
ir-keytable
isc-dhcp-client
isc-dhcp-common
iw
jfsutils
jonhedgerows-keyring
kbd
keyboard-configuration
keyutils
klibc-utils
kmod
kpartx
lcdproc
less
libaacs0:armhf
libacl1:armhf
libafpclient0:armhf
libalgorithm-diff-perl
libao-common
libao4
libaom0:armhf
libapp-cmd-perl
libapparmor1:armhf
libapt-inst1.5:armhf
libapt-inst2.0:armhf
libapt-pkg4.12:armhf
libapt-pkg5.0:armhf
libasan1:armhf
libasan3:armhf
libasn1-8-heimdal:armhf
libasound2:armhf
libasound2-data
libasprintf0c2:armhf
libass5:armhf
libassuan0:armhf
libasyncns0:armhf
libatasmart4:armhf
libatomic1:armhf
libattr1:armhf
libaudit-common
libaudit1:armhf
libauthen-sasl-perl
libautodie-perl
libav-tools
libavahi-client3:armhf
libavahi-common-data:armhf
libavahi-common3:armhf
libavahi-compat-libdnssd1:armhf
libavahi-core7:armhf
libavc1394-0:armhf
libavcodec56:armhf
libavcodec57:armhf
libavcodec58:armhf
libavdevice55:armhf
libavdevice57:armhf
libavdevice58:armhf
libavfilter6:armhf
libavfilter7:armhf
libavformat56:armhf
libavformat57:armhf
libavformat58:armhf
libavresample2:armhf
libavresample3:armhf
libavresample4:armhf
libavutil51:armhf
libavutil54:armhf
libavutil55:armhf
libavutil56:armhf
libbind9-140:armhf
libbind9-90
libblkid1:armhf
libbluetooth3:armhf
libbluray1:armhf
libbluray2:armhf
libbs2b0:armhf
libbsd0:armhf
libbz2-1.0:armhf
libc-bin
libc-dev-bin
libc-l10n
libc6:armhf
libc6-dev:armhf
libcaca0:armhf
libcairo2:armhf
libcap-ng0:armhf
libcap2:armhf
libcap2-bin
libcapture-tiny-perl
libcarp-assert-more-perl
libcarp-assert-perl
libcc1-0:armhf
libcdio-cdda1:armhf
libcdio-paranoia1:armhf
libcdio13:armhf
libcdio17:armhf
libcec
libcec-dev
libcec3:armhf
libcec4:armhf
libcgmanager0:armhf
libchromaprint1:armhf
libck-connector0:armhf
libclass-data-inheritable-perl
libclass-isa-perl
libclass-load-perl
libclone-perl
libcloog-isl4:armhf
libcodec2-0.4:armhf
libcomerr2:armhf
libconfig-model-lcdproc-perl
libconfig-model-perl
libcroco3:armhf
libcryptsetup4:armhf
libcups2:armhf
libcurl3:armhf
libcurl3-gnutls:armhf
libdaemon0:armhf
libdata-optlist-perl
libdatrie1:armhf
libdb5.1:armhf
libdb5.3:armhf
libdbus-1-3:armhf
libdbus-glib-1-2:armhf
libdc1394-22:armhf
libdebconfclient0:armhf
libdevel-stacktrace-perl
libdevmapper-event1.02.1:armhf
libdevmapper1.02.1:armhf
libdigest-hmac-perl
libdirac-encoder0:armhf
libdirectfb-1.2-9:armhf
libdns-export100
libdns-export162
libdns100
libdns162:armhf
libdpkg-perl
libdrm2:armhf
libebur128-1:armhf
libedit2:armhf
libegl1-mesa:armhf
libelf1:armhf
libenca0:armhf
libencode-locale-perl
liberror-perl
libevdev2:armhf
libevent-2.0-5:armhf
libexception-class-perl
libexpat1:armhf
libexpat1-dev:armhf
libexporter-tiny-perl
libf2fs0:armhf
libfdisk1:armhf
libffi6:armhf
libfftw3-double3:armhf
libfftw3-single3:armhf
libfile-copy-recursive-perl
libfile-homedir-perl
libfile-listing-perl
libfile-which-perl
libflac8:armhf
libflite1:armhf
libfontconfig1:armhf
libfreetype6:armhf
libfribidi0:armhf
libfstrcmp0
libfuse2:armhf
libgbm1:armhf
libgc1c2:armhf
libgcc-4.9-dev:armhf
libgcc-6-dev:armhf
libgcc1:armhf
libgcrypt11:armhf
libgcrypt20:armhf
libgdbm3:armhf
libgdk-pixbuf2.0-0:armhf
libgdk-pixbuf2.0-common
libgeoip1:armhf
libgetopt-long-descriptive-perl
libgif7:armhf
libgl1-mesa-glx:armhf
libglapi-mesa:armhf
libglib2.0-0:armhf
libglu1-mesa:armhf
libgme0:armhf
libgmp10:armhf
libgnutls-deb0-28:armhf
libgnutls-openssl27:armhf
libgnutls26:armhf
libgnutls30:armhf
libgomp1:armhf
libgpg-error0:armhf
libgpgme11:armhf
libgraphite2-3:armhf
libgsasl7
libgsm1:armhf
libgssapi-krb5-2:armhf
libgssapi3-heimdal:armhf
libgudev-1.0-0:armhf
libharfbuzz0b:armhf
libhash-merge-perl
libhcrypto4-heimdal:armhf
libhdb9-heimdal:armhf
libheimbase1-heimdal:armhf
libheimntlm0-heimdal:armhf
libhfsp0
libhogweed2:armhf
libhogweed4:armhf
libhtml-parser-perl
libhtml-tagset-perl
libhtml-tree-perl
libhttp-cookies-perl
libhttp-date-perl
libhttp-message-perl
libhttp-negotiate-perl
libhx509-5-heimdal:armhf
libi2c-dev
libice6:armhf
libicu52:armhf
libicu57:armhf
libidn11:armhf
libidn2-0:armhf
libiec61883-0:armhf
libimobiledevice4:armhf
libimobiledevice6:armhf
libinput-bin
libinput10:armhf
libio-html-perl
libio-socket-ssl-perl
libio-stringy-perl
libio-tiecombine-perl
libip4tc0:armhf
libip6tc0:armhf
libiptc0:armhf
libirs-export91
libisc-export160
libisc-export95
libisc160:armhf
libisc95
libisccc140:armhf
libisccc90
libisccfg-export90
libisccfg140:armhf
libisccfg90
libisl10:armhf
libisl15:armhf
libiso9660-10:armhf
libiw30:armhf
libjack-jackd2-0:armhf
libjasper1:armhf
libjbig0:armhf
libjpeg62-turbo:armhf
libjpeg8:armhf
libjs-jquery
libjs-sphinxdoc
libjs-underscore
libjson-c2:armhf
libjson-c3:armhf
libjson-perl
libjson0:armhf
libk5crypto3:armhf
libkdc2-heimdal:armhf
libkeyutils1:armhf
libklibc
libkmod2:armhf
libkrb5-26-heimdal:armhf
libkrb5-3:armhf
libkrb5support0:armhf
libksba8:armhf
libkyotocabinet16v5:armhf
liblcms2-2:armhf
libldap-2.4-2:armhf
libldap-common
libldb1:armhf
liblilv-0-0
liblirc-client0:armhf
liblist-moreutils-perl
liblocale-gettext-perl
liblockfile-bin
liblockfile1:armhf
liblog-log4perl-perl
libltdl7:armhf
liblvm2app2.2:armhf
liblwp-mediatypes-perl
liblwp-protocol-https-perl
liblwres141:armhf
liblwres90
liblz4-1:armhf
liblzma5:armhf
liblzo2-2:armhf
libmad0:armhf
libmagic-mgc
libmagic1:armhf
libmailutils5:armhf
libmariadbclient18:armhf
libmicrohttpd10
libmicrohttpd12
libmnl0:armhf
libmodplug1:armhf
libmodule-implementation-perl
libmodule-pluggable-perl
libmodule-runtime-perl
libmount1:armhf
libmouse-perl
libmousex-nativetraits-perl
libmousex-strictconstructor-perl
libmp3-info-perl
libmp3-tag-perl
libmp3lame0:armhf
libmpc2:armhf
libmpc3:armhf
libmpdec2:armhf
libmpeg2-4:armhf
libmpfr4:armhf
libmpg123-0:armhf
libmtdev1:armhf
libmysofa0:armhf
libmysqlclient18:armhf
libncurses5:armhf
libncursesw5:armhf
libnet-http-perl
libnet-smtp-ssl-perl
libnet-smtp-tls-butmaintained-perl
libnet-ssleay-perl
libnetfilter-conntrack3:armhf
libnettle4:armhf
libnettle6:armhf
libnfnetlink0:armhf
libnfs8:armhf
libnfsidmap2:armhf
libnghttp2-14:armhf
libnih-dbus1
libnih1
libnl-3-200:armhf
libnl-genl-3-200:armhf
libnpth0:armhf
libnspr4:armhf
libnss-mdns:armhf
libnss3:armhf
libntdb1:armhf
libntfs-3g871
libntlm0:armhf
libogg0:armhf
libopenal-data
libopenal1:armhf
libopencv-core2.4v5:armhf
libopencv-imgproc2.4v5:armhf
libopenjp2-7:armhf
libopenjpeg5:armhf
libopenmpt0:armhf
libopts25:armhf
libopus0:armhf
liborc-0.4-0:armhf
libp11-kit-dev:armhf
libp11-kit0:armhf
libpackage-stash-perl
libpam-modules:armhf
libpam-modules-bin
libpam-runtime
libpam-systemd:armhf
libpam0g:armhf
libpango-1.0-0:armhf
libpangocairo-1.0-0:armhf
libpangoft2-1.0-0:armhf
libparams-classify-perl
libparams-util-perl
libparams-validate-perl
libparse-recdescent-perl
libparted2:armhf
libpath-tiny-perl
libpcre3:armhf
libpcrecpp0v5:armhf
libpcsclite1:armhf
libperl4-corelibs-perl
libperl5.24:armhf
libpgm-5.2-0:armhf
libpipeline1:armhf
libpixman-1-0:armhf
libplist2:armhf
libplist3:armhf
libplymouth4:armhf
libpng12-0:armhf
libpng16-16:armhf
libpod-pom-perl
libpolkit-agent-1-0:armhf
libpolkit-backend-1-0:armhf
libpolkit-gobject-1-0:armhf
libpopt0:armhf
libpostproc54:armhf
libpostproc55:armhf
libprocps0:armhf
libprocps3:armhf
libprocps6:armhf
libpsl0:armhf
libpsl5:armhf
libpulse-mainloop-glib0:armhf
libpulse0:armhf
libpython-dev:armhf
libpython-stdlib:armhf
libpython2.7:armhf
libpython2.7-dev:armhf
libpython2.7-minimal:armhf
libpython2.7-stdlib:armhf
libpython3-dev:armhf
libpython3-stdlib:armhf
libpython3.5:armhf
libpython3.5-dev:armhf
libpython3.5-minimal:armhf
libpython3.5-stdlib:armhf
libraw1394-11:armhf
libraw15:armhf
libreadline6:armhf
libreadline7:armhf
libregexp-common-perl
libroken18-heimdal:armhf
librsvg2-2:armhf
librtmp1:armhf
librubberband2:armhf
libsamplerate0:armhf
libsasl2-2:armhf
libsasl2-modules-db:armhf
libschroedinger-1.0-0:armhf
libsdl-image1.2:armhf
libsdl1.2debian:armhf
libsdl2-2.0-0:armhf
libseccomp2:armhf
libselinux1:armhf
libsemanage-common
libsemanage1:armhf
libsepol1:armhf
libserd-0-0:armhf
libsgutils2-2
libshine3:armhf
libsigsegv2:armhf
libslang2:armhf
libsm6:armhf
libsmartcols1:armhf
libsmbclient:armhf
libsnappy1v5:armhf
libsndfile1:armhf
libsndio6.1:armhf
libsodium18:armhf
libsord-0-0:armhf
libsoxr0:armhf
libspeex1:armhf
libsqlite0
libsqlite3-0:armhf
libsratom-0-0:armhf
libss2:armhf
libssh-4:armhf
libssh-gcrypt-4:armhf
libssh2-1:armhf
libssl1.0.0:armhf
libssl1.0.2:armhf
libssl1.1:armhf
libstdc++-4.9-dev:armhf
libstdc++-6-dev:armhf
libstdc++6:armhf
libstring-rewriteprefix-perl
libsub-exporter-perl
libsub-identify-perl
libsub-install-perl
libswitch-perl
libswresample2:armhf
libswresample3:armhf
libswscale3:armhf
libswscale4:armhf
libswscale5:armhf
libsystemd0:armhf
libtag1v5:armhf
libtag1v5-vanilla:armhf
libtalloc2:armhf
libtasn1-3:armhf
libtasn1-6:armhf
libtcl8.6:armhf
libtdb1:armhf
libtevent0:armhf
libtext-charwidth-perl
libtext-diff-perl
libtext-iconv-perl
libtext-wrapi18n-perl
libthai-data
libthai0:armhf
libtheora0:armhf
libtiff5:armhf
libtimedate-perl
libtinfo5:armhf
libtinyxml2.6.2v5:armhf
libtirpc1:armhf
libtk8.6:armhf
libtry-tiny-perl
libtwolame0:armhf
libubsan0:armhf
libudev0:armhf
libudev1:armhf
libudisks2-0:armhf
libunicode-string-perl
libunistring0:armhf
libupower-glib3:armhf
liburi-perl
libusb-0.1-4:armhf
libusb-1.0-0:armhf
libusbmuxd2:armhf
libusbmuxd4:armhf
libustr-1.0-1:armhf
libuuid1:armhf
libva-drm1:armhf
libva-x11-1:armhf
libva1:armhf
libvdpau1:armhf
libvncserver0:armhf
libvncserver1:armhf
libvorbis0a:armhf
libvorbisenc2:armhf
libvorbisfile3:armhf
libvpx1:armhf
libvpx4:armhf
libwacom-common
libwacom2:armhf
libwavpack1:armhf
libwayland-client0:armhf
libwayland-cursor0:armhf
libwayland-egl1-mesa:armhf
libwayland-server0:armhf
libwbclient0:armhf
libwebp5:armhf
libwebp6:armhf
libwebpdemux1:armhf
libwebpdemux2:armhf
libwebpmux1:armhf
libwebpmux2:armhf
libwind0-heimdal:armhf
libwrap0:armhf
libwww-perl
libwww-robotrules-perl
libx11-6:armhf
libx11-data
libx11-xcb1:armhf
libx264-142:armhf
libx264-148:armhf
libx265-95:armhf
libxau6:armhf
libxcb-dri2-0:armhf
libxcb-dri3-0:armhf
libxcb-glx0:armhf
libxcb-present0:armhf
libxcb-render0:armhf
libxcb-shape0:armhf
libxcb-shm0:armhf
libxcb-sync1:armhf
libxcb-xfixes0:armhf
libxcb1:armhf
libxcursor1:armhf
libxdamage1:armhf
libxdmcp6:armhf
libxext6:armhf
libxfixes3:armhf
libxft2:armhf
libxi6:armhf
libxinerama1:armhf
libxkbcommon0:armhf
libxml-libxml-perl
libxml-namespacesupport-perl
libxml-sax-base-perl
libxml-sax-perl
libxml-simple-perl
libxml2:armhf
libxrandr2:armhf
libxrender1:armhf
libxshmfence1:armhf
libxslt1.1:armhf
libxss1:armhf
libxtables10
libxtables12:armhf
libxtst6:armhf
libxv1:armhf
libxvidcore4:armhf
libxxf86vm1:armhf
libyajl2:armhf
libyaml-perl
libzmq5:armhf
libzstd1
libzvbi-common
libzvbi0:armhf
linux-base
linux-image-bcm2836
linux-libc-dev:armhf
locales
lockfile-progs
login
logrotate
lsb-base
lsb-release
lsof
m4
mailutils
mailutils-common
make
makedev
man-db
mawk
mime-support
mount
mountall
mpack
multiarch-support
mysql-common
nano
ncurses-base
ncurses-bin
net-tools
netbase
nfs-common
ntfs-3g
ntp
openbsd-inetd
openssh-client
openssh-server
openssh-sftp-server
openssl
parted
passwd
patch
perl
perl-base
perl-modules-5.24
perl-openssl-defaults:armhf
pinentry-curses
plymouth
policykit-1
procps
psmisc
pv
python
python-apt
python-apt-common
python-chardet
python-configparser
python-crypto
python-dev
python-dnspython
python-future
python-imaging
python-ldb
python-libcec
python-minimal
python-ntdb
python-pil:armhf
python-pkg-resources
python-pycryptodome
python-pyinotify
python-requests
python-samba
python-six
python-smbus:armhf
python-sqlite
python-talloc
python-tdb
python-tk
python-urllib3
python2.7
python2.7-dev
python2.7-minimal
python3
python3-apt
python3-dev
python3-minimal
python3-pyinotify
python3.5
python3.5-dev
python3.5-minimal
raspbian-archive-keyring
readline-common
rkhunter
rng-tools
rpcbind
rtmpdump
samba
samba-common
samba-common-bin
samba-dsdb-modules
samba-libs:armhf
schedtool
sed
sensible-utils
shared-mime-info
sshfs
ssmtp
startpar
sudo
svtplay-dl
systemd
systemd-shim
sysv-rc
sysvinit-utils
tar
tcpd
tdb-tools
tk8.6-blt2.5
triggerhappy
ttf-dejavu-core
tzdata
u-boot-tools
ucf
udev
udisks
udisks2
ufw
unattended-upgrades
update-inetd
upower
upstart
usbutils
util-linux
watchdog
wget
wireless-regdb
wireless-tools
wpasupplicant
x11-common
xbian-package-config-shell
xbian-package-config-xbmc
xbian-package-firmware
xbian-package-initramfs-tools
xbian-package-lirc
xbian-package-repo
xbian-package-samba
xbian-package-shairplay
xbian-package-splash
xbian-package-upstart-xbmc-bridge
xbian-package-usbmount
xbian-package-vnc-server
xbian-package-xbianhome
xbian-package-xbmc
xbian-package-xbmc-scripts
xbian-package-zram-swap
xbian-update
xkb-data
xz-utils
zlib1g:armhf
Did it. Some packages could not be installed
Code:
E: Unable to locate package 4acl
E: Package 'alsa-base' has no installation candidate
E: Unable to locate package cpp-4.6
E: Couldn't find any package by glob 'cpp-4.6'
E: Couldn't find any package by regex 'cpp-4.6'
E: Unable to locate package cpp-4.9
E: Couldn't find any package by glob 'cpp-4.9'
E: Couldn't find any package by regex 'cpp-4.9'
E: Unable to locate package g++-4.9
E: Couldn't find any package by glob 'g++-4.9'
E: Couldn't find any package by regex 'g++-4.9'
E: Unable to locate package gcc-4.5-base:armhf
E: Couldn't find any package by glob 'gcc-4.5-base'
E: Couldn't find any package by regex 'gcc-4.5-base'
E: Package 'gcc-4.6' has no installation candidate
E: Unable to locate package gcc-4.6-base:armhf
E: Couldn't find any package by glob 'gcc-4.6-base'
E: Couldn't find any package by regex 'gcc-4.6-base'
E: Package 'gcc-4.9' has no installation candidate
E: Unable to locate package gcc-4.9-base:armhf
E: Couldn't find any package by glob 'gcc-4.9-base'
E: Couldn't find any package by regex 'gcc-4.9-base'
E: Package 'get-iplayer' has no installation candidate
E: Unable to locate package jonhedgerows-keyring
E: Package 'libapt-inst1.5' has no installation candidate
E: Package 'libapt-pkg4.12' has no installation candidate
E: Unable to locate package libasan1:armhf
E: Package 'libasprintf0c2' has no installation candidate
E: Package 'libavcodec56' has no installation candidate
E: Unable to locate package libavdevice55:armhf
E: Unable to locate package libavformat56:armhf
E: Unable to locate package libavresample2:armhf
E: Unable to locate package libavutil51:armhf
E: Unable to locate package libavutil54:armhf
E: Unable to locate package libbind9-90
E: Package 'libcec3' has no installation candidate
E: Unable to locate package libdirac-encoder0:armhf
E: Unable to locate package libdns-export100
E: Unable to locate package libdns100
E: Unable to locate package libgcc-4.9-dev:armhf
E: Couldn't find any package by glob 'libgcc-4.9-dev'
E: Couldn't find any package by regex 'libgcc-4.9-dev'
E: Unable to locate package libgcrypt11:armhf
E: Unable to locate package libgnutls-deb0-28:armhf
E: Unable to locate package libgnutls26:armhf
E: Unable to locate package libhogweed2:armhf
E: Unable to locate package libicu52:armhf
E: Unable to locate package libimobiledevice4:armhf
E: Unable to locate package libirs-export91
E: Unable to locate package libisc-export95
E: Unable to locate package libisc95
E: Unable to locate package libisccc90
E: Unable to locate package libisccfg-export90
E: Unable to locate package libisccfg90
E: Unable to locate package libisl10:armhf
E: Unable to locate package libjasper1:armhf
E: Unable to locate package libjson-c2:armhf
E: Unable to locate package libjson0:armhf
E: Unable to locate package liblwres90
E: Unable to locate package libmicrohttpd10
E: Unable to locate package libmpc2:armhf
E: Package 'libmysqlclient18' has no installation candidate
E: Package 'libnettle4' has no installation candidate
E: Unable to locate package libopenjpeg5:armhf
E: Package 'libplist2' has no installation candidate
E: Unable to locate package libprocps0:armhf
E: Unable to locate package libprocps3:armhf
E: Unable to locate package libpsl0:armhf
E: Package 'libreadline6' has no installation candidate
E: Unable to locate package libschroedinger-1.0-0:armhf
E: Couldn't find any package by glob 'libschroedinger-1.0-0'
E: Couldn't find any package by regex 'libschroedinger-1.0-0'
E: Package 'libssl1.0.0' has no installation candidate
E: Unable to locate package libstdc++-4.9-dev:armhf
E: Couldn't find any package by glob 'libstdc++-4.9-dev'
E: Couldn't find any package by regex 'libstdc++-4.9-dev'
E: Unable to locate package libswscale3:armhf
E: Unable to locate package libtasn1-3:armhf
E: Unable to locate package libudev0:armhf
E: Unable to locate package libusbmuxd2:armhf
E: Package 'libvncserver0' has no installation candidate
E: Unable to locate package libvpx1:armhf
E: Unable to locate package libwebp5:armhf
E: Unable to locate package libwebpdemux1:armhf
E: Unable to locate package libwebpmux1:armhf
E: Unable to locate package libx264-142:armhf
E: Unable to locate package libxtables10
E: Unable to locate package raspbian-archive-keyring
Distribution upgrade finished without serious issues [1], and system comes up as expected.
So, one or a couple of those old packages breaks your upgrade. You should get rid of them
If this is your Raspbian based installation for Pi2, you have to replace
raspbian-archive-keyring with
debian-archive-keyring before upgrade. This is VERY important
[1] lcdproc reported error but did not brake the upgrade process
Code:
dpkg: error processing package lcdproc (--configure):
installed lcdproc package post-installation script subprocess returned error exit status 20
but a
sudo apt-get install -f && sudo apt-get install --reinstall xbian-update
did it
(7th Nov, 2019 10:05 AM)Nachteule Wrote: [ -> ]You have to redirect output into a file
Terminal
sudo dpkg -l | awk '/^ii/{print $2}' > /tmp/installed-packages.txt
for example. On my Pi3/4 devel installation I have 1033 packages installed
Well this is my list of packages
on pastebin
(8th Nov, 2019 05:41 AM)jakenl Wrote: [ -> ] (7th Nov, 2019 10:05 AM)Nachteule Wrote: [ -> ]You have to redirect output into a file
Terminal
sudo dpkg -l | awk '/^ii/{print $2}' > /tmp/installed-packages.txt
for example. On my Pi3/4 devel installation I have 1033 packages installed
Well this is my list of packages on pastebin
Looks good. Will see tomorrow what I can do
So, the update did not finished without error, that f.... nginx breaks installation
The maintenance script checks if server can be (re-)started sucessfully, but if it does not start, installation breaks with an error.
HOW STUPID IS THAT !
Terminal
root@xbian:/var/lib/dpkg/info# apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
php7.0-common php7.0-xml
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Create a snapshot of '/run/xbian-storage/root/@' in '/run/xbian-storage/root/@btrfs-auto-snap_apt-run-2019-11-07-2143'
Delete subvolume (no-commit): '/run/xbian-storage/root/@last_good_known'
Create a snapshot of '/run/xbian-storage/root/@btrfs-auto-snap_apt-run-2019-11-07-2143' in '/run/xbian-storage/root/@last_good_known'
@btrfs-auto-snap_apt-run-2019-11-07-2143, 1 created snapshots, 0 sent snapshots, 0 destroyed snapshots, 0 created filesystems, 0 warnings.
Setting up nginx-full (1.14.2-2+deb10u1) ...
[FAIL] Starting nginx: nginx failed!
invoke-rc.d: initscript nginx, action "start" failed.
dpkg: error processing package nginx-full (--configure):
installed nginx-full package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of nginx:
nginx depends on nginx-full (<< 1.14.2-2+deb10u1.1~) | nginx-light (<< 1.14.2-2+deb10u1.1~) | nginx-extras (<< 1.14.2-2+deb10u1.1~); however:
Package nginx-full is not configured yet.
Package nginx-light is not installed.
Package nginx-extras is not installed.
nginx depends on nginx-full (>= 1.14.2-2+deb10u1) | nginx-light (>= 1.14.2-2+deb10u1) | nginx-extras (>= 1.14.2-2+deb10u1); however:
Package nginx-full is not configured yet.
Package nginx-light is not installed.
Package nginx-extras is not installed.
dpkg: error processing package nginx (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
nginx-full
nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)
I modified that stupid maintenance script
/var/lib/dpkg/info/nginx-full.postinst (see below, look for '''MODIFIED!!!) and now nginx stops complaining error
Code:
#!/bin/sh
set -e
case "$1" in
abort-upgrade|abort-remove|abort-deconfigure|configure)
;;
triggered)
if [ -x /etc/init.d/nginx ]; then
if [ -s /run/nginx.pid ] && pidof /usr/sbin/nginx >/dev/null; then
echo "Triggering nginx reload ..."
invoke-rc.d nginx reload || true
fi
fi
exit 0
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
if [ -x /etc/init.d/nginx ]; then
if [ -f /run/nginx.pid ] && pidof /usr/sbin/nginx >/dev/null; then
invoke-rc.d nginx upgrade || invoke-rc.d nginx restart
#exit $? !!!MODIFIED!!!
else
invoke-rc.d nginx start || : #exit $? !!!MODIFIED!!!
fi
fi
exit 0
Finally, we have to run
sudo apt-get install --reinstall xbian-update before we can reboot system and everything is fine
Btw: The package list has some differences, but I don't believe that this is a problem
Code:
@@ -47,6 +47,7 @@
f2fs-tools
findutils
firmware-atheros
+firmware-brcm80211
firmware-misc-nonfree
firmware-ralink
firmware-realtek
@@ -98,7 +99,6 @@
libafpclient0:armhf
libao-common
libao4
-libapache2-mod-php7.3
libapparmor1:armhf
libapr1:armhf
libaprutil1:armhf
@@ -106,7 +106,6 @@
libaprutil1-ldap:armhf
libapt-inst2.0:armhf
libapt-pkg5.0:armhf
-libargon2-1:armhf
libasound2:armhf
libasound2-data
libass5:armhf
@@ -191,7 +190,6 @@
libhogweed4:armhf
libice6:armhf
libicu57:armhf
-libicu64:armhf
libidn11:armhf
libidn2-0:armhf
libimobiledevice6:armhf
@@ -318,7 +316,6 @@
libsmartcols1:armhf
libsmbclient:armhf
libsndfile1:armhf
-libsodium23:armhf
libspeex1:armhf
libsqlite0
libsqlite3-0:armhf
@@ -419,20 +416,9 @@
php-common
php-curl
php-xml
-php7.2-common
-php7.2-curl
-php7.2-xml
-php7.3
-php7.3-cli
-php7.3-common
-php7.3-curl
-php7.3-fpm
-php7.3-json
-php7.3-mbstring
-php7.3-mysql
-php7.3-opcache
-php7.3-readline
-php7.3-xml
+php7.0-common
+php7.0-curl
+php7.0-xml
pinentry-curses
plymouth
policykit-1
Should I copy paste that modified script and than run the upgrade again? Finishing it with the xbian update reinstall?
(8th Nov, 2019 08:37 AM)jakenl Wrote: [ -> ]Should I copy paste that modified script and than run the upgrade again? Finishing it with the xbian update reinstall?
No, you have to modify the upgraded nginx file. That means, you have to run the upgrade procedure until it fails, then modify the script, run
sudo apt-get install -f and
sudo apt-get install --reinstall xbian-update before reboot
Maybe running a
sudo apt-get upgrade could be useful, but was not necessary here
I finally got it sorted, with your help I got it solved!
I also had PHP7.3-curl not cooperating anymore after the upgrade to Buster, turned out that I should have updated this as well:
etc/apt/sources.list.d/php.list
update line to:
deb
https://packages.sury.org/php/ buster main
(10th Nov, 2019 12:23 AM)jakenl Wrote: [ -> ]I finally got it sorted, with your help I got it solved!
I also had PHP7.3-curl not cooperating anymore after the upgrade to Buster, turned out that I should have updated this as well:
etc/apt/sources.list.d/php.list
update line to:
deb https://packages.sury.org/php/ buster main
Thats fine
I suspected that you had a separate repository for PHP
(7th Nov, 2019 10:55 PM)Nachteule Wrote: [ -> ]Did it. Some packages could not be installed
Thank you for taking the time to look into this. It is a mystery to me where all those packages came from as this is the simplist Xbian build I have with just fan and dac added.
I'll look into it more tomorrow I hope and see what I can turn up.
As to the solution, well I may just leave things as they are for a while longer afterall. It's working as it is and as I said I have no 'need' to upgrade.
(10th Nov, 2019 05:45 AM)Skywatch Wrote: [ -> ]As to the solution, well I may just leave things as they are for a while longer afterall. It's working as it is and as I said I have no 'need' to upgrade.
You're right. There no need for upgrade.
But you should keep in mind, that Kodi v19 will never be available for Stretch
(10th Nov, 2019 06:33 AM)Nachteule Wrote: [ -> ]You're right. There no need for upgrade.
But you should keep in mind, that Kodi v19 will never be available for Stretch
At this very moment I am trying it on the pi3 xbian build (the one with the sql db on it) so will see how it goes.
I do think I found where I went wrong with this though
In /etc/apt/sources.list.d/xbian.list I had changed rpi2-stretch to rpi2-buster, but didn't chage armv7l-stretch
to armv7l-buster, so no wonder it got it's knickers in a twist!
Maybe I'll try the first one again when I get time.
After trying again as above I get to this point and select YES.
x Restart services during package upgrades without asking? x
x x
x x
tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqu
x < Yes > < No > x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
Then this happens and the ssh connection is disconnected...... Is this right
Restarting services possibly affected by the upgrade:
smbd: restarting...done.
openbsd-inetd: restarting...
Both reporting version as buster now, but I am getting this....
xbian@cinema2 ~ $ sudo apt-get install --reinstall xbian-update
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
I already wanrned: DO NOT start dist-upgrade inside of a ssh connection!
You have to run dpkg -- .... whatever (forgot the right command)
Sorry, to much red wine drunken today at the celebration of the first birthday of my grandchildren.
You have to run command: sudo dpkg --configure -a
for continuing installation process