How to update my nextbox from nc version 21.0.0.18 to nc23?

For an yet unknown reason the automated update of my nextbox did not work as described in the FAQ & manuals. The output below shows the current versions.

Now I would like to ask: With which reasonable steps can I bring the existing installation (from the first series Nextbox) to the current version status?

Most likely the “good” sequence of steps is known. After all, one or the other Nextbox out there made it to NC Bump 23.0.8 with on-board means, I suppose.

root@nextbox:~# docker exec -it -u www-data nextbox-compose_app_1 /var/www/html/occ status
  - installed: true
  - version: 21.0.0.18
  - versionstring: 21.0.0
  - edition: 

root@nextbox:~# ls -lh /usr/lib/nextbox-*
/usr/lib/nextbox-app:
total 24K
drwxr-xr-x 2 root root 4.0K Sep  9  2021 appinfo
drwxr-xr-x 2 root root 4.0K Sep  9  2021 css
drwxr-xr-x 2 root root 4.0K Sep  9  2021 img
drwxr-xr-x 2 root root 4.0K Sep  9  2021 js
drwxr-xr-x 4 root root 4.0K Jun 18  2021 lib
drwxr-xr-x 5 root root 4.0K Sep  9  2021 templates

/usr/lib/nextbox-compose:
total 1.2G
-rw-r--r-- 1 root root 1.7K Sep  7  2021 docker-compose-badnc.yml
-rw-r--r-- 1 root root 1.7K Sep  7  2021 docker-compose.yml
-rw-r--r-- 1 root root 1.2G Jun 18  2021 docker-images.tar
-rw-r--r-- 1 root root    0 Jun 22  2021 IMPORTED
-rwxr-xr-x 1 root root  318 Sep  7  2021 load-docker-images.sh

/usr/lib/nextbox-templates:
total 24K
-rw-r--r-- 1 root root 688 Sep  7  2021 50unattended-upgrades
-rw-r--r-- 1 root root  77 Sep  7  2021 ddclient
-rw-r--r-- 1 root root  43 Sep  7  2021 dphys-swapfile
-rw-r--r-- 1 root root  51 Sep  7  2021 journald.conf
-rw-r--r-- 1 root root  70 Sep  7  2021 nextbox-updater
-rw-r--r-- 1 root root 129 Sep  7  2021 nitrokey-nextbox.list

Mm ok
can you send the output of

sudo docker images

and

sudo apt list nextbox

Gladly:

usera@nextbox:~ $ sudo docker images
REPOSITORY                                      TAG                 IMAGE ID            CREATED             SIZE
docker.elastic.co/elasticsearch/elasticsearch   7.17.6              82852c3a574a        2 weeks ago         598MB
centos                                          8                   e6a0117ec169        11 months ago       272MB
nextcloud                                       21.0.0-apache       3d06f2d17193        17 months ago       780MB
mariadb                                         10.5.9              939d05495a90        18 months ago       387MB
redis                                           5.0.11-alpine       f84d97cdcb59        18 months ago       29.3MB
usera@nextbox:~ $ sudo apt list nextbox
Listing... Done
nextbox/groovy,groovy,now 1.0.10-1 all [installed]

Note: The elastic search image was manually added and serves the boxes single node fulltext search container.

ok I would recommend do a Backup before this.

Ok could you try to just do this:
sudo apt install nextbox

it will probably fail but then we can figure out why it did not update in the first place.

Ok, trying …

root@mybox:~# apt-get install -d --dry-run nextbox 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
nextbox is already the newest version (1.0.10-1).
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.
root@mybox:~#

As there are newer versions out there, maybe the installers subsystem uses somewhat outdated package archive lists. Let’s see …

root@mybox:~# apt-get install -V -u -d --print-uris --dry-run nextbox 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
nextbox is already the newest version (1.0.10-1).
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.

root@mytbox:~# apt list --upgradeable
Listing... Done
bluez/testing 5.50-1.2~deb10u2+rpt1 arm64 [upgradable from: 5.50-1.2~deb10u2]
firmware-atheros/testing,testing 1:20190114-2+rpt1 all [upgradable from: 1:20190114-1+rpt11]
firmware-brcm80211/testing,testing 1:20190114-2+rpt1 all [upgradable from: 1:20190114-1+rpt11]
firmware-libertas/testing,testing 1:20190114-2+rpt1 all [upgradable from: 1:20190114-1+rpt11]
firmware-misc-nonfree/testing,testing 1:20190114-2+rpt1 all [upgradable from: 1:20190114-1+rpt11]
firmware-realtek/testing,testing 1:20190114-2+rpt1 all [upgradable from: 1:20190114-1+rpt11]
libc-bin/testing 2.28-10+rpt2+rpi1 arm64 [upgradable from: 2.28-10]
libc-dev-bin/testing 2.28-10+rpt2+rpi1 arm64 [upgradable from: 2.28-10]
libc-l10n/testing,testing 2.28-10+rpt2+rpi1 all [upgradable from: 2.28-10]
libc6-dbg/testing 2.28-10+rpt2+rpi1 arm64 [upgradable from: 2.28-10]
libc6-dev/testing 2.28-10+rpt2+rpi1 arm64 [upgradable from: 2.28-10]
libc6/testing 2.28-10+rpt2+rpi1 arm64 [upgradable from: 2.28-10]
libnftnl11/testing 1.1.7-1~bpo10+1~0 arm64 [upgradable from: 1.1.2-2]
libraspberrypi-bin/testing 2+git20210719~113532+97bc818-1 arm64 [upgradable from: 2+git20201022~151804+e432bc3-1]
libraspberrypi-dev/testing 2+git20210719~113532+97bc818-1 arm64 [upgradable from: 2+git20201022~151804+e432bc3-1]
libraspberrypi-doc/testing 2+git20210719~113532+97bc818-1 all [upgradable from: 2+git20200813~095940+f73fca0-1]
libraspberrypi0/testing 2+git20210719~113532+97bc818-1 arm64 [upgradable from: 2+git20201022~151804+e432bc3-1]
linux-libc-dev/testing 1:1.20210831-3~buster arm64 [upgradable from: 1:1.20210527-1]
locales/testing,testing 2.28-10+rpt2+rpi1 all [upgradable from: 2.28-10]
pi-bluetooth/testing,testing 0.1.18 all [upgradable from: 0.1.17]
raspberrypi-bootloader/testing 1:1.20210831-3~buster arm64 [upgradable from: 1:1.20210527-1]
raspberrypi-kernel/testing 1:1.20210831-3~buster arm64 [upgradable from: 1:1.20210527-1]
raspberrypi-sys-mods/testing 20210901 arm64 [upgradable from: 20210310]
rpi-eeprom/testing 12.13-1 arm64 [upgradable from: 12.5-1]
rpi-update/testing,testing 20210618 all [upgradable from: 20200409]

