Comments (31)
@nposnie If you ran
sudo ncp-dist-upgrade
it would just tell you that you are not on a debian version that can be upgraded (you basically completed the upgrade manually).Can you try if the following commands remove the login message?
sudo rm -f /etc/update-motd.d/30-ncp-dist-upgrade sudo rm -f /usr/local/etc/ncp-recommended.cfgif yes, I'll adjust the guide above
sudo rm -f /usr/local/etc/ncp-recommended.cfg
remove the message for me.
from nextcloudpi.
sudo rm -f /usr/local/etc/ncp-recommended.cfg
Excellent! Message is gone! Thanks a lot for your quick help!
from nextcloudpi.
Thanks for the guide. I successfully completed step 1. When i try running sudo apt-get update && apt-get upgrade -y --without-new-pkgs
from step two I get the following error message:
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
Any suggestions? Thanks a lot!
from nextcloudpi.
Thanks for the guide. I successfully completed step 1. When i try running
sudo apt-get update && apt-get upgrade -y --without-new-pkgs
from step two I get the following error message:E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
Any suggestions? Thanks a lot!
Problem solved... I had to go into sudo -s mode and it worked... Nextcloud is back... However, I still get the following info, when I login to the raspberry pi:
Update to bookworm available. Type 'sudo ncp-dist-upgrade' to upgrade
Would running this command again break it again? Can I safely run the ncp updates?
Thanks for the great work!
from nextcloudpi.
@nposnie Thank you for the feedback, I fixed the commands without sudo.
Can you give me the output of the following command? That should help me understand why you're still seeing the message on login:
ls -l /etc/update-motd.d/
You don't need to worry about it, though. The message won't break anything
from nextcloudpi.
Hi @theCalcaholic,
thanks for getting back on this! This is the output you asked for:
-rwxr-xr-x 1 root root 48 Oct 4 2022 10logo
-rwxr-xr-x 1 root root 45 Oct 4 2022 20updates
-rwxr-xr-x 1 root root 167 May 3 09:33 30ncp-dist-upgrade
Thanks!
from nextcloudpi.
You don't need to worry about it, though. The message won't break anything
Sorry for the confusion... The message per se is not worrying. I was wondering wether I could/should run the sudo ncp-dist-upgrade
again without breaking it again?
from nextcloudpi.
@nposnie If you ran sudo ncp-dist-upgrade
it would just tell you that you are not on a debian version that can be upgraded (you basically completed the upgrade manually).
Can you try if the following commands remove the login message?
sudo rm -f /etc/update-motd.d/30-ncp-dist-upgrade
sudo rm -f /usr/local/etc/ncp-recommended.cfg
if yes, I'll adjust the guide above
from nextcloudpi.
@theCalcaholic is it now safe to use dist-upgrade of nextcloudpi on raspberry pi os (bullseye)? Or will you integrate additional fixes for 1.54.x?
from nextcloudpi.
I am running a Pi4 with ncp installed to an SSD. I just updated from v1.53.0 to v1.54.0 and it seems i ran into the same issues as https://github.com/nextcloud/nextcloudpi/issues/1921. Like @sebeweiss, I ran sudo apt-get install zstd
in an effort to fix the "4-dphys-swapfile_20100506-7.1+rpt3_all.deb" error message. Subsequently, like him, I ran all the commands in the above step-by-step guide, sans step 3. After rebooting the raspberry and navigating to the NC portal, I still am looking at the message
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
ncp system-info shows mainly positive messages, although these two don't look too good:
‣ You are using an outdated distro release. You should upgrade to latest Debian/Raspbian
HPB service | down
some more info from said page, since it complains about the distro to be outdated:
NextcloudPi version | v1.54.0
NextcloudPi image | NextCloudPi_RaspberryPi_v1.51.2.img
OS | Debian GNU/Linux 11. 6.1.21-v8+ (aarch64)
As you can see below, the very first command from step two in your howto still results in an issue regarding the swap file for some reason:
ncpadmin@nextcloudpi:~ $ sudo apt-get update && sudo apt-get upgrade -y --witho ut-new-pkgs
[sudo] password for ncptijmen:
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://archive.raspberrypi.org/debian bookworm InRelease
Hit:3 https://packages.sury.org/php bookworm InRelease
Hit:4 http://deb.debian.org/debian bullseye InRelease
Hit:5 http://deb.debian.org/debian bullseye-updates InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
alsa-utils console-setup console-setup-linux keyboard-configuration
kms++-utils libcamera-apps-lite libkms++0 libnm0 network-manager
php8.1-bcmath php8.1-bz2 php8.1-cli php8.1-common php8.1-curl php8.1-fpm
php8.1-gd php8.1-gmp php8.1-intl php8.1-ldap php8.1-mbstring php8.1-mysql
php8.1-opcache php8.1-readline php8.1-redis php8.1-xml php8.1-zip
python3-kms++ python3-libcamera python3-picamera2 python3-pidng
python3-simplejpeg python3-spidev raspi-utils
The following packages will be upgraded:
dphys-swapfile
1 upgraded, 0 newly installed, 0 to remove and 33 not upgraded.
Need to get 0 B/22.6 kB of archives.
After this operation, 2,048 B of additional disk space will be used.
apt-listchanges: Reading changelogs...
dpkg-deb: error: archive '/var/cache/apt/archives/dphys-swapfile_20100506-7.1+rp t3_all.deb' uses unknown compression for member 'control.tar.zst', giving up
Traceback (most recent call last):
File "/usr/share/apt-listchanges/DebianFiles.py", line 124, in readdeb
output = subprocess.check_output(command)
File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['dpkg-deb', '-f', '/var/cache/apt/archi ves/dphys-swapfile_20100506-7.1+rpt3_all.deb', 'Package', 'Source', 'Version', ' Architecture', 'Status']' returned non-zero exit status 2.The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/bin/apt-listchanges", line 323, in
main(config)
File "/usr/bin/apt-listchanges", line 104, in main
pkg = DebianFiles.Package(deb)
File "/usr/share/apt-listchanges/DebianFiles.py", line 358, in init
parser.readdeb(self.path)
File "/usr/share/apt-listchanges/DebianFiles.py", line 127, in readdeb
raise RuntimeError(_("Error processing '%(what)s': %(errmsg)s") %
RuntimeError: Error processing '/var/cache/apt/archives/dphys-swapfile_20100506- 7.1+rpt3_all.deb': Command '['dpkg-deb', '-f', '/var/cache/apt/archives/dphys-sw apfile_20100506-7.1+rpt3_all.deb', 'Package', 'Source', 'Version', 'Architecture ', 'Status']' returned non-zero exit status 2.
dpkg-deb: error: archive '/var/cache/apt/archives/dphys-swapfile_20100506-7.1+rp t3_all.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive /var/cache/apt/archives/dphys-swapfile_20100506-7 .1+rpt3_all.deb (--unpack):
dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/dphys-swapfile_20100506-7.1+rpt3_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
If you need more info from me, let me know
from nextcloudpi.
@sjibbert That should already be fixed. Can you run ncp-update
again (should show a succesful update to v1.54.2)?
@Schniefel Yes, every known issue should be fixed. Just make sure you're on v1.54.2
from nextcloudpi.
I just did, unfortunately, this results in errors, causing the update (to 1.54.1, not 1.54.2!) to be cancelled:
ncpadmin@nextcloudpi:~ $ sudo ncp-update
Downloading updates
Performing updates
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Update root login prevention method...
done.
Fixing trusted proxies list...
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
done.
Updating PHP package signing key...
Get:1 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:2 http://archive.raspberrypi.org/debian bookworm InRelease [23.6 kB]
Hit:3 https://packages.sury.org/php bookworm InRelease
Get:4 http://archive.raspberrypi.org/debian bookworm/main arm64 Packages [410 kB]
Get:5 http://archive.raspberrypi.org/debian bookworm/main armhf Packages [419 kB]
Hit:6 http://deb.debian.org/debian bullseye InRelease
Hit:7 http://deb.debian.org/debian bullseye-updates InRelease
Fetched 901 kB in 6s (152 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
gnupg2 is already the newest version (2.2.27-2+deb11u2).
0 upgraded, 0 newly installed, 0 to remove and 34 not upgraded.
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.cZDjjEtrsu/gpg.1.sh --fetch-keys https://packages.sury.org/php/apt.gpg
gpg: requesting key from 'https://packages.sury.org/php/apt.gpg'
gpg: key XXXXXXXXXXXXXXXXX: "DEB.SURY.ORG Automatic Signing Key [email protected]" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
done.
Installing dependencies...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
tmux is already the newest version (3.1c-1+deb11u1).
0 upgraded, 0 newly installed, 0 to remove and 34 not upgraded.
done.
Updating obsolete theming URL
Cannot load Zend OPcache - it was already loaded
done.
NextCloudPi updated to version v1.54.0
Reenable erroneously disabled package sources
done
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
Hit:3 http://security.debian.org/debian-security bullseye-security InRelease
Hit:4 https://packages.sury.org/php bookworm InRelease
Hit:5 http://archive.raspberrypi.org/debian bookworm InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
alsa-utils console-setup console-setup-linux keyboard-configuration kms++-utils libcamera-apps-lite libkms++0 libnm0 network-manager php8.1-bcmath php8.1-bz2 php8.1-cli php8.1-common php8.1-curl php8.1-fpm php8.1-gd php8.1-gmp php8.1-intl php8.1-ldap php8.1-mbstring
php8.1-mysql php8.1-opcache php8.1-readline php8.1-redis php8.1-xml php8.1-zip python3-kms++ python3-libcamera python3-picamera2 python3-pidng python3-simplejpeg python3-spidev raspi-utils
The following packages will be upgraded:
dphys-swapfile
1 upgraded, 0 newly installed, 0 to remove and 33 not upgraded.
Need to get 0 B/22.6 kB of archives.
After this operation, 2,048 B of additional disk space will be used.
apt-listchanges: Reading changelogs...
dpkg-deb: error: archive '/var/cache/apt/archives/dphys-swapfile_20100506-7.1+rpt3_all.deb' uses unknown compression for member 'control.tar.zst', giving up
Traceback (most recent call last):
File "/usr/share/apt-listchanges/DebianFiles.py", line 124, in readdeb
output = subprocess.check_output(command)
File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['dpkg-deb', '-f', '/var/cache/apt/archives/dphys-swapfile_20100506-7.1+rpt3_all.deb', 'Package', 'Source', 'Version', 'Architecture', 'Status']' returned non-zero exit status 2.The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/bin/apt-listchanges", line 323, in
main(config)
File "/usr/bin/apt-listchanges", line 104, in main
pkg = DebianFiles.Package(deb)
File "/usr/share/apt-listchanges/DebianFiles.py", line 358, in init
parser.readdeb(self.path)
File "/usr/share/apt-listchanges/DebianFiles.py", line 127, in readdeb
raise RuntimeError(_("Error processing '%(what)s': %(errmsg)s") %
RuntimeError: Error processing '/var/cache/apt/archives/dphys-swapfile_20100506-7.1+rpt3_all.deb': Command '['dpkg-deb', '-f', '/var/cache/apt/archives/dphys-swapfile_20100506-7.1+rpt3_all.deb', 'Package', 'Source', 'Version', 'Architecture', 'Status']' returned non-zero exit status 2.
dpkg-deb: error: archive '/var/cache/apt/archives/dphys-swapfile_20100506-7.1+rpt3_all.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive /var/cache/apt/archives/dphys-swapfile_20100506-7.1+rpt3_all.deb (--unpack):
dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/dphys-swapfile_20100506-7.1+rpt3_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Error while applying update 1.54.1. Exiting...
from nextcloudpi.
@sjibbert Oh, thank you, that makes sense. Can you try running ncp-update
again? I just pushed a small fix.
from nextcloudpi.
I just ran ncp-update again and I seem to have succesfully updated. I won't copy all output, but the operation ended with the following:
NextCloudPi updated to version v1.54.0
Reenable erroneously disabled package sources
done
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://archive.raspberrypi.org/debian bookworm InRelease
Hit:5 https://packages.sury.org/php bookworm InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
zstd is already the newest version (1.4.8+dfsg-2.1).
0 upgraded, 0 newly installed, 0 to remove and 34 not upgraded.
NextCloudPi updated to version v1.54.1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
zstd is already the newest version (1.4.8+dfsg-2.1).
0 upgraded, 0 newly installed, 0 to remove and 34 not upgraded.
Cannot load Zend OPcache - it was already loaded
Update to bookworm available. Type 'sudo ncp-dist-upgrade' to upgrade
Cannot load Zend OPcache - it was already loadedBroadcast message from ncpadmin@nextcloudpi (pts/0) (Thu May 9 12:36:56 2024)
Update to bookworm available. Type 'sudo ncp-dist-upgrade' to upgrade
NextCloudPi updated to version v1.54.2
i did not do sudo ncp-dist-upgrade
yet. I did however reboot the system and tried to access the portal. yet again yielding the message
Internal Server Error etc etc etc
NC admin dashboard system info still says:
HPB service | down
I suppose I should do the dist-upgrade?
from nextcloudpi.
@sjibbert Since you ran ncp-dist-upgrade already, you will most likely need to follow the manual instructions above instead of rerunning the script (no harm in trying though).
from nextcloudpi.
package sources under step 1 already/still contained bookworm instead of bullseye. no adjustment neccecary
sudo apt-get update && sudo apt-get upgrade -y --without-new-pkgs
yields:
ncpadmin@nextcloudpi:~ $ sudo apt-get update && sudo apt-get upgrade -y --witho ut-new-pkgs
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
Hit:3 https://packages.sury.org/php bookworm InRelease
Get:4 http://archive.raspberrypi.org/debian bookworm InRelease [23.6 kB]
Get:5 http://archive.raspberrypi.org/debian bookworm/main arm64 Packages [410 kB ]
Get:6 http://archive.raspberrypi.org/debian bookworm/main armhf Packages [419 kB ]
Hit:7 http://security.debian.org/debian-security bullseye-security InRelease
Fetched 852 kB in 6s (152 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
alsa-utils console-setup console-setup-linux keyboard-configuration
kms++-utils libcamera-apps-lite libkms++0 libnm0 network-manager
php8.1-bcmath php8.1-bz2 php8.1-cli php8.1-common php8.1-curl php8.1-fpm
php8.1-gd php8.1-gmp php8.1-intl php8.1-ldap php8.1-mbstring php8.1-mysql
php8.1-opcache php8.1-readline php8.1-redis php8.1-xml php8.1-zip
python3-kms++ python3-libcamera python3-picamera2 python3-pidng
python3-simplejpeg python3-spidev raspi-utils
The following packages will be upgraded:
dphys-swapfile
1 upgraded, 0 newly installed, 0 to remove and 33 not upgraded.
Need to get 0 B/22.6 kB of archives.
After this operation, 2,048 B of additional disk space will be used.
apt-listchanges: Reading changelogs...
dpkg-deb: error: archive '/var/cache/apt/archives/dphys-swapfile_20100506-7.1+rp t3_all.deb' uses unknown compression for member 'control.tar.zst', giving up
Traceback (most recent call last):
File "/usr/share/apt-listchanges/DebianFiles.py", line 124, in readdeb
output = subprocess.check_output(command)
File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['dpkg-deb', '-f', '/var/cache/apt/archi ves/dphys-swapfile_20100506-7.1+rpt3_all.deb', 'Package', 'Source', 'Version', ' Architecture', 'Status']' returned non-zero exit status 2.The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/bin/apt-listchanges", line 323, in
main(config)
File "/usr/bin/apt-listchanges", line 104, in main
pkg = DebianFiles.Package(deb)
File "/usr/share/apt-listchanges/DebianFiles.py", line 358, in init
parser.readdeb(self.path)
File "/usr/share/apt-listchanges/DebianFiles.py", line 127, in readdeb
raise RuntimeError(_("Error processing '%(what)s': %(errmsg)s") %
RuntimeError: Error processing '/var/cache/apt/archives/dphys-swapfile_20100506- 7.1+rpt3_all.deb': Command '['dpkg-deb', '-f', '/var/cache/apt/archives/dphys-sw apfile_20100506-7.1+rpt3_all.deb', 'Package', 'Source', 'Version', 'Architecture ', 'Status']' returned non-zero exit status 2.
dpkg-deb: error: archive '/var/cache/apt/archives/dphys-swapfile_20100506-7.1+rp t3_all.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive /var/cache/apt/archives/dphys-swapfile_20100506-7 .1+rpt3_all.deb (--unpack):
dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/dphys-swapfile_20100506-7.1+rpt3_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
from nextcloudpi.
@sjibbert But you have zstd installed, right? Can you check if apt-get install zstd
changes anything?
from nextcloudpi.
yes, I already had:
zstd is already the newest version (1.4.8+dfsg-2.1).
0 upgraded, 0 newly installed, 0 to remove and 34 not upgraded.
from nextcloudpi.
@sjibbert I see, this seems to be linked to an old version of dpkg. Can you run apt-get upgrade dpkg
and then try the dist-upgrade again?
from nextcloudpi.
this doesn't look promising:
ncpadmin@nextcloudpi:~ $ sudo apt-get upgrade dpkg
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
dpkg is already the newest version (1.20.13).
Calculating upgrade... Done
The following packages have been kept back:
alsa-utils console-setup console-setup-linux keyboard-configuration kms++-utils libcamera-apps-lite libkms++0 libnm0 network-manager php8.1-bcmath php8.1-bz2 php8.1-cli php8.1-common php8.1-curl php8.1-fpm php8.1-gd php8.1-gmp php8.1-intl php8.1-ldap php8.1-mbstring
php8.1-mysql php8.1-opcache php8.1-readline php8.1-redis php8.1-xml php8.1-zip python3-kms++ python3-libcamera python3-picamera2 python3-pidng python3-simplejpeg python3-spidev raspi-utils
The following packages will be upgraded:
dphys-swapfile
1 upgraded, 0 newly installed, 0 to remove and 33 not upgraded.
Need to get 0 B/22.6 kB of archives.
After this operation, 2,048 B of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg-deb: error: archive '/var/cache/apt/archives/dphys-swapfile_20100506-7.1+rpt3_all.deb' uses unknown compression for member 'control.tar.zst', giving up
Traceback (most recent call last):
File "/usr/share/apt-listchanges/DebianFiles.py", line 124, in readdeb
output = subprocess.check_output(command)
File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['dpkg-deb', '-f', '/var/cache/apt/archives/dphys-swapfile_20100506-7.1+rpt3_all.deb', 'Package', 'Source', 'Version', 'Architecture', 'Status']' returned non-zero exit status 2.The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/bin/apt-listchanges", line 323, in
main(config)
File "/usr/bin/apt-listchanges", line 104, in main
pkg = DebianFiles.Package(deb)
File "/usr/share/apt-listchanges/DebianFiles.py", line 358, in init
parser.readdeb(self.path)
File "/usr/share/apt-listchanges/DebianFiles.py", line 127, in readdeb
raise RuntimeError(_("Error processing '%(what)s': %(errmsg)s") %
RuntimeError: Error processing '/var/cache/apt/archives/dphys-swapfile_20100506-7.1+rpt3_all.deb': Command '['dpkg-deb', '-f', '/var/cache/apt/archives/dphys-swapfile_20100506-7.1+rpt3_all.deb', 'Package', 'Source', 'Version', 'Architecture', 'Status']' returned non-zero exit status 2.
dpkg-deb: error: archive '/var/cache/apt/archives/dphys-swapfile_20100506-7.1+rpt3_all.deb' uses unknown compression for member 'control.tar.zst', giving up
dpkg: error processing archive /var/cache/apt/archives/dphys-swapfile_20100506-7.1+rpt3_all.deb (--unpack):
dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/dphys-swapfile_20100506-7.1+rpt3_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
hesitant to hit Y after:
ATTENTION <<<
This is a dangerous process that is only guaranteed to work properly if you
have not made manual changes in the system. Backup the SD card first and
proceed at your own risk.Note that this is not a requirement for NCP to continue working properly.
The current distribution will keep receiving updates for some time.Do you want to continue? [y/N]
I should note I have not been shown that message before..
from nextcloudpi.
What's your dpkg --version
?
from nextcloudpi.
Debian 'dpkg' package management program version 1.20.13 (arm64).
from nextcloudpi.
I see. zstd support was added to dpkg in version 1.21.18.
However, this should be the latest version in the bookworm repositories. I'm wondering, why it doesn't get updated...
Have you checked all files in /etc/apt/sources.list.d/*
and /etc/apt/sources.list
if they are configured for bookworm instead of bullseye?
from nextcloudpi.
I think I see the issue:
ncpadmin@nextcloudpi:~ $ sudo apt-get update && sudo apt-get upgrade -y --witho ut-new-pkgs Hit:1 http://deb.debian.org/debian bullseye InRelease Hit:2 http://deb.debian.org/debian bullseye-updates InRelease Hit:3 https://packages.sury.org/php bookworm InRelease Get:4 http://archive.raspberrypi.org/debian bookworm InRelease [23.6 kB] Get:5 http://archive.raspberrypi.org/debian bookworm/main arm64 Packages [410 kB ] Get:6 http://archive.raspberrypi.org/debian bookworm/main armhf Packages [419 kB ] Hit:7 http://security.debian.org/debian-security bullseye-security InRelease
There are still bullseye package sources configured in your system.
Can you please check and let me know which file is responsible for that (I suspect /etc/apt/sources.list)?
from nextcloudpi.
That's correct, step one only mentioned "/etc/apt/sources.list.d/raspi.list" and "/etc/apt/sources.list.d/php.list", so I only manually altered those two.
I just changed "/etc/apt/sources.list" in the same manner to:
deb http://deb.debian.org/debian bookworm main contrib non-free
deb http://security.debian.org/debian-security bookworm-security main contrib non-free
deb http://deb.debian.org/debian bookworm-updates main contrib non-free
sudo apt-get update && sudo apt-get upgrade -y --without-new-pkgs
resulted in a whole lot of packages being updated. somewhere during the process, I spotted this:
dpkg-deb: error: archive '/var/cache/apt/archives/dphys-swapfile_20100506-7.1+rpt3_all.deb' uses unknown compression for member 'control.tar.zst', giving up
Traceback (most recent call last):
File "/usr/share/apt-listchanges/DebianFiles.py", line 124, in readdeb
output = subprocess.check_output(command)
File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['dpkg-deb', '-f', '/var/cache/apt/archives/dphys-swapfile_20100506-7.1+rpt3_all.deb', 'Package', 'Source', 'Version', 'Architecture', 'Status']' returned non-zero exit status 2.The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/bin/apt-listchanges", line 323, in
main(config)
File "/usr/bin/apt-listchanges", line 104, in main
pkg = DebianFiles.Package(deb)
File "/usr/share/apt-listchanges/DebianFiles.py", line 358, in init
parser.readdeb(self.path)
File "/usr/share/apt-listchanges/DebianFiles.py", line 127, in readdeb
raise RuntimeError(_("Error processing '%(what)s': %(errmsg)s") %
RuntimeError: Error processing '/var/cache/apt/archives/dphys-swapfile_20100506-7.1+rpt3_all.deb': Command '['dpkg-deb', '-f', '/var/cache/apt/archives/dphys-swapfile_20100506-7.1+rpt3_all.deb', 'Package', 'Source', 'Version', 'Architecture', 'Status']' returned non-zero exit status 2.
dpkg --version
Debian 'dpkg' package management program version 1.21.22 (arm64).
sudo apt-get install zstd
The following packages will be upgraded:
libstdc++6 zstd
2 upgraded, 1 newly installed, 0 to remove and 174 not upgraded.
again, i prompt sudo apt-get update && sudo apt-get upgrade -y --without-new-pkgs
. No errors this time.
sudo apt-get full-upgrade -y
. a lot of preparing, unpacking and setting up. No errors. Somewhere during this process, it was suggested I reboot, so i did.
sudo apt-get --purge autoremove -y
sudo apt-get install --no-install-recommends php8.1 php8.1-curl php8.1-gd php8.1-fpm php8.1-cli php8.1-opcache php8.1-mbstring php8.1-xml php8.1-zip php8.1-fileinfo php8.1-ldap php8.1-intl php8.1-bz2 php8.1-redis php8.1-exif php8.1-bcmath php8.1-gmp php8.1-mysql
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo a2enconf php8.1-fpm
Conf php8.1-fpm already enabled
sudo systemctl reload apache2
sudo ncc maintenance:mode --off
Cannot load Zend OPcache - it was already loaded
Maintenance mode already disabled
sudo sed -i -e 's/bullseye/bookworm/' /usr/local/etc/ncp.cfg
sudo rm -f /etc/update-motd.d/30-ncp-dist-upgrade
sudo rm -f /usr/local/etc/ncp-recommended.cfg
sudo reboot
Still:
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
and
HPB service | down
from nextcloudpi.
dist-upgrade didn't work for me, so i am now completely reinstalling after a few tries.
Is it still possible to install via the curl-script on a freshly flashed raspberry pi os (bookworm) or is this not supported and i need a full debian or to directly flash the ncp-image? didn't directly find something in the documentation. I wonder because the image is now based on armbian.
from nextcloudpi.
@Schniefel Some issues have been reported with the curl installer on Raspberry Pi OS specifically that will probably take me another week to fix.
So you could either wait for that or use the Armbian image (or run NCP via LXD/LXC inside Raspberry Pi OS)
from nextcloudpi.
@theCalcaholic look at: #1926
I tried it out and got it working but had to manually install systemd-resolved before running the script
from nextcloudpi.
Your step 1 says:
"replace all occurrences of bullseye with bookworm"
But is also says:
"The result should look something like this:
deb http://archive.raspberrypi.org/debian/ bullseye main"
Seems to be a significant typo right at the top here...
from nextcloudpi.
Related Issues (20)
- Adding systemd-resolved breaks DNS during install with LXC / tteck script HOT 4
- Update to 1.54 with dist-upgrade killed the system HOT 64
- Update to 1.54.0 fails due to password missing HOT 5
- installation via curl failed HOT 30
- Missing Image Raspberry Pi 3. update v1.54.0 HOT 5
- ncp-dist-upgrade to bookworm failed HOT 3
- Missing full EOL base image HOT 1
- Error while applying update 1.54.1. Exiting... HOT 1
- php.ini conflict when updating to 1.54 HOT 1
- Error when updating: Table 'nextcloud.oc_group_user' doesn't exist HOT 5
- ncp-dist-upgrade to bookworm failed: "uses unknown compression for member 'control.tar.zst''' --> solution HOT 4
- Failed to connect to the database after 1.54.0 dist-upgrade. An exception occurred in the driver HOT 5
- curl-installer fails on systems without either systemd-resovled or resolvconf HOT 9
- Upgrade to ncp 1.54.2 stuck on fresh installed RPi5 1.54.0 image HOT 1
- Admin Settings result in Internal Server Error
- Installation on Odroid HC1 HOT 2
- ncp-dist-upgrade to bookworm failed on ncp 1.54.2 HOT 15
- RaspberryPi5 v1.54.0 - Internal Server Error HOT 3
- Some packages could not be installed - sudo ncp-dist-upgrade HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nextcloudpi.