Closed ff0255 closed 4 months ago
I have the same issue with my RaspberryPI 4b+
I wanted to upgrade my OS from bullseye to bookworm via sudo ncp-dist-upgrade on my Raspberry PI 4B+. However, the script terminates with the following error:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libc-dev-bin : Depends: libc6 (< 2.32) but 2.36-9+rpt2+deb12u7 is to be installed
libc6-dev : Depends: libc6 (= 2.31-13+rpt2+rpi1+deb11u10) but 2.36-9+rpt2+deb12u7 is to be installed
I tried upgrading the dependencies with the following commands (listed below), but after that, i could not execute sudo ncp-dist-ugprade anymore, since it was already upgraded to Bookworm. But after switching the SD from my Raspberry PI 4 to a Raspberry PI 5, i got "No bootable partitions" so I believe the dist-upgrade was not finished?
sudo apt-get update
sudo apt-get upgrade libc-dev-bin libc6-dev
System information This is the log after running ncp-dist-upgrade the first time <--! Paste this in GitHub report -->
@pairatec I had the exact same problem which i mentioned here: https://github.com/nextcloud/nextcloudpi/issues/1913
I reinstalled Raspberry pi os bookworm and installed via curl-insraller. Note: Before running the installer run sudo apt install systemd-resolved and reboot.
After that, simply restore your backup.
Yo run NC25.x? I doubt this will work with bookworm. There is at least an issue with PHP i guess
Same problem here.
Now a cannot run sudo ncp-distro-upgrade. But NCP tells me to do so. I tried now
sudo apt autoclean sudo apt clean sudo apt update sudo apt upgrade
Does someone have a easy solution? I am not eager to reinstall everything. But maybe everything is ok. How to find out, if something is wrong?
Thanks a lot already!
@theCalcaholic you think it is possible to check the NC Version before upgrading to bookworm? I know it ist not related to the Problems people have here, but upgrading to bookworm while running NC25.x will most likely require a lot of work to get it running because of PHP version mismatch.
@FadeFx The upgrade script actually checks the PHP version already (see https://github.com/nextcloud/nextcloudpi/blob/master/bin%2Fncp-dist-upgrade.d%2Fdebian-11.sh#L31)
@ff0255 @pairatec You can try following the instructions in #1913 - it should complete the dist-upgrade process.
However @pairatec moving your existing RPi 4 installation to a RPi 5 is unsupported and won't work with or without the dist-upgrade.
Regarding the original issue, the best I can probably do is to add an apt-get autoclean
before the dist-upgrade. Let's hope that this fixes the issue - however, I can't really test and verify this.
I ran also into this issue today:
Calculating upgrade...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libc-dev-bin : Depends: libc6 (< 2.32) but 2.36-9+rpt2+deb12u7 is to be installed
libc6-dev : Depends: libc6 (= 2.31-13+rpt2+rpi1+deb11u10) but 2.36-9+rpt2+deb12u7 is to be installed
E: Broken packages
Maybe this issue should be re-opened. I checked open issues before doing the ncp-dist-upgrade
, because I did not want to run into trouble. But I missed this closed issue.
I tried to follow the instructions at the top issue #1913 to finalize the upgrade. I forgot to put Nextcloud into maintenance mode before trying the fix. Maybe and instruction to enable maintenance mode should be added to #1913.
Later I tried to set the NextcloudPi to maintenance mode, but this resulted now in this error:
PHP Warning: PHP Startup: Unable to load dynamic library 'redis.so' (tried: /usr/lib/php/20210902/redis.so (/usr/lib/php/20210902/redis.so: undefined symbol: igbinary_serialize), /usr/lib/php/20210902/redis.so.so (/usr/lib/php/20210902/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
An unhandled exception has been thrown:
OCP\HintException: [0]: Memcache OC\Memcache\Redis not available for local cache (Is the matching PHP module installed and enabled?)
Now back to what I did to fix the system:
My /etc/apt/sources.list.d/raspi.list
file after running into the issue looked like:
deb http://archive.raspberrypi.org/debian/ bookworm main
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.org/debian/ bookworm main
So this looked like this file was correctly upgraded.
Also the /etc/apt/sources.list.d/php.list
file looked fine after running into the issue:
deb https://packages.sury.org/php/ bookworm main
Next I did point 2 in the instructions of #1913:
sudo apt-get update && sudo apt-get upgrade -y --without-new-pkgs
I saw an error, but do not have the details unfortunately. It had to do with an unsupported compression type. It was printed in an root shell. When I did Ctrl-D from the root shell, the terminal was refreshed. And I could not copy the error message any more. I tried to run this again:
deb https://packages.sury.org/php/ bookworm main
But I got:
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian bookworm-updates InRelease
Hit:3 http://security.debian.org/debian-security bookworm-security InRelease
Hit:4 http://archive.raspberrypi.org/debian bookworm InRelease
Hit:5 https://packages.sury.org/php bookworm InRelease
Reading package lists... Done
E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 1211494 (unattended-upgr)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
Top shows that unattended-upgr
is using 100% CPU time at the moment. So, I guess I should leave this run until it finishes.
I've no idea how long this process will take. I will provide more details in this issue later.
I found the error message about the compression in /var/log/apt/term.log
:
dpkg-deb: error: archive '/tmp/apt-dpkg-install-nA9zZV/4-dphys-swapfile_20100506-7.1+rpt3_all.deb' uses unknown compression for member 'control.tar.zst', giving up^M
dpkg: error processing archive /tmp/apt-dpkg-install-nA9zZV/4-dphys-swapfile_20100506-7.1+rpt3_all.deb (--unpack):^M
dpkg-deb --control subprocess returned error exit status 2^M
Preparing to unpack .../5-php8.1-igbinary_3.2.15-1+0~20231202.49+debian12~1.gbpe9ffe8_arm64.deb ...^M
Unpacking php8.1-igbinary (3.2.15-1+0~20231202.49+debian12~1.gbpe9ffe8) over (3.2.15-1+0~20231202.49+debian11~1.gbpe9ffe8) ...^M
Preparing to unpack .../6-tasksel-data_3.73_all.deb ...^M
Unpacking tasksel-data (3.73) over (3.68+deb11u1) ...^M
Preparing to unpack .../7-tasksel_3.73_all.deb ...^M
Unpacking tasksel (3.73) over (3.68+deb11u1) ...^M
Preparing to unpack .../8-libpam-runtime_1.5.2-6+rpt2+deb12u1_all.deb ...^M
Unpacking libpam-runtime (1.5.2-6+rpt2+deb12u1) over (1.4.0-9+deb11u1+rpt2) ...^M
Errors were encountered while processing:^M
/tmp/apt-dpkg-install-nA9zZV/4-dphys-swapfile_20100506-7.1+rpt3_all.deb^M
Further update:
I killed the "hanging" unattended-upgr
process with kill -9
I installed zst: sudo apt install zst
.
And started this again:
sudo apt-get update && sudo apt-get upgrade -y --without-new-pkgs
The upgrade is running now...
I further followed the instructions of #1913 and NextcloudPi seems to be working again.
I had afterwards the problem that despite nextcloud had been working normally, ncp panel was reporting that nextcloud and HCP service was down. Also the Cron jobs were not running. This was caused by PHP 8.3 being installed, which I removed and rebooted the server. Then everything was up and running again.
Thank you, after carefully following https://github.com/nextcloud/nextcloudpi/issues/1913 dist upgrade compleded. The only problem I had - it was exiting interactive mode (found somewhere Ctrl+D)
Hello. Thank you for all the work on this project. Today I tried ncp-dist-upgrade to bookworm on Rock64 board but it failed. It was installed from ncp-image for Rock64 several years ago, then dist-upgraded. Last part of upgrade output:
I tried manual upgrade (https://github.com/nextcloud/nextcloudpi/issues/1913), but after
apt-get upgrade -y dpkg
got the same error. Andapt --fix-broken install
did not help. After that I manually changed back to bullseye everything in sources.list How to fix those packages?System information
Rock64 board booting from SSD (Kingston SKC400S37/128G) on usb3 port.
NextcloudPi diagnostics
``` NextcloudPi version v1.54.2 NextcloudPi image NextCloudPi_09-02-20 OS Armbian 23.8.1 bullseye \l . 6.1.63-current-rockchip64 (aarch64) automount yes USB devices sda datadir /var/www/nextcloud/data data in SD yes data filesystem ext2/ext3 data disk usage 22G/118G rootfs usage 22G/118G swapfile /var/swap dbdir /var/lib/mysql Nextcloud check ok Nextcloud version 25.0.13.2 HTTPD service up PHP service up MariaDB service up Redis service up HPB service down Postfix service up Internet check ok Public IPv4 ***REMOVED SENSITIVE VALUE*** Public IPv6 ***REMOVED SENSITIVE VALUE*** Port 80 open Port 443 open IP ***REMOVED SENSITIVE VALUE*** Gateway ***REMOVED SENSITIVE VALUE*** Interface eth0 Certificates ***REMOVED SENSITIVE VALUE*** NAT loopback no Uptime 23:57 ```Nextcloud configuration
``` { "system": { "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": { "0": "localhost", "5": "nextcloudpi.local", "7": "nextcloudpi", "8": "nextcloudpi.lan", "11": "***:***:***:***::***", "1": "***.***.***.***", "20": "cloud.balabol.im", "14": "nextcloudpi", "3": "nextcloudpi" }, "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "25.0.13.2", "overwrite.cli.url": "https:\/\/nextcloudpi\/", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "mysql.utf8mb4": true, "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "instanceid": "***REMOVED SENSITIVE VALUE***", "memcache.local": "\\OC\\Memcache\\Redis", "memcache.locking": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 0, "timeout": 0, "password": "***REMOVED SENSITIVE VALUE***" }, "tempdirectory": "\/var\/www\/nextcloud\/data\/tmp", "mail_smtpmode": "sendmail", "mail_smtpauthtype": "LOGIN", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "preview_max_x": "2048", "preview_max_y": "2048", "jpeg_quality": "60", "overwriteprotocol": "https", "loglevel": "2", "log_type": "file", "maintenance": false, "theme": "", "defaultapp": "files", "trusted_proxies": "***REMOVED SENSITIVE VALUE***", "logfile": "\/var\/www\/nextcloud\/data\/nextcloud.log", "data-fingerprint": "c85801bd791136f5483a387cf0fb8170" } } ```HTTPd logs
``` [Fri May 10 01:44:59.170773 2024] [http2:warn] [pid 1976655:tid 281472434930048] [client ***.***.***.***:58186] h2_stream(1976655-49-65,CLEANUP): started=1, scheduled=1, ready=0, out_buffer=0 [Fri May 10 01:45:59.171148 2024] [http2:warn] [pid 1976655:tid 281472434930048] [client ***.***.***.***:58186] h2_stream(1976655-49-65,CLEANUP): started=1, scheduled=1, ready=0, out_buffer=0 [Fri May 10 01:46:59.171440 2024] [http2:warn] [pid 1976655:tid 281472434930048] [client ***.***.***.***:58186] h2_stream(1976655-49-65,CLEANUP): started=1, scheduled=1, ready=0, out_buffer=0 [Sat May 11 00:00:10.323679 2024] [mpm_event:notice] [pid 1976652:tid 281472981610512] AH00493: SIGUSR1 received. Doing graceful restart [Sat May 11 00:00:10.389306 2024] [ssl:error] [pid 1976652:tid 281472981610512] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 57DCC66C657B05361CE9DC6F0ED019FFC9A8D6FF / notbefore: Sep 2 16:08:02 2020 GMT / notafter: Aug 31 16:08:02 2030 GMT] [Sat May 11 00:00:10.389648 2024] [ssl:error] [pid 1976652:tid 281472981610512] AH02604: Unable to configure certificate localhost:4443:0 for stapling [Sat May 11 00:00:10.401858 2024] [mpm_event:notice] [pid 1976652:tid 281472981610512] AH00489: Apache/2.4.59 (Debian) OpenSSL/1.1.1w configured -- resuming normal operations [Sat May 11 00:00:10.401938 2024] [core:notice] [pid 1976652:tid 281472981610512] AH00094: Command line: '/usr/sbin/apache2' [Sat May 11 03:47:48.604390 2024] [mpm_event:notice] [pid 1976652:tid 281472981610512] AH00492: caught SIGWINCH, shutting down gracefully [Sat May 11 04:05:54.822299 2024] [ssl:error] [pid 789:tid 281473122140176] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 57DCC66C657B05361CE9DC6F0ED019FFC9A8D6FF / notbefore: Sep 2 16:08:02 2020 GMT / notafter: Aug 31 16:08:02 2030 GMT] [Sat May 11 04:05:54.822697 2024] [ssl:error] [pid 789:tid 281473122140176] AH02604: Unable to configure certificate localhost:4443:0 for stapling [Sat May 11 04:05:55.034304 2024] [ssl:error] [pid 876:tid 281473122140176] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 57DCC66C657B05361CE9DC6F0ED019FFC9A8D6FF / notbefore: Sep 2 16:08:02 2020 GMT / notafter: Aug 31 16:08:02 2030 GMT] [Sat May 11 04:05:55.034470 2024] [ssl:error] [pid 876:tid 281473122140176] AH02604: Unable to configure certificate localhost:4443:0 for stapling [Sat May 11 04:05:55.106867 2024] [mpm_event:notice] [pid 876:tid 281473122140176] AH00489: Apache/2.4.59 (Debian) OpenSSL/1.1.1w configured -- resuming normal operations [Sat May 11 04:05:55.107011 2024] [core:notice] [pid 876:tid 281473122140176] AH00094: Command line: '/usr/sbin/apache2' [Sun May 12 00:00:13.787726 2024] [mpm_event:notice] [pid 876:tid 281473122140176] AH00493: SIGUSR1 received. Doing graceful restart [Sun May 12 00:00:13.853669 2024] [ssl:error] [pid 876:tid 281473122140176] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 57DCC66C657B05361CE9DC6F0ED019FFC9A8D6FF / notbefore: Sep 2 16:08:02 2020 GMT / notafter: Aug 31 16:08:02 2030 GMT] [Sun May 12 00:00:13.853758 2024] [ssl:error] [pid 876:tid 281473122140176] AH02604: Unable to configure certificate localhost:4443:0 for stapling [Sun May 12 00:00:13.864636 2024] [mpm_event:notice] [pid 876:tid 281473122140176] AH00489: Apache/2.4.59 (Debian) OpenSSL/1.1.1w configured -- resuming normal operations [Sun May 12 00:00:13.864703 2024] [core:notice] [pid 876:tid 281473122140176] AH00094: Command line: '/usr/sbin/apache2' ```Database logs
``` ```Nextcloud logs
``` {"reqId":"ZYVB4oMaMFMTui2lt9xh","level":1,"time":"2024-05-11T01:20:54+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Add background job to cleanup login flow v2 tokens","userAgent":"--","version":"24.0.12.1","data":{"app":"updater"}} {"reqId":"ZYVB4oMaMFMTui2lt9xh","level":1,"time":"2024-05-11T01:20:54+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Remove potentially over exposing share links","userAgent":"--","version":"24.0.12.1","data":{"app":"updater"}} {"reqId":"ZYVB4oMaMFMTui2lt9xh","level":1,"time":"2024-05-11T01:20:54+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairInfoEvent: Repair info: No need to remove link shares.","userAgent":"--","version":"24.0.12.1","data":{"app":"updater"}} {"reqId":"ZYVB4oMaMFMTui2lt9xh","level":1,"time":"2024-05-11T01:20:54+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Clear access cache of projects","userAgent":"--","version":"24.0.12.1","data":{"app":"updater"}} {"reqId":"ZYVB4oMaMFMTui2lt9xh","level":1,"time":"2024-05-11T01:20:54+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Reset generated avatar flag","userAgent":"--","version":"24.0.12.1","data":{"app":"updater"}} {"reqId":"ZYVB4oMaMFMTui2lt9xh","level":1,"time":"2024-05-11T01:20:54+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Keep legacy encryption enabled","userAgent":"--","version":"24.0.12.1","data":{"app":"updater"}} {"reqId":"ZYVB4oMaMFMTui2lt9xh","level":1,"time":"2024-05-11T01:20:54+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Check encryption key format","userAgent":"--","version":"24.0.12.1","data":{"app":"updater"}} {"reqId":"ZYVB4oMaMFMTui2lt9xh","level":1,"time":"2024-05-11T01:20:54+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Remove old dashboard app config data","userAgent":"--","version":"24.0.12.1","data":{"app":"updater"}} {"reqId":"ZYVB4oMaMFMTui2lt9xh","level":1,"time":"2024-05-11T01:20:54+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Add job to cleanup the bruteforce entries","userAgent":"--","version":"24.0.12.1","data":{"app":"updater"}} {"reqId":"ZYVB4oMaMFMTui2lt9xh","level":1,"time":"2024-05-11T01:20:54+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Queue a one-time job to check for user uploaded certificates","userAgent":"--","version":"24.0.12.1","data":{"app":"updater"}} {"reqId":"ZYVB4oMaMFMTui2lt9xh","level":1,"time":"2024-05-11T01:20:54+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Repair DAV shares","userAgent":"--","version":"24.0.12.1","data":{"app":"updater"}} {"reqId":"ZYVB4oMaMFMTui2lt9xh","level":1,"time":"2024-05-11T01:20:54+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Add background job to set the lookup server share state for users","userAgent":"--","version":"24.0.12.1","data":{"app":"updater"}} {"reqId":"ZYVB4oMaMFMTui2lt9xh","level":1,"time":"2024-05-11T01:20:54+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Add token cleanup job","userAgent":"--","version":"24.0.12.1","data":{"app":"updater"}} {"reqId":"ZYVB4oMaMFMTui2lt9xh","level":1,"time":"2024-05-11T01:20:54+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Clean up abandoned apps","userAgent":"--","version":"24.0.12.1","data":{"app":"updater"}} {"reqId":"ZYVB4oMaMFMTui2lt9xh","level":1,"time":"2024-05-11T01:20:54+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Add possibly missing system config","userAgent":"--","version":"24.0.12.1","data":{"app":"updater"}} {"reqId":"ZYVB4oMaMFMTui2lt9xh","level":1,"time":"2024-05-11T01:20:54+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::startCheckCodeIntegrity: Starting code integrity check...","userAgent":"--","version":"24.0.12.1","data":{"app":"updater"}} {"reqId":"ZYVB4oMaMFMTui2lt9xh","level":1,"time":"2024-05-11T01:21:11+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::finishedCheckCodeIntegrity: Finished code integrity check","userAgent":"--","version":"24.0.12.1","data":{"app":"updater"}} {"reqId":"ZYVB4oMaMFMTui2lt9xh","level":1,"time":"2024-05-11T01:21:11+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::updateEnd: Update successful","userAgent":"--","version":"25.0.13.2","data":{"app":"updater"}} {"reqId":"ZYVB4oMaMFMTui2lt9xh","level":1,"time":"2024-05-11T01:21:11+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::maintenanceDisabled: Turned off maintenance mode","userAgent":"--","version":"25.0.13.2","data":{"app":"updater"}} {"reqId":"ZYVB4oMaMFMTui2lt9xh","level":1,"time":"2024-05-11T01:21:11+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::resetLogLevel: Reset log level to Warning(2)","userAgent":"--","version":"25.0.13.2","data":{"app":"updater"}} ```