Let’s try a list update …

root@mybox:~# apt update
Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
Get:2 http://deb.debian.org/debian-security buster/updates InRelease [34.8 kB]                                                    
Err:2 http://deb.debian.org/debian-security buster/updates InRelease                             
  Error writing to output file - write (28: No space left on device) [IP: 2a04:b80]
Err:1 http://deb.debian.org/debian buster InRelease                                              
  Splitting up /var/lib/apt/lists/partial/deb.debian.org_debian_dists_buster_InRelease into data and signature failed
Get:3 http://ppa.launchpad.net/nitrokey/nextbox/ubuntu groovy InRelease [18.0 kB]                                            
Err:3 http://ppa.launchpad.net/nitrokey/nextbox/ubuntu groovy InRelease                                                             
  Error writing to output file - write (28: No space left on device) [IP: 2620:a 80]
Get:4 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]                                                               
Err:4 http://deb.debian.org/debian buster-updates InRelease                                                                   
  Error writing to output file - write (28: No space left on device) [IP: 2a04:b 80]
Get:5 http://ppa.launchpad.net/nitrokey/nextbox/ubuntuΩ focal InRelease [18.0 kB]                                              
Err:5 http://ppa.launchpad.net/nitrokey/nextbox/ubuntu focal InRelease                           
  Error writing to output file - write (28: No space left on device) [IP: 2620:a 80]
Get:6 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB] 
Err:6 http://archive.raspberrypi.org/debian buster InRelease
  Error writing to output file - write (28: No space left on device) [IP: 2a00:c 80]
Reading package lists... Done  
Building dependency tree       
Reading state information... Done
25 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.debian.org/debian buster InRelease: Splitting up /var/lib/apt/lists/partial/deb.debian.org_debian_dists_buster_InRelease into data and signature failed
W: Failed to fetch http://deb.debian.org/debian/dists/buster/InRelease  Splitting up /var/lib/apt/lists/partial/deb.debian.org_debian_dists_buster_InRelease into data and signature failed
W: Failed to fetch http://deb.debian.org/debian-security/dists/buster/updates/InRelease  Error writing to output file - write (28: No space left on device) [IP: 2a04:b 80]
W: Failed to fetch http://deb.debian.org/debian/dists/buster-updates/InRelease  Error writing to output file - write (28: No space left on device) [IP: 2a04:b 80]
W: Failed to fetch http://ppa.launchpad.net/nitrokey/nextbox/ubuntu/dists/groovy/InRelease  Error writing to output file - write (28: No space left on device) [IP: 2620:a 80]
W: Failed to fetch http://ppa.launchpad.net/nitrokey/nextbox/ubuntu/dists/focal/InRelease  Error writing to output file - write (28: No space left on device) [IP: 2620:a 80]
W: Failed to fetch http://archive.raspberrypi.org/debian/dists/buster/InRelease  Error writing to output file - write (28: No space left on device) [IP: 2a00:c 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@mybox:~#

This might cause the outdated view on package archives:

   Error writing to output file - write (28: No space left on device)

The lists are located below /var/lib, which is located on the root volume, which is filled completely:

root@mybox:/var/lib/apt# df -h .
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       6.9G  6.6G     0 100% /
root@nextbox:/var/lib/apt# /bin/ls -la
total 40
drwxr-xr-x  5 root root  4096 Sep 28  2021 .
drwxr-xr-x 29 root root  4096 Jun 22  2021 ..
-rw-r--r--  1 root root     0 Sep 12 12:20 daily_lock
-rw-r--r--  1 root root 18209 Sep 28  2021 extended_states
drwxr-xr-x  4 root root  4096 Sep 27  2021 lists
drwxr-xr-x  3 root root  4096 Dec  7  2020 mirrors
drwxr-xr-x  2 root root  4096 Jun 22  2021 periodic

Obviously “daily_lock” got written during my tests. Is there more to see?

