nextcloud / nextcloudpi

📦 Build code for NextcloudPi: Raspberry Pi, Odroid, Rock64, curl installer...
https://nextcloudpi.com
2.52k stars 295 forks source link

The value 'bullseye-security' is invalid for APT::Default-Release as such a release is not available in the sources #1437

Closed Dennis-1991 closed 2 years ago

Dennis-1991 commented 2 years ago

Hello,

I try to install NextcloudPi, but it failed. The installation stopps at "The value 'bullseye-security' is invalid for APT::Default-Release as such a release is not available in the sources". I hope you are able to help me.. Here is the hole cmd:

Linux raspberrypi 5.10.92-v7+ #1514 SMP Mon Jan 17 17:36:39 GMT 2022 armv7l

The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Sun Mar 6 02:41:02 2022 from 192.168.22.36 pi@raspberrypi:~ $ wget https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh --2022-03-06 02:44:21-- https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 2606:50c0:8000::154, 2606:50c0:8001::154, 2606:50c0:8002::154, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8000::154|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 3483 (3.4K) [text/plain] Saving to: ‘install.sh’

install.sh 100%[=================================================>] 3.40K --.-KB/s in 0.001s

2022-03-06 02:44:21 (6.01 MB/s) - ‘install.sh’ saved [3483/3483]

pi@raspberrypi:~ $ sudo bash install.sh Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease Reading package lists... Done Reading package lists... Done Building dependency tree... Done Reading state information... Done ca-certificates is already the newest version (20210119). lsb-release is already the newest version (11.1.0+rpi1). lsb-release set to manually installed. sudo is already the newest version (1.9.5p2-3). The following additional packages will be installed: git-man liberror-perl Suggested packages: git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn The following NEW packages will be installed: git git-man liberror-perl 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 6,583 kB of archives. After this operation, 33.1 MB of additional disk space will be used. Get:1 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian bullseye/main armhf liberror-perl all 0.17029-1 [31.0 kB] Get:2 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian bullseye/main armhf git-man all 1:2.30.2-1 [1,827 kB] Get:3 http://mirror.pyratelan.org/raspbian/raspbian bullseye/main armhf git armhf 1:2.30.2-1 [4,724 kB] Fetched 6,583 kB in 3s (2,287 kB/s) Selecting previously unselected package liberror-perl. (Reading database ... 41532 files and directories currently installed.) Preparing to unpack .../liberror-perl_0.17029-1_all.deb ... Unpacking liberror-perl (0.17029-1) ... Selecting previously unselected package git-man. Preparing to unpack .../git-man_1%3a2.30.2-1_all.deb ... Unpacking git-man (1:2.30.2-1) ... Selecting previously unselected package git. Preparing to unpack .../git_1%3a2.30.2-1_armhf.deb ... Unpacking git (1:2.30.2-1) ... Setting up liberror-perl (0.17029-1) ... Setting up git-man (1:2.30.2-1) ... Setting up git (1:2.30.2-1) ... Processing triggers for man-db (2.9.4-2) ... Getting build code... Cloning into '/tmp/nextcloudpi.DXqpLF/nextcloudpi'... remote: Enumerating objects: 10357, done. remote: Counting objects: 100% (1366/1366), done. remote: Compressing objects: 100% (572/572), done. remote: Total 10357 (delta 897), reused 1135 (delta 767), pack-reused 8991 Receiving objects: 100% (10357/10357), 3.19 MiB | 5.55 MiB/s, done. Resolving deltas: 100% (7243/7243), done.

