Repo doesnt have release file error when installing on PI5 or PI4
I have been following a guide from a couple of different sites including the English install docs from here and keep hitting a wall and would love some help. Thank you in advance.
I have gotten to the point where I use curl to add the port repo to the pi and add it to the source list. When I run sudo apt update the following returns.
Extract from my terminal
user@pinode0:~ $ sudo apt update
Hit:1 http://deb.debian.org/debian bookworm InRelease Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Hit:4 http://archive.raspberrypi.com/debian bookworm InRelease
Ign:5 https://mirrors.apqa.cn/proxmox/debian/pve bookworm InRelease
Err:6 https://mirrors.apqa.cn/proxmox/debian/pve bookworm Release
404 Not Found [IP: 104.21.43.231 443] Ign:7 https://mirrors.lierfang.com/pxcloud/pxvirt bookworm InRelease Err:8 https://mirrors.lierfang.com/pxcloud/pxvirt bookworm Release Redirection from https to 'http://de.mirrors.lierfang.com/pxcloud/pxvirt/dists/bookworm/Release' is forbidden [IP: 117.139.168.42 443] Reading package lists... Done E: The repository 'https://mirrors.apqa.cn/proxmox/debian/pve bookworm Release' does not have a Release file. 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. E: The repository 'https://mirrors.lierfang.com/pxcloud/pxvirt bookworm Release' does not have a Release file. 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.
Check out issue [#190 ]... looks to be the same issue.
The issue is gone or I don't see it(?)
# cat /etc/apt/sources.list.d/pxvirt-sources.list
deb [arch=arm64 signed-by=/etc/apt/trusted.gpg.d/lierfang.gpg] https://de.mirrors.lierfang.com/pxcloud/pxvirt bookworm main
# apt update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Hit:4 http://archive.raspberrypi.com/debian bookworm InRelease
Hit:5 http://repository.netdata.cloud/repos/stable/debian bookworm/ InRelease
Hit:6 http://repository.netdata.cloud/repos/repoconfig/debian bookworm/ InRelease
Hit:7 https://de.mirrors.lierfang.com/pxcloud/pxvirt bookworm InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
In my pxvirt-sources.list file, I have this entry (per their documentation):
deb https://mirrors.lierfang.com/pxcloud/pxvirt bookworm main
Curious where you obtained your entry
Curious where you obtained your entry
I have no clue how I found this couple of days ago, but from this blog post: https://knilixotherthings.wordpress.com/proxmox-pxvirt/ (with Google Translate since I don't know German).
I understand the "de" in front of mirrors but focused in on the text between [ and ]. When I add that to my file, I get more errors. The documentation has a step above creating the pxvirt-sources-list file which downloads the cert. Guess just another way to accomplish the same thing :)
@k5map Is the file path inside the [ ] same as where you downloaded the file? In my case the important bit was specify the CPU architecture:
# Redirects to de.mirrors.com in my case which points
# to an IP in Switzerland according to geolocation
deb [arch=arm64] https://mirrors.lierfang.com/pxcloud/pxvirt bookworm main
# Main source, downloads from China
deb [arch=arm64] https://downloads.lierfang.com/pxcloud/pxvirt bookworm main
...otherwise I'll see this:
W: Skipping acquire of configured file 'main/binary-armhf/Packages' as repository 'https://download.lierfang.com/pxcloud/pxvirt bookworm InRelease' does not seem to provide it (sources.list entry misspelt?)
@ristomatti ... Yes, when you run the script in the documentation, that is the location of the certificate file downloaded.
Ok, after reading your last post, I decided to do a bit more testing... here are my results:
- If I add the path the certificate file in brackets, I get multiple errors
- But if I change and only use '[arch=arm64]' like in your file, apt update comes back with NO errors
SOOOO... I then decided to see if I could proceed with install PXVIRT and it works. This may not be the proper method (based on their documentation) but I'm going to build a couple of RPi4 host and see how far I get.
Ok good news with one concern... I successfully built a RPi4 with Bookworm and its up and running PXVIRT v8.4.10. But now post install, when I run 'apt update', I now get these warning messages
Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. W: Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list.d/pxvirt-sources.list:1 and /etc/apt/sources.list.d/pxvirt.list:1 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/pxvirt-sources.list:1 and /etc/apt/sources.list.d/pxvirt.list:1 W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/pxvirt-sources.list:1 and /etc/apt/sources.list.d/pxvirt.list:1 W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/pxvirt-sources.list:1 and /etc/apt/sources.list.d/pxvirt.list:1 W: Skipping acquire of configured file 'main/binary-armhf/Packages' as repository 'https://download.lierfang.com/pxcloud/pxvirt bookworm InRelease' does not seem to provide it (sources.list entry misspelt?) W: Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list.d/pxvirt-sources.list:1 and /etc/apt/sources.list.d/pxvirt.list:1 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/pxvirt-sources.list:1 and /etc/apt/sources.list.d/pxvirt.list:1 W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/pxvirt-sources.list:1 and /etc/apt/sources.list.d/pxvirt.list:1 W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/pxvirt-sources.list:1 and /etc/apt/sources.list.d/pxvirt.list:1
I'm still checking but it appears the install added a duplicate source file named 'pxvirt-sources.list' which is the cause of the warning messages.
So, once I get the other RPi4 built, I'm going to see if I can get them clustered.
It looks like you have two conflicting apt sources active. IIRC following the install guide results in source repo listed in /etc/apt/sources.list.d/pxvirt.list but during the installation another one is added in /etc/apt/sources.list.d/pxvirt-sources.list.
Check with:
grep "deb" /etc/apt/sources.list.d/pxvirt*.list
I've commented out the second one:
$ cat /etc/apt/sources.list.d/pxvirt.list
deb [arch=arm64 signed-by=/etc/apt/trusted.gpg.d/lierfang.gpg] https://mirrors.lierfang.com/pxcloud/pxvirt bookworm main
$ cat /etc/apt/sources.list.d/pxvirt-sources.list
# deb https://download.lierfang.com/pxcloud/pxvirt bookworm main
You are correct... during the prep for the install, the instructions created a file /sources.list.d/pxvirt.list. But once I completed the installation of PXVIRT, it created a 2nd file pxvirt-sources.list. Once I deleted the 2nd file, no more errors
Today, I ran apt update (after installing PXVIRT) on a newly built RPi4 and the warning/errors are different now:
root@pve-rpi-1:/etc/apt# apt update Ign:1 http://deb.debian.org/debian bookworm InRelease Ign:2 https://download.lierfang.com/pxcloud/pxvirt bookworm InRelease Ign:3 http://archive.raspberrypi.com/debian bookworm InRelease Ign:4 http://deb.debian.org/debian-security bookworm-security InRelease Ign:5 http://deb.debian.org/debian bookworm-updates InRelease Ign:1 http://deb.debian.org/debian bookworm InRelease Ign:2 https://download.lierfang.com/pxcloud/pxvirt bookworm InRelease Ign:3 http://archive.raspberrypi.com/debian bookworm InRelease Ign:4 http://deb.debian.org/debian-security bookworm-security InRelease Ign:5 http://deb.debian.org/debian bookworm-updates InRelease Ign:1 http://deb.debian.org/debian bookworm InRelease Ign:2 https://download.lierfang.com/pxcloud/pxvirt bookworm InRelease Ign:3 http://archive.raspberrypi.com/debian bookworm InRelease Ign:4 http://deb.debian.org/debian-security bookworm-security InRelease Ign:5 http://deb.debian.org/debian bookworm-updates InRelease Err:1 http://deb.debian.org/debian bookworm InRelease Temporary failure resolving 'deb.debian.org' Err:2 https://download.lierfang.com/pxcloud/pxvirt bookworm InRelease Temporary failure resolving 'download.lierfang.com' Err:3 http://archive.raspberrypi.com/debian bookworm InRelease Temporary failure resolving 'archive.raspberrypi.com' Err:4 http://deb.debian.org/debian-security bookworm-security InRelease Temporary failure resolving 'deb.debian.org' Err:5 http://deb.debian.org/debian bookworm-updates InRelease Temporary failure resolving 'deb.debian.org' Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. W: Failed to fetch http://deb.debian.org/debian/dists/bookworm/InRelease Temporary failure resolving 'deb.debian.org' W: Failed to fetch http://deb.debian.org/debian-security/dists/bookworm-security/InRelease Temporary failure resolving 'deb.debian.org' W: Failed to fetch http://deb.debian.org/debian/dists/bookworm-updates/InRelease Temporary failure resolving 'deb.debian.org' W: Failed to fetch https://download.lierfang.com/pxcloud/pxvirt/dists/bookworm/InRelease Temporary failure resolving 'download.lierfang.com' W: Failed to fetch http://archive.raspberrypi.com/debian/dists/bookworm/InRelease Temporary failure resolving 'archive.raspberrypi.com' W: Some index files failed to download. They have been ignored, or old ones used instead.
@k5map Looks like it either was not connected to internet or it's DNS was misconfigured. Perhaps you missed one of the pre-installation steps (disabling NetworkManager, setting up a static IP address etc.)?
@ristomatti ... that was it! I know I updated resolv.conf prior to the PXVIRT install so not sure why the DNS server entries were removed. Thanks again for the assistance.
@k5map This is not really a subject matter I'm an expert with but I'm happy I could be of help! 🙂