root@nextbox:/var/lib/apt# du -sh .
120M	
root@nextbox:/var/lib/apt# /bin/find . -newer ./periodic -ls
    16142      4 drwxr-xr-x   5 root     root         4096 Sep 28  2021 .
     3953     20 -rw-r--r--   1 root     root        18209 Sep 28  2021 ./extended_states
    16163      4 drwxr-xr-x   4 root     root         4096 Sep 27  2021 ./lists
    14324     32 -rw-r--r--   1 root     root        32610 Sep 27  2021 ./lists/archive.raspberrypi.org_debian_dists_buster_InRelease
     5357     76 -rw-r--r--   1 root     root        74982 Sep 18  2021 ./lists/deb.debian.org_debian_dists_buster-updates_main_binary-armhf_Packages
     5183   1664 -rw-r--r--   1 root     root      1700993 Sep 21  2021 ./lists/deb.debian.org_debian-security_dists_buster_updates_main_binary-armhf_Packages
    13949   1676 -rw-r--r--   1 root     root      1715084 Sep 21  2021 ./lists/deb.debian.org_debian-security_dists_buster_updates_main_binary-arm64_Packages
    13271      4 -rw-r--r--   1 root     root         2247 Sep  8  2021 ./lists/ppa.launchpad.net_nitrokey_nextbox_ubuntu_dists_groovy_main_binary-armhf_Packages
     8683   1084 -rw-r--r--   1 root     root      1107210 Sep 19  2021 ./lists/deb.debian.org_debian-security_dists_buster_updates_main_i18n_Translation-en
     1929     64 -rw-r--r--   1 root     root        65375 Sep 27  2021 ./lists/deb.debian.org_debian-security_dists_buster_updates_InRelease
     3835    120 -rw-r--r--   1 root     root       122332 Aug 14  2021 ./lists/deb.debian.org_debian_dists_buster_InRelease
     8674     20 -rw-r--r--   1 root     root        18045 Aug 16  2021 ./lists/ppa.launchpad.net_nitrokey_nextbox_ubuntu_dists_focal_InRelease
    14327   1544 -rw-r--r--   1 root     root      1578807 Sep 27  2021 ./lists/archive.raspberrypi.org_debian_dists_buster_main_binary-armhf_Packages
    14326     52 -rw-r--r--   1 root     root        51904 Sep 27  2021 ./lists/deb.debian.org_debian_dists_buster-updates_InRelease
    16167      4 drwx------   2 _apt     root         4096 Sep 12 13:25 ./lists/partial
    14299      0 -rw-r--r--   1 root     root            0 Sep 12 09:01 ./lists/partial/archive.raspberrypi.org_debian_dists_buster_InRelease
     1927      0 -rw-r--r--   1 root     root            0 Sep 12 11:52 ./lists/partial/deb.debian.org_debian-security_dists_buster_updates_InRelease
     1918    120 -rw-r--r--   1 root     root       121570 Sep 10 12:43 ./lists/partial/deb.debian.org_debian_dists_buster_InRelease
     1740      0 -rw-r--r--   1 root     root            0 Aug 16 17:53 ./lists/partial/ppa.launchpad.net_nitrokey_nextbox_ubuntu_dists_focal_InRelease
    38968      0 -rw-r--r--   1 root     root            0 Sep 12 09:17 ./lists/partial/deb.debian.org_debian_dists_buster-updates_InRelease
      381      0 -rw-r--r--   1 root     root            0 Jan  9  2022 ./lists/partial/ppa.launchpad.net_nitrokey_nextbox_ubuntu_dists_groovy_InRelease
     5242     76 -rw-r--r--   1 root     root        75912 Sep 18  2021 ./lists/deb.debian.org_debian_dists_buster-updates_main_binary-arm64_Packages
    13273      4 -rw-r--r--   1 root     root         2247 Sep  8  2021 ./lists/ppa.launchpad.net_nitrokey_nextbox_ubuntu_dists_groovy_main_binary-arm64_Packages
     3837     20 -rw-r--r--   1 root     root        18048 Sep  8  2021 ./lists/ppa.launchpad.net_nitrokey_nextbox_ubuntu_dists_groovy_InRelease
    13288      4 -rw-r--r--   1 root     root          757 Aug 16  2021 ./lists/ppa.launchpad.net_nitrokey_nextbox_ubuntu_dists_focal_main_binary-armhf_Packages
    14793     76 -rw-r--r--   1 root     root        74847 Jun 23  2021 ./lists/deb.debian.org_debian_dists_buster-updates_main_i18n_Translation-en
     1149      4 -rw-r--r--   1 root     root          757 Aug 16  2021 ./lists/ppa.launchpad.net_nitrokey_nextbox_ubuntu_dists_focal_main_binary-arm64_Packages
    14333   1096 -rw-r--r--   1 root     root      1120030 Sep 27  2021 ./lists/archive.raspberrypi.org_debian_dists_buster_main_binary-arm64_Packages
    13290      4 -rw-r--r--   1 root     root          138 Aug 16  2021 ./lists/ppa.launchpad.net_nitrokey_nextbox_ubuntu_dists_focal_main_i18n_Translation-en
    17556      0 -rw-r--r--   1 root     root            0 Sep 12 12:20 ./daily_lock
    14784      0 -rw-r--r--   1 root     root            0 Sep 12 12:02 ./periodic/update-stamp
    14785      0 -rw-r--r--   1 root     root            0 Sep 12 12:02 ./periodic/download-upgradeable-stamp
     1667      0 -rw-r--r--   1 root     root            0 Aug 29 00:21 ./periodic/autoclean-stamp
      264      0 -rw-r--r--   1 root     root            0 Sep 12 12:21 ./periodic/unattended-upgrades-stamp
      740      0 -rw-r--r--   1 root     root            0 Sep 12 12:21 ./periodic/upgrade-stamp

Now I suspect that the system already fails when trying to retrieve the current package lists due to lack of storage. For the next test I backed up the /var/lib/apt structure and removed the “archived” lists to get some more free space on the “/” volume:

root@mybox:/var/lib/apt/lists# apt update
Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
Get:2 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB]    
Get:3 http://ppa.launchpad.net/nitrokey/nextbox/ubuntu groovy InRelease [18.0 kB]          
Get:4 http://deb.debian.org/debian-security buster/updates InRelease [34.8 kB]                        
Get:5 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]          
Get:6 http://ppa.launchpad.net/nitrokey/nextbox/ubuntu focal InRelease [18.0 kB]      
Get:7 http://deb.debian.org/debian buster/main armhf Packages [7,706 kB]
Ign:7 http://deb.debian.org/debian buster/main armhf Packages
Get:8 http://deb.debian.org/debian buster/main arm64 Packages [7,737 kB]
Ign:8 http://deb.debian.org/debian buster/main arm64 Packages
Get:9 http://deb.debian.org/debian buster/main Translation-en [5,969 kB]
Ign:9 http://deb.debian.org/debian buster/main Translation-en
Get:10 http://deb.debian.org/debian buster/contrib armhf Packages [40.1 kB]
Ign:10 http://deb.debian.org/debian buster/contrib armhf Packages
Err:4 http://deb.debian.org/debian-security buster/updates InRelease
  At least one invalid signature was encountered.