Installing NextCloudPi... Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease Reading package lists... Done Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: libjq1 libonig5 The following NEW packages will be installed: jq libjq1 libonig5 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 355 kB of archives. After this operation, 1,056 kB of additional disk space will be used. Get:1 http://ftp.agdsn.de/pub/mirrors/raspbian/raspbian bullseye/main armhf libonig5 armhf 6.9.6-1.1 [162 kB] Get:2 http://mirror.de.leaseweb.net/raspbian/raspbian bullseye/main armhf libjq1 armhf 1.6-2.1 [129 kB] Get:3 http://mirror.netzwerge.de/raspbian/raspbian bullseye/main armhf jq armhf 1.6-2.1 [64.6 kB] Fetched 355 kB in 1s (356 kB/s) Selecting previously unselected package libonig5:armhf. (Reading database ... 42527 files and directories currently installed.) Preparing to unpack .../libonig5_6.9.6-1.1_armhf.deb ... Unpacking libonig5:armhf (6.9.6-1.1) ... Selecting previously unselected package libjq1:armhf. Preparing to unpack .../libjq1_1.6-2.1_armhf.deb ... Unpacking libjq1:armhf (1.6-2.1) ... Selecting previously unselected package jq. Preparing to unpack .../archives/jq_1.6-2.1_armhf.deb ... Unpacking jq (1.6-2.1) ... Setting up libonig5:armhf (6.9.6-1.1) ... Setting up libjq1:armhf (1.6-2.1) ... Setting up jq (1.6-2.1) ... Processing triggers for man-db (2.9.4-2) ... Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u2) ... Installing lamp Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease Reading package lists... Done Reading package lists... Done Building dependency tree... Done Reading state information... Done apt-utils is already the newest version (2.2.4). cron is already the newest version (3.0pl1-137). curl is already the newest version (7.74.0-1.3+deb11u1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.3-0 mailcap mime-support Suggested packages: apache2-doc apache2-suexec-pristine | apache2-suexec-custom www-browser Recommended packages: ssl-cert file The following NEW packages will be installed: apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.3-0 mailcap mime-support 0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded. Need to get 2,245 kB of archives. After this operation, 7,001 kB of additional disk space will be used. Get:1 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libapr1 armhf 1.7.0-6+deb11u1 [87.1 kB] Get:2 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian bullseye/main armhf libaprutil1 armhf 1.6.1-5 [81.2 kB] Get:3 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian bullseye/main armhf libaprutil1-dbd-sqlite3 armhf 1.6.1-5 [17.5 kB] Get:4 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian bullseye/main armhf libaprutil1-ldap armhf 1.6.1-5 [16.5 kB] Get:5 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf liblua5.3-0 armhf 5.3.3-1.1+b1 [95.0 kB] Get:6 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf apache2-bin armhf 2.4.52-1~deb11u2 [1,217 kB] Get:7 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf apache2-data all 2.4.52-1~deb11u2 [160 kB] Get:8 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf apache2-utils armhf 2.4.52-1~deb11u2 [256 kB] Get:9 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian bullseye/main armhf mailcap all 3.69 [31.7 kB] Get:10 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian bullseye/main armhf mime-support all 3.66 [10.9 kB] Get:11 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf apache2 armhf 2.4.52-1~deb11u2 [272 kB] Fetched 2,245 kB in 2s (1,160 kB/s) Selecting previously unselected package libapr1:armhf. (Reading database ... 42547 files and directories currently installed.) Preparing to unpack .../00-libapr1_1.7.0-6+deb11u1_armhf.deb ... Unpacking libapr1:armhf (1.7.0-6+deb11u1) ... Selecting previously unselected package libaprutil1:armhf. Preparing to unpack .../01-libaprutil1_1.6.1-5_armhf.deb ... Unpacking libaprutil1:armhf (1.6.1-5) ... Selecting previously unselected package libaprutil1-dbd-sqlite3:armhf. Preparing to unpack .../02-libaprutil1-dbd-sqlite3_1.6.1-5_armhf.deb ... Unpacking libaprutil1-dbd-sqlite3:armhf (1.6.1-5) ... Selecting previously unselected package libaprutil1-ldap:armhf. Preparing to unpack .../03-libaprutil1-ldap_1.6.1-5_armhf.deb ... Unpacking libaprutil1-ldap:armhf (1.6.1-5) ... Selecting previously unselected package liblua5.3-0:armhf. Preparing to unpack .../04-liblua5.3-0_5.3.3-1.1+b1_armhf.deb ... Unpacking liblua5.3-0:armhf (5.3.3-1.1+b1) ... Selecting previously unselected package apache2-bin. Preparing to unpack .../05-apache2-bin_2.4.52-1~deb11u2_armhf.deb ... Unpacking apache2-bin (2.4.52-1~deb11u2) ... Selecting previously unselected package apache2-data. Preparing to unpack .../06-apache2-data_2.4.52-1~deb11u2_all.deb ... Unpacking apache2-data (2.4.52-1~deb11u2) ... Selecting previously unselected package apache2-utils. Preparing to unpack .../07-apache2-utils_2.4.52-1~deb11u2_armhf.deb ... Unpacking apache2-utils (2.4.52-1~deb11u2) ... Selecting previously unselected package mailcap. Preparing to unpack .../08-mailcap_3.69_all.deb ... Unpacking mailcap (3.69) ... Selecting previously unselected package mime-support. Preparing to unpack .../09-mime-support_3.66_all.deb ... Unpacking mime-support (3.66) ... Selecting previously unselected package apache2. Preparing to unpack .../10-apache2_2.4.52-1~deb11u2_armhf.deb ... Unpacking apache2 (2.4.52-1~deb11u2) ... Setting up libapr1:armhf (1.7.0-6+deb11u1) ... Setting up liblua5.3-0:armhf (5.3.3-1.1+b1) ... Setting up apache2-data (2.4.52-1~deb11u2) ... Setting up mailcap (3.69) ... Setting up libaprutil1:armhf (1.6.1-5) ... Setting up mime-support (3.66) ... Setting up libaprutil1-ldap:armhf (1.6.1-5) ... Setting up libaprutil1-dbd-sqlite3:armhf (1.6.1-5) ... Setting up apache2-utils (2.4.52-1~deb11u2) ... Setting up apache2-bin (2.4.52-1~deb11u2) ... Setting up apache2 (2.4.52-1~deb11u2) ... Enabling module mpm_event. Enabling module authz_core. Enabling module authz_host. Enabling module authn_core. Enabling module auth_basic. Enabling module access_compat. Enabling module authn_file. Enabling module authz_user. Enabling module alias. Enabling module dir. Enabling module autoindex. Enabling module env. Enabling module mime. Enabling module negotiation. Enabling module setenvif. Enabling module filter. Enabling module deflate. Enabling module status. Enabling module reqtimeout. Enabling conf charset. Enabling conf localized-error-pages. Enabling conf other-vhosts-access-log. Enabling conf security. Enabling conf serve-cgi-bin. Enabling site 000-default. Created symlink /etc/systemd/system/multi-user.target.wants/apache2.service → /lib/systemd/system/apache2.service. Created symlink /etc/systemd/system/multi-user.target.wants/apache-htcacheclean.service → /lib/systemd/system/apache-htcacheclean.service. Processing triggers for man-db (2.9.4-2) ... Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u2) ... Reading package lists... Done E: The value 'bullseye-security' is invalid for APT::Default-Release as such a release is not available in the sources pi@raspberrypi:~ $ sudo ncp-config sudo: ncp-config: command not found pi@raspberrypi:~ $ wget https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh --2022-03-06 02:51:56-- https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 2606:50c0:8002::154, 2606:50c0:8000::154, 2606:50c0:8001::154, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8002::154|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 3483 (3.4K) [text/plain] Saving to: ‘install.sh.1’