Get:11 http://deb.debian.org/debian buster/contrib arm64 Packages [38.4 kB]
Ign:11 http://deb.debian.org/debian buster/contrib arm64 Packages
Err:3 http://ppa.launchpad.net/nitrokey/nextbox/ubuntu groovy InRelease
  Splitting up /var/lib/apt/lists/partial/ppa.launchpad.net_nitrokey_nextbox_ubuntu_dists_groovy_InRelease into data and signature failed
Err:2 http://archive.raspberrypi.org/debian buster InRelease
  Splitting up /var/lib/apt/lists/partial/archive.raspberrypi.org_debian_dists_buster_InRelease into data and signature failed
Err:5 http://deb.debian.org/debian buster-updates InRelease    
  Splitting up /var/lib/apt/lists/partial/deb.debian.org_debian_dists_buster-updates_InRelease into data and signature failed
Get:12 http://deb.debian.org/debian buster/non-free armhf Packages [62.1 kB]
Ign:12 http://deb.debian.org/debian buster/non-free armhf Packages
Err:6 http://ppa.launchpad.net/nitrokey/nextbox/ubuntu focal InRelease
  Splitting up /var/lib/apt/lists/partial/ppa.launchpad.net_nitrokey_nextbox_ubuntu_dists_focal_InRelease into data and signature failed
Get:13 http://deb.debian.org/debian buster/non-free arm64 Packages [53.9 kB]
Ign:13 http://deb.debian.org/debian buster/non-free arm64 Packages
Get:14 http://deb.debian.org/debian buster/non-free Translation-en [88.9 kB]
Ign:14 http://deb.debian.org/debian buster/non-free Translation-en
Get:7 http://deb.debian.org/debian buster/main armhf Packages [7,706 kB]
Ign:7 http://deb.debian.org/debian buster/main armhf Packages
Get:8 http://deb.debian.org/debian buster/main arm64 Packages [7,737 kB]
Ign:8 http://deb.debian.org/debian buster/main arm64 Packages
Get:9 http://deb.debian.org/debian buster/main Translation-en [5,969 kB]
Ign:9 http://deb.debian.org/debian buster/main Translation-en
Get:10 http://deb.debian.org/debian buster/contrib armhf Packages [40.1 kB]
Ign:10 http://deb.debian.org/debian buster/contrib armhf Packages
Get:11 http://deb.debian.org/debian buster/contrib arm64 Packages [38.4 kB]
Ign:11 http://deb.debian.org/debian buster/contrib arm64 Packages
Get:12 http://deb.debian.org/debian buster/non-free armhf Packages [62.1 kB]
Ign:12 http://deb.debian.org/debian buster/non-free armhf Packages
Get:13 http://deb.debian.org/debian buster/non-free arm64 Packages [53.9 kB]
Ign:13 http://deb.debian.org/debian buster/non-free arm64 Packages
Get:14 http://deb.debian.org/debian buster/non-free Translation-en [88.9 kB]
Ign:14 http://deb.debian.org/debian buster/non-free Translation-en
Get:7 http://deb.debian.org/debian buster/main armhf Packages [10.5 MB]
Ign:7 http://deb.debian.org/debian buster/main armhf Packages
Get:8 http://deb.debian.org/debian buster/main arm64 Packages [10.5 MB]
Ign:8 http://deb.debian.org/debian buster/main arm64 Packages
Ign:9 http://deb.debian.org/debian buster/main Translation-en
Get:10 http://deb.debian.org/debian buster/contrib armhf Packages [47.7 kB]
Ign:10 http://deb.debian.org/debian buster/contrib armhf Packages
Get:11 http://deb.debian.org/debian buster/contrib arm64 Packages [45.6 kB]
Ign:11 http://deb.debian.org/debian buster/contrib arm64 Packages
Get:12 http://deb.debian.org/debian buster/non-free armhf Packages [74.5 kB]
Ign:12 http://deb.debian.org/debian buster/non-free armhf Packages
Get:13 http://deb.debian.org/debian buster/non-free arm64 Packages [64.2 kB]
Ign:13 http://deb.debian.org/debian buster/non-free arm64 Packages
Ign:14 http://deb.debian.org/debian buster/non-free Translation-en
Get:7 http://deb.debian.org/debian buster/main armhf Packages [10.5 MB]
Ign:7 http://deb.debian.org/debian buster/main armhf Packages
Get:8 http://deb.debian.org/debian buster/main arm64 Packages [10.5 MB]
Ign:8 http://deb.debian.org/debian buster/main arm64 Packages
Err:9 http://deb.debian.org/debian buster/main Translation-en
  Error writing to output file - write (28: No space left on device) [IP: 2a04:a 80]
Get:10 http://deb.debian.org/debian buster/contrib armhf Packages [47.7 kB]
Err:10 http://deb.debian.org/debian buster/contrib armhf Packages
  
Get:11 http://deb.debian.org/debian buster/contrib arm64 Packages [45.6 kB]
Err:11 http://deb.debian.org/debian buster/contrib arm64 Packages
  
Get:12 http://deb.debian.org/debian buster/non-free armhf Packages [74.5 kB]
Err:12 http://deb.debian.org/debian buster/non-free armhf Packages
  
Get:13 http://deb.debian.org/debian buster/non-free arm64 Packages [64.2 kB]
Err:13 http://deb.debian.org/debian buster/non-free arm64 Packages
  