install.sh.1 100%[=================================================>] 3.40K --.-KB/s in 0s

2022-03-06 02:51:57 (6.72 MB/s) - ‘install.sh.1’ saved [3483/3483]

pi@raspberrypi:~ $ sudo bash install.sh Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease Reading package lists... Done Reading package lists... Done Building dependency tree... Done Reading state information... Done ca-certificates is already the newest version (20210119). git is already the newest version (1:2.30.2-1). lsb-release is already the newest version (11.1.0+rpi1). sudo is already the newest version (1.9.5p2-3). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Getting build code... Cloning into '/tmp/nextcloudpi.FpNAwE/nextcloudpi'... remote: Enumerating objects: 10357, done. remote: Counting objects: 100% (1366/1366), done. remote: Compressing objects: 100% (572/572), done. remote: Total 10357 (delta 897), reused 1135 (delta 767), pack-reused 8991 Receiving objects: 100% (10357/10357), 3.19 MiB | 1.40 MiB/s, done. Resolving deltas: 100% (7243/7243), done.

Installing NextCloudPi... Installing lamp Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease Reading package lists... Done Reading package lists... Done Building dependency tree... Done Reading state information... Done apt-utils is already the newest version (2.2.4). cron is already the newest version (3.0pl1-137). curl is already the newest version (7.74.0-1.3+deb11u1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Reading package lists... Done Building dependency tree... Done Reading state information... Done apache2 is already the newest version (2.4.52-1~deb11u2). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Reading package lists... Done E: The value 'bullseye-security' is invalid for APT::Default-Release as such a release is not available in the sources pi@raspberrypi:~ $ curl -sSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh | sudo bash Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease Reading package lists... Done Reading package lists... Done Building dependency tree... Done Reading state information... Done ca-certificates is already the newest version (20210119). git is already the newest version (1:2.30.2-1). lsb-release is already the newest version (11.1.0+rpi1). sudo is already the newest version (1.9.5p2-3). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Getting build code... Cloning into '/tmp/nextcloudpi.qCCPeV/nextcloudpi'... remote: Enumerating objects: 10357, done. remote: Counting objects: 100% (1366/1366), done. remote: Compressing objects: 100% (590/590), done. remote: Total 10357 (delta 895), reused 1122 (delta 749), pack-reused 8991 Receiving objects: 100% (10357/10357), 3.19 MiB | 6.16 MiB/s, done. Resolving deltas: 100% (7241/7241), done.

Installing NextCloudPi... Installing lamp Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease Reading package lists... Done Reading package lists... Done Building dependency tree... Done Reading state information... Done apt-utils is already the newest version (2.2.4). cron is already the newest version (3.0pl1-137). curl is already the newest version (7.74.0-1.3+deb11u1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Reading package lists... Done Building dependency tree... Done Reading state information... Done apache2 is already the newest version (2.4.52-1~deb11u2). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Reading package lists... Done E: The value 'bullseye-security' is invalid for APT::Default-Release as such a release is not available in the sources pi@raspberrypi:~ $

Marcus-En commented 2 years ago

Hi Dennis, I think, I stuck on the same spot yesterday. The install script doesnt run on (a fresh) bullseye, by now. It seems that the pros are working on it. I have a running instance on buster, so I decided to wait and see BR

vcbranco commented 2 years ago

Did you tried the official NextCloudPi image? https://ownyourbits.com/downloads/

allea78 commented 2 years ago

Hello, I've the same problem: I've installed a fresh RasperriPi OS (2022-01-28-raspios-bullseye-armhf-lite.img) and I've run "curl -sSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh | bash". (https://ownyourbits.com/nextcloudpi/#download)

The official NextCloudPI is for 64bit systems and my old Raspberri is 32.

Thank you

m-breitbach commented 2 years ago

I'm running into the same problem when trying to 'sudo ncp-dist-upgrade' from Buster (kernel: 5.10.63-v7l+, NCP: 1.46.8).

(Is there a way to roll back the unfinished upgrade?)

allea78 commented 2 years ago

Adding the line: deb http://security.debian.org/ bullseye-security/updates main contrib non-free in /etc/apt/source.list (and running sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 112695A0E562B32A for the keys) the error disappear, but now I've downgrades errors whit some php packages and the service php7.4-fpm doesn't start.

I've try also whit a Buster fresh installations, but in this case the NextCloud Pi install script fail because it is not support this version of Raspberri Pi OS.

nitind commented 2 years ago

I think the underlying problem is that the target release, bullseye-security, concocted in etc/library.sh doesn't exist for Raspbian like it does for Debian.

Download and prepend this at install.sh line 45, before the library.sh is sourced, as a workaround:

ed << RASP
e etc/library.sh
37d
w
RASP
Iolaum commented 2 years ago

I just hit this bug when updating raspbian on Rpi3 on the latest ncp version.

Update:

I was able to get out of this:

Steps:

  1. As @allea78 said, add deb http://security.debian.org/ bullseye-security/updates main contrib non-free in /etc/apt/source.list, and then run:

    # for keys
    $ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 112695A0E562B32A
    # update indexes from sources change
    $ sudo apt-get update
  2. Log in to pi and change as root user:

    $ sudo -i
    # load library.sh
    (root) $ source /usr/local/etc/library.sh

Now manually run the following lines of code to set up enviroment variables:

https://github.com/nextcloud/nextcloudpi/blob/cd98b50da7b3f7f840d264e87c51533fd1d10f4c/bin/ncp-dist-upgrade#L7 https://github.com/nextcloud/nextcloudpi/blob/cd98b50da7b3f7f840d264e87c51533fd1d10f4c/bin/ncp-dist-upgrade#L10 https://github.com/nextcloud/nextcloudpi/blob/cd98b50da7b3f7f840d264e87c51533fd1d10f4c/bin/ncp-dist-upgrade#L28 https://github.com/nextcloud/nextcloudpi/blob/cd98b50da7b3f7f840d264e87c51533fd1d10f4c/bin/ncp-dist-upgrade#L71 https://github.com/nextcloud/nextcloudpi/blob/cd98b50da7b3f7f840d264e87c51533fd1d10f4c/bin/ncp-dist-upgrade#L73 https://github.com/nextcloud/nextcloudpi/blob/cd98b50da7b3f7f840d264e87c51533fd1d10f4c/bin/ncp-dist-upgrade#L74

The error must have happened somewhere on the command on line https://github.com/nextcloud/nextcloudpi/blob/cd98b50da7b3f7f840d264e87c51533fd1d10f4c/bin/ncp-dist-upgrade#L76

Run this command and everything below manually.

ovpc commented 2 years ago

On Proxmox VM sudo ncp-dist-upgrade ends with;

Running hooks in /etc/ca-certificates/update.d... done. Processing triggers for initramfs-tools (0.140) ... update-initramfs: Generating /boot/initrd.img-5.10.0-10-amd64 Processing triggers for dbus (1.12.20-2) ... Reading package lists... Done E: The value 'bullseye-security' is invalid for APT::Default-Release as such a release is not available in the sources Something went wrong. Fix it and try again

Siam1205 commented 2 years ago

I am no experienced Linux user but I ran into the issue today after I updated from buster to bullseye which broke my whole nextcloud installation. As a result, I reinstalled a new fresh buster image in order to set up a fresh ncp instance. However, I failed to install it on the fresh buster system because of the "unsupported dist" problem. I then found this issue and, as a result, updated the system to bullseye again. Then I ran the command curl -sSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh | bash after I had added deb http://security.debian.org/ bullseye-security/updates main contrib non-free and the key respectively.

The last lines resulted in

Setting up samba-common-bin (2:4.13.13+dfsg-1~deb11u3) ...
Checking smb.conf with testparm
testparm: symbol lookup error: testparm: undefined symbol: samba_gnutls_weak_crypto_allowed, version SAMBA_4.13.13_DEBIAN
dpkg: error processing package samba-common-bin (--configure):
 installed samba-common-bin package post-installation script subprocess returned error exit status 127
dpkg: dependency problems prevent configuration of samba:
 samba depends on samba-common-bin (= 2:4.13.13+dfsg-1~deb11u3); however:
  Package samba-common-bin is not configured yet.

dpkg: error processing package samba (--configure):
 dependency problems - leaving unconfigured
Processing triggers for systemd (241-7~deb10u8+rpi1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.31-13+rpi1+deb11u2) ...
Errors were encountered while processing:
 samba-common-bin
 samba
E: Sub-process /usr/bin/dpkg returned an error code (1)
You have new mail in /var/mail/root

I'm not sure what the solution to this problem should be even though there are some suggestions and I don't know exactly what do do to set up the instance and load my backups. However, I do want and even need to get it running quickly because I rely on my own cloud instance.

Siam1205 commented 2 years ago

I tried what @Iolaum said but I didn't work. Firstly, there is no file /usr/local/etc/ncp-recommended.cfg. Because of that, I tried using the existing file /usr/local/etc/ncp.cfg. However, when I run line 76 and everything below manually, as mentioned, it fails with the same error I presented above.

Sujeom commented 2 years ago

Try adding "deb http://security.debian.org/debian-security bullseye-security main contrib non-free" to your /etc/apt/sources.list file.

Siam1205 commented 2 years ago

Hi, thank you for your answer. Meanwhile, I tried to use the official NextCloudPi image like @vcbranco suggested. With this approach, you don't have to install NextCloudPi anymore because it obviously already exists on the image. I was able to initialize it just to reload my backups which worked surprisingly well.

In fact, there were a few things and minor bugs I encountered, for example that my contacts were lost at first or that I was not able to enable SSH via the web interface (there's an issue well documented by other users in other issues or threads) but there was nothing I could not handle somehow.

The cloud now seems to work as expected and I'm grateful again, that the NCP project exists. Why? because during a frustration period, I looked for alternatives. Simply, there are none worth mentioning.

nachoparker commented 2 years ago

@Siam1205 run ncp-update and then you'll be able to enable SSH again

Andy-Meissner commented 2 years ago

Why is this issue closed ?

The workaround suggested by @nitind seemed to work for me.

theCalcaholic commented 2 years ago

@Andy-Meissner This should be fixed in #1457

Until it is merged, the fix can be applied as such:

sudo ncp-update fix/dist-upgrade-raspbian
sudo ncp-dist-upgrade
ovpc commented 2 years ago

Processing triggers for initramfs-tools (0.140) ... update-initramfs: Generating /boot/initrd.img-5.10.0-13-amd64 Processing triggers for dbus (1.12.20-2) ... Reading package lists... Done E: The value 'bullseye-security' is invalid for APT::Default-Release as such a release is not available in the sources Something went wrong. Fix it and try again oliver@ncpvm ~ $ sudo ncp-update fix/dist-upgrade-raspbian INFO: updating to development branch 'fix/dist-upgrade-raspbian' Downloading updates warning: Could not find remote branch fix/dist-upgrade-raspbian to clone. fatal: Remote branch fix/dist-upgrade-raspbian not found in upstream origin No internet connectivity

So this is not fixed yet for VM on Proxmox, it seems. Rerunning ncp-dist-upgrade gives no output at all even after manually adding "deb http://security.debian.org/debian-security bullseye-security main contrib non-free" to sources-list

theCalcaholic commented 2 years ago

@ovpc The fix is now in master. Just do a normal ncp-update and then ncp-dist-upgrade

theCalcaholic commented 2 years ago

@ovpc The fix is now in master. Just do a normal ncp-update and then ncp-dist-upgrade

ovpc commented 2 years ago

@theCalcaholic Thanks and sorry I did not post ncp version, but it was already up to date at v1.47.1 Let me know if need more log or info, no problem running it again, It has been restored from a previously taken snapshot.

theCalcaholic commented 2 years ago

Ah okay... As you're not running ncp on a raspberry pi, this is very likely a separate issue (or the same issue affecting another base image). Could you please create a new issue with all the information asked by the GH issue template? I'll need that to find another workaround.

NicholasKirchner commented 2 years ago

This remains an issue with a fresh installation. I just took the latest fresh Raspberry Pi OS, and attempted to run install.sh. It failed with this error message. @nitind 's workaround worked to dodge the issue and continue the install.

I had to modify the work-around slightly, because two lines have been added to library.sh. The workaround should now be

ed << RASP
e etc/library.sh
39d
w
RASP
useronegit commented 2 years ago

the problem still exists, fresh raspberry pi debian lite install + tryd nextcloudpi install with command

eddietheeagle7 commented 2 years ago

With the suggestion from @NicholasKirchner the installation worked.

But when calling the web site I got a message that I am trying to access via an untrusted domain. After adding the domain to the trusted domain I got only an empty "Index Of" page, nothing listed: grafik

This didn't change when I removed the adress from the trusted domains.

Is it possible to uninstall everything the install script installed to try it again?

wildywerewolf commented 2 years ago

@ovpc The fix is now in master. Just do a normal ncp-update and then ncp-dist-upgrade

I also encountered this fault. I followed the above solution, ran ncp-update and ncp-dist-upgrade, and nothing output but a confirmation option, and when I visit Pi, only a PHP page is displayed:

`<?php /**

teledyn commented 10 months ago

It is now 2023, I am running NextcloudPi version v1.53.0 updated to Nextcloud version 27.1.3.2 on a rpi4B, and an upgrade to Bookworm has replicated this problem.