Ign:14 http://deb.debian.org/debian buster/non-free Translation-en
Ign:7 http://deb.debian.org/debian buster/main armhf Packages
Ign:8 http://deb.debian.org/debian buster/main arm64 Packages
Reading package lists... Done
N: Repository 'http://deb.debian.org/debian buster InRelease' changed its 'Version' value from '10.10' to '10.13'
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.debian.org/debian-security buster/updates InRelease: At least one invalid signature was encountered.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ppa.launchpad.net/nitrokey/nextbox/ubuntu groovy InRelease: Splitting up /var/lib/apt/lists/partial/ppa.launchpad.net_nitrokey_nextbox_ubuntu_dists_groovy_InRelease into data and signature failed
W: GPG error: http://archive.raspberrypi.org/debian buster InRelease: Splitting up /var/lib/apt/lists/partial/archive.raspberrypi.org_debian_dists_buster_InRelease into data and signature failed
E: The repository 'http://archive.raspberrypi.org/debian buster InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://deb.debian.org/debian buster-updates InRelease: Splitting up /var/lib/apt/lists/partial/deb.debian.org_debian_dists_buster-updates_InRelease into data and signature failed
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ppa.launchpad.net/nitrokey/nextbox/ubuntu focal InRelease: Splitting up /var/lib/apt/lists/partial/ppa.launchpad.net_nitrokey_nextbox_ubuntu_dists_focal_InRelease into data and signature failed

THERE WE ARE!
For some (as yet) unknown reason, an overflowing root file system prevented the package lists from being fully updated. As a result, the “unattended upgrades” always showed an up-to-date system.

I detected a 200M large core dump … but it freed up just 1.6M effectively.
Moved /var/lib/apt/lists/deb* away:

root@mybox:/var/lib/apt/lists# df -h .
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       6.9G  6.4G  119M  99% /
root@mybox:/var/lib/apt/lists# apt update
Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
Get:2 http://deb.debian.org/debian-security buster/updates InRelease [34.8 kB]                                                    
Get:3 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]                            
Get:4 http://ppa.launchpad.net/nitrokey/nextbox/ubuntu groovy InRelease [18.0 kB]                                                   
Get:5 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB]                            
Get:6 http://ppa.launchpad.net/nitrokey/nextbox/ubuntu focal InRelease [18.0 kB]
Get:7 http://deb.debian.org/debian buster/main arm64 Packages [7,737 kB]
Get:8 http://deb.debian.org/debian buster/main armhf Packages [7,706 kB]
Get:9 http://deb.debian.org/debian buster/main Translation-en [5,969 kB]
Get:10 http://deb.debian.org/debian buster/contrib arm64 Packages [38.4 kB]
Get:11 http://deb.debian.org/debian buster/contrib armhf Packages [40.1 kB]
Get:12 http://deb.debian.org/debian buster/contrib Translation-en [44.2 kB]
Get:13 http://deb.debian.org/debian buster/non-free arm64 Packages [53.9 kB]
Get:14 http://deb.debian.org/debian buster/non-free armhf Packages [62.1 kB]
Get:15 http://deb.debian.org/debian buster/non-free Translation-en [88.9 kB]
Get:16 http://deb.debian.org/debian-security buster/updates/main armhf Packages [347 kB]
Get:17 http://deb.debian.org/debian-security buster/updates/main arm64 Packages [344 kB]
Get:18 http://deb.debian.org/debian-security buster/updates/main Translation-en [190 kB]
Get:19 http://deb.debian.org/debian-security buster/updates/non-free Translation-en [344 B]
Get:20 http://deb.debian.org/debian buster-updates/main arm64 Packages [8,780 B]
Get:21 http://deb.debian.org/debian buster-updates/main armhf Packages [8,784 B]
Get:22 http://deb.debian.org/debian buster-updates/main Translation-en [6,915 B]
Get:23 http://ppa.launchpad.net/nitrokey/nextbox/ubuntu groovy/main arm64 Packages [768 B]
Get:24 http://ppa.launchpad.net/nitrokey/nextbox/ubuntu groovy/main armhf Packages [768 B]
Get:25 http://archive.raspberrypi.org/debian buster/main arm64 Packages [303 kB]
Get:26 http://archive.raspberrypi.org/debian buster/main armhf Packages [392 kB]
Get:27 http://ppa.launchpad.net/nitrokey/nextbox/ubuntu focal/main armhf Packages [772 B]
Get:28 http://ppa.launchpad.net/nitrokey/nextbox/ubuntu focal/main arm64 Packages [772 B]
Get:29 http://ppa.launchpad.net/nitrokey/nextbox/ubuntu focal/main Translation-en [204 B]
Ign:9 http://deb.debian.org/debian buster/main Translation-en                                                                                                                                                                                                        
Ign:9 http://deb.debian.org/debian buster/main Translation-en                                                                                                                                                                                                        
Err:9 http://deb.debian.org/debian buster/main Translation-en                                                                                                                                                                                                        
  Write error - write (28: No space left on device)
Fetched 22.3 MB in 15s (1,460 kB/s)                                                                                                                                                                                                                                  
Reading package lists... Done
E: Failed to fetch http://deb.debian.org/debian/dists/buster/main/i18n/Translation-en  Write error - write (28: No space left on device)
E: Some index files failed to download. They have been ignored, or old ones used instead.

root@mybox:/var/lib/apt/lists# df -h .
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       6.9G  6.5G   91M  99% /

Still not enough space.
What else could I remove / move away temporarily??

Beneath the prosaic analysis and just for the protocol:

root@mybox:/var/lib/apt/lists# apt-get install -V -u -d --print-uris --dry-run nextbox 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
   nextbox (1.0.10-1 => 1.0.27-1)
1 upgraded, 0 newly installed, 0 to remove and 84 not upgraded.
Inst nextbox [1.0.10-1] (1.0.27-1 Nextbox:20.04/focal [all])
Conf nextbox (1.0.27-1 Nextbox:20.04/focal [all])
root@mybox:/var/lib/apt/lists#

The system got an idea of a more actual nextbox package, finally.
Now it would be great to get some more space free on the root-filesystem. What happened there since the first setup:

root@mybox:/home/nextuser# find / -xdev -type f -newer /home/nextuser/.ssh/authorized_keys -ls
    13274      4 -rw-r--r--   1 root     root         1018 Sep 12 00:00 /var/lib/logrotate/status
     1923      4 -rw-r--r--   1 root     root          548 Sep 11 11:17 /var/lib/dhcpcd5/eth0.lease
     1020      4 -rw-r--r--   1 root     root          145 Sep 12 14:52 /var/lib/dhcpcd5/eth0.lease6
    14297      4 -rw-r--r--   1 root     root          376 Aug 30 07:11 /var/lib/alsa/asound.state
    17386      0 -rw-------   1 root     root            0 Sep 28  2021 /var/lib/dpkg/triggers/Lock
    38976      4 -rw-r--r--   1 root     root         1073 Sep 28  2021 /var/lib/dpkg/info/lsof.list
    14814      0 -rw-r-----   1 root     root            0 Sep 28  2021 /var/lib/dpkg/lock
    38979    532 -rw-r--r--   1 root     root       544124 Sep 28  2021 /var/lib/dpkg/status
    38971    532 -rw-r--r--   1 root     root       544163 Sep 28  2021 /var/lib/dpkg/status-old
     8678      4 -rw-r--r--   1 root     root            2 Sep 11 11:17 /var/lib/systemd/rfkill/platform-fe300000.mmcnr:wlan
      751      0 -rw-r--r--   1 systemd-timesync systemd-timesync        0 Sep 12 14:40 /var/lib/systemd/timesync/clock
    14795      0 -rw-r--r--   1 root             root                    0 Sep 12 12:20 /var/lib/systemd/timers/stamp-apt-daily-upgrade.timer
      874      0 -rw-r--r--   1 root             root                    0 Sep 12 12:01 /var/lib/systemd/timers/stamp-apt-daily.timer
    14792      0 -rw-r--r--   1 root             root                    0 Sep 12 00:00 /var/lib/systemd/timers/stamp-logrotate.timer
    14794      0 -rw-r--r--   1 root             root                    0 Sep 12 13:54 /var/lib/systemd/timers/stamp-certbot.timer
    14787      0 -rw-r--r--   1 root             root                    0 Sep 12 00:00 /var/lib/systemd/timers/stamp-man-db.timer
      747      4 -rw-------   1 root             root                  512 Sep 11 11:17 /var/lib/systemd/random-seed
     3953     20 -rw-r--r--   1 root             root                18209 Sep 28  2021 /var/lib/apt/extended_states
     1740     32 -rw-r--r--   1 root             root                32594 Sep 12 09:01 /var/lib/apt/lists/archive.raspberrypi.org_debian_dists_buster_InRelease
    14750     44 -rw-r--r--   1 root             root                42106 Aug 18 21:14 /var/lib/apt/lists/deb.debian.org_debian_dists_buster-updates_main_binary-armhf_Packages
     3835   1912 -rw-r--r--   1 root             root              1954831 Sep 12 11:52 /var/lib/apt/lists/deb.debian.org_debian-security_dists_buster_updates_main_binary-armhf_Packages
    14742   1900 -rw-r--r--   1 root             root              1944072 Sep 12 11:52 /var/lib/apt/lists/deb.debian.org_debian-security_dists_buster_updates_main_binary-arm64_Packages
    14758      4 -rw-r--r--   1 root             root                 2247 Dec  9  2021 /var/lib/apt/lists/ppa.launchpad.net_nitrokey_nextbox_ubuntu_dists_groovy_main_binary-armhf_Packages
    14744   1264 -rw-r--r--   1 root             root              1291501 Sep 12 11:52 /var/lib/apt/lists/deb.debian.org_debian-security_dists_buster_updates_main_i18n_Translation-en
     1927     36 -rw-r--r--   1 root             root                34840 Sep 12 11:52 /var/lib/apt/lists/deb.debian.org_debian-security_dists_buster_updates_InRelease
     5242     20 -rw-r--r--   1 root             root                18045 Aug 16 17:53 /var/lib/apt/lists/ppa.launchpad.net_nitrokey_nextbox_ubuntu_dists_focal_InRelease
    14762   1540 -rw-r--r--   1 root             root              1574643 Sep 12 09:01 /var/lib/apt/lists/archive.raspberrypi.org_debian_dists_buster_main_binary-armhf_Packages
    14299     56 -rw-r--r--   1 root             root                56621 Sep 12 09:17 /var/lib/apt/lists/deb.debian.org_debian_dists_buster-updates_InRelease
    14324      0 -rw-r--r--   1 root             root                    0 Sep 10 12:03 /var/lib/apt/lists/partial/deb.debian.org_debian_dists_buster_non-free_binary-arm64_Packages.gz
    14752    296 -rw-r--r--   1 root             root               299637 Sep 10 12:03 /var/lib/apt/lists/partial/deb.debian.org_debian_dists_buster_non-free_binary-armhf_Packages
    14303     56 -rw-r--r--   1 root             root                53860 Sep 10 12:03 /var/lib/apt/lists/partial/deb.debian.org_debian_dists_buster_non-free_binary-arm64_Packages.xz
    14308   7528 -rw-r--r--   1 root             root              7705604 Sep 10 12:04 /var/lib/apt/lists/partial/deb.debian.org_debian_dists_buster_main_binary-armhf_Packages.xz
    14314     40 -rw-r--r--   1 root             root                40104 Oct  9  2021 /var/lib/apt/lists/partial/deb.debian.org_debian_dists_buster_contrib_binary-armhf_Packages.xz
    14313   5832 -rw-r--r--   1 root             root              5969467 Sep 10 12:04 /var/lib/apt/lists/partial/deb.debian.org_debian_dists_buster_main_i18n_Translation-en.bz2
    14316     40 -rw-r--r--   1 root             root                38400 Oct  9  2021 /var/lib/apt/lists/partial/deb.debian.org_debian_dists_buster_contrib_binary-arm64_Packages.xz
      381    120 -rw-r--r--   1 root             root               121570 Sep 10 12:43 /var/lib/apt/lists/partial/deb.debian.org_debian_dists_buster_InRelease
    14322      0 -rw-r--r--   1 root             root                    0 Oct  9  2021 /var/lib/apt/lists/partial/deb.debian.org_debian_dists_buster_contrib_binary-arm64_Packages.gz
    14317      0 -rw-r--r--   1 root             root                    0 Sep 10 12:04 /var/lib/apt/lists/partial/deb.debian.org_debian_dists_buster_main_binary-armhf_Packages.gz
    14319      0 -rw-r--r--   1 root             root                    0 Sep 10 12:04 /var/lib/apt/lists/partial/deb.debian.org_debian_dists_buster_main_binary-arm64_Packages.gz
    14323      0 -rw-r--r--   1 root             root                    0 Sep 10 12:03 /var/lib/apt/lists/partial/deb.debian.org_debian_dists_buster_non-free_binary-armhf_Packages.gz
    14309   7560 -rw-r--r--   1 root             root              7737360 Sep 10 12:04 /var/lib/apt/lists/partial/deb.debian.org_debian_dists_buster_main_binary-arm64_Packages.xz
    14320      0 -rw-r--r--   1 root             root                    0 Oct  9  2021 /var/lib/apt/lists/partial/deb.debian.org_debian_dists_buster_contrib_binary-armhf_Packages.gz
    13956     64 -rw-r--r--   1 root             root                62088 Sep 10 12:03 /var/lib/apt/lists/partial/deb.debian.org_debian_dists_buster_non-free_binary-armhf_Packages.xz
    14304     88 -rw-r--r--   1 root             root                88854 Sep 10 12:03 /var/lib/apt/lists/partial/deb.debian.org_debian_dists_buster_non-free_i18n_Translation-en.bz2
    14748     44 -rw-r--r--   1 root             root                42119 Aug 18 21:14 /var/lib/apt/lists/deb.debian.org_debian_dists_buster-updates_main_binary-arm64_Packages
    14756      4 -rw-r--r--   1 root             root                 2247 Dec  9  2021 /var/lib/apt/lists/ppa.launchpad.net_nitrokey_nextbox_ubuntu_dists_groovy_main_binary-arm64_Packages
     1918     20 -rw-r--r--   1 root             root                18048 Jan  9  2022 /var/lib/apt/lists/ppa.launchpad.net_nitrokey_nextbox_ubuntu_dists_groovy_InRelease
    14764      4 -rw-r--r--   1 root             root                 2247 Aug 16 17:53 /var/lib/apt/lists/ppa.launchpad.net_nitrokey_nextbox_ubuntu_dists_focal_main_binary-armhf_Packages
    14754     32 -rw-r--r--   1 root             root                29820 Jan 24  2022 /var/lib/apt/lists/deb.debian.org_debian_dists_buster-updates_main_i18n_Translation-en
    14766      4 -rw-r--r--   1 root             root                 2247 Aug 16 17:53 /var/lib/apt/lists/ppa.launchpad.net_nitrokey_nextbox_ubuntu_dists_focal_main_binary-arm64_Packages
    14760   1092 -rw-r--r--   1 root             root              1114798 Sep 12 09:01 /var/lib/apt/lists/archive.raspberrypi.org_debian_dists_buster_main_binary-arm64_Packages
    14768      4 -rw-r--r--   1 root             root                  404 Jan 11  2022 /var/lib/apt/lists/ppa.launchpad.net_nitrokey_nextbox_ubuntu_dists_focal_main_i18n_Translation-en
    17556      0 -rw-r--r--   1 root             root                    0 Sep 12 12:20 /var/lib/apt/daily_lock
    14784      0 -rw-r--r--   1 root             root                    0 Sep 12 12:02 /var/lib/apt/periodic/update-stamp
    14785      0 -rw-r--r--   1 root             root                    0 Sep 12 12:02 /var/lib/apt/periodic/download-upgradeable-stamp
     1667      0 -rw-r--r--   1 root             root                    0 Aug 29 00:21 /var/lib/apt/periodic/autoclean-stamp
      264      0 -rw-r--r--   1 root             root                    0 Sep 12 12:21 /var/lib/apt/periodic/unattended-upgrades-stamp
      740      0 -rw-r--r--   1 root             root                    0 Sep 12 12:21 /var/lib/apt/periodic/upgrade-stamp
     1554    532 -rw-r--r--   1 root             root               544124 Sep 28  2021 /var/backups/dpkg.status.0
     1149      4 -rw-------   1 root             root                   39 Sep 12 14:44 /root/.lesshst
     5152     12 -rw-------   1 root             root                11815 Sep 11 06:17 /root/.bash_history
    16039      0 -rw-------   1 nextuser         nextuser                0 Dec  1  2021 /home/nextuser/.lesshst
      295      8 -rw-------   1 nextuser         nextuser             4266 Sep  9 03:25 /home/nextuser/.bash_history
    16038      4 -rw-r--r--   1 root             root                  232 Sep 29  2021 /etc/sysctl.d/10-ipv6-privacy.conf
      750      4 -rw-r--r--   1 root             root                  517 Sep 26  2021 /etc/fstab
      745      4 -rw-r--r--   1 root             root                   20 Sep 12 14:17 /etc/fake-hwclock.data
     1925      4 -rw-r--r--   1 root             root                  466 Sep 26  2021 /etc/.fstab
      863      4 -rw-r--r--   1 root             root                  114 Sep 11 11:17 /etc/resolv.conf
      738      4 -rw-------   1 root             root                  199 Nov 21  2021 /etc/ddclient.conf
     1260      4 -rw-r--r--   1 root             root                  432 Sep 27  2021 /etc/letsencrypt/cli.ini
     1227      4 -rw-r--r--   1 root             root                   18 Jan 26  2022 /etc/resolv.conf.bak

well you could have a look into /var/log for freeing up some space, also apt clean helps (clears the apt cache)
Also maybe this helps in narrowing it down https://www.cyberciti.biz/faq/linux-find-largest-file-in-directory-recursively-using-find-du/

  • A nextbox mounts [root-fs]/var/log onto [nextbox-data-disk]/srv/var/log, with plenty of storage.
  • apt clean enabled for an additional Megabyte:
root@mybox:/home/nextuser# df -h .
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       6.9G  6.5G   91M  99% /
root@mybox:/home/nextuser# apt clean
root@mybox:/home/nextuser# df -h .
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       6.9G  6.5G   92M  99% /
  • The listings above, in particular regarding /var/lib/apt/*, should point out some details. But the largest file listing is provided gladly, but unfortunately contains no files of my own.
root@mybox:~/# find / -xdev -type f -printf "%s\t%p\n" | sort -n | tail -40
3042374	/usr/lib/gcc/aarch64-linux-gnu/8/libasan.a
3066520	/usr/bin/perl
3066520	/usr/bin/perl5.28.1
3098125	/usr/lib/udev/hwdb.d/20-pci-vendor-model.hwdb
3098176	/usr/lib/aarch64-linux-gnu/libperl.so.5.28.1
3153104	/usr/sbin/recvtty
3322872	/usr/bin/aarch64-linux-gnu-dwp
3386286	/usr/share/i18n/locales/iso14651_t1_common
3604200	/usr/bin/python2.7
3669825	/usr/lib/nextbox-app/js/nextbox-main.js.map
3866673	/usr/lib/aarch64-linux-gnu/perl/5.28.1/CORE/charclass_invlists.h
4523368	/usr/share/i18n/locales/cns11643_stroke
4563350	/usr/lib/aarch64-linux-gnu/libc.a
4744392	/usr/bin/python3.7
4744392	/usr/bin/python3.7m
4908696	/usr/lib/gcc/aarch64-linux-gnu/8/libstdc++.a
5038504	/usr/lib/debug/.build-id/51/02c6c3b7990e7c8019c20bbb06f7e4e57fc70f.debug
5046064	/usr/lib/aarch64-linux-gnu/libpython3.7m.so.1.0
5361584	/usr/lib/file/magic.mgc
5425256	/usr/bin/aarch64-linux-gnu-ld.gold
5616952	/usr/bin/docker-containerd-shim
6426573	/usr/share/GeoIP/GeoIPv6.dat
6866374	/usr/lib/aarch64-linux-gnu/libpthread.a
6894720	/usr/bin/rtun-linux-arm64
7272920	/usr/sbin/runc
7393712	/usr/bin/gdb
9639868	/usr/lib/udev/hwdb.bin
11069912	/usr/sbin/ovrouter
15120832	/usr/bin/docker-containerd-ctr
17841416	/usr/lib/gcc/aarch64-linux-gnu/8/lto1
18645032	/usr/lib/gcc/aarch64-linux-gnu/8/cc1
18736472	/usr/bin/dnet
20397656	/usr/lib/gcc/aarch64-linux-gnu/8/cc1plus
27186816	/usr/lib/aarch64-linux-gnu/libicudata.so.63.1
27245088	/usr/bin/docker-containerd
31008729	/usr/src/hello_pi/hello_video/test.h264
51147752	/usr/bin/docker-linux-arm64
63200200	/usr/sbin/dockerd
104857600	/var/swap
1229960704	/usr/lib/nextbox-compose/docker-images.tar

Possibly someone knows the per nextcloud & nextbox version usual allocation of the nextbox datasystem.

With the help in the forum I identified so far the “root cause”, cleaned the system and oh, it updated. Within one step to the latest version !

But with good reason, nextcloud does’nt allow for jumps in major releases.

May I now know what is the MINIMUM sequence of updates I need to follow in order for my system to successfully upgrade STEP by STEP from 21.0.0.18 to 23.0.0.8?

As an example, I’m thinking of something like this:

linux pkg nextcloud 1.0.10-1
nextcloud 21.0.0
nextcloud 21.0.9 (-)
nextcloud 22.0.0 (-)

linux pkg nextcloud 1.0.27-1
sufficient() compatibility with
nextcloud 22.0.0 (
-)
nextcloud 22.2.0 (
-)
nextcloud 23.0.0 (
-*)

(*) Sufficient compatibility means: the nextcloud package on operating system & app level supports the required DB updates to increase the nextcloud major versions.

(-) Those nextcloud versions which can be effectively controlled using the mentioned nextbox package version.

Candidates from former posts:

With the help in the forum I identified so far the “root cause”, cleaned the system and oh, it updated. Within one step to the latest version !

But with good reason, nextcloud does’nt allow for jumps in major releases.

May I now know what is the MINIMUM sequence of updates I need to follow in order for my system to successfully upgrade STEP by STEP from 21.0.0.18 to 23.0.0.8?

As an example, I’m thinking of something like this:

linux pkg nextcloud 1.0.10-1
nextcloud 21.0.0
nextcloud 21.0.9 (-)
nextcloud 22.0.0 (-)

linux pkg nextcloud 1.0.27-1
sufficient() compatibility with
nextcloud 22.0.0 (
-)
nextcloud 22.2.0 (
-)
nextcloud 23.0.0 (
-*)

(*) Sufficient compatibility means: the nextcloud package on operating system & app level supports the required DB updates to increase the nextcloud major versions.

(-) Those nextcloud versions which can be effectively controlled using the mentioned nextbox package version.

Candidates from former posts: