Giter Site home page Giter Site logo

Comments (18)

rcfa avatar rcfa commented on May 23, 2024 1

from pulseaudio-module-xrdp.

matt335672 avatar matt335672 commented on May 23, 2024 1

@Precision-Tech - thank you for raising this, and particularly in helping me find a good resolution. I've updated the Wiki for Raspberry PI OS now.

from pulseaudio-module-xrdp.

matt335672 avatar matt335672 commented on May 23, 2024

Hi @Precision-Tech

Thanks for feeding this back.

I'm having problems reproducing this, probably as I only have a Franken-Pi available, and that seems to be working.

What are the contents of /etc/apt/sources.list on your machine?

Thanks.

from pulseaudio-module-xrdp.

Precision-Tech avatar Precision-Tech commented on May 23, 2024

from pulseaudio-module-xrdp.

Precision-Tech avatar Precision-Tech commented on May 23, 2024

from pulseaudio-module-xrdp.

matt335672 avatar matt335672 commented on May 23, 2024

@Precision-Tech - Thanks for your assistance so far. I'm currently trying to see the best way to solve this.

What do these commands give you:-

lsb_release -cs
grep keyring /usr/share/debootstrap/scripts/`lsb_release -cs`
apt-key list

Thanks.

from pulseaudio-module-xrdp.

matt335672 avatar matt335672 commented on May 23, 2024

PS - see also neutrinolabs/xrdp#2060 for a more detailed analysis of @rcfa's suggestion above.

from pulseaudio-module-xrdp.

Precision-Tech avatar Precision-Tech commented on May 23, 2024

lsb_release -cs:

bullseye

grep keyring /usr/share/debootstrap/scripts/`lsb_release -cs:

keyring /usr/share/keyrings/debian-archive-keyring.gpg

apt-key list:

Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
/etc/apt/trusted.gpg
--------------------
pub   rsa2048 2012-04-01 [SC]
      A0DA 38D0 D76E 8B5D 6388  7281 9165 938D 90FD DD2E
uid           [ unknown] Mike Thompson (Raspberry Pi Debian armhf ARMv6+VFP) <[email protected]>
sub   rsa2048 2012-04-01 [E]

/etc/apt/trusted.gpg.d/raspberrypi-archive-stable.gpg
-----------------------------------------------------
pub   rsa2048 2012-06-17 [SC]
      CF8A 1AF5 02A2 AA2D 763B  AE7E 82B1 2992 7FA3 303E
uid           [ unknown] Raspberry Pi Archive Signing Key
sub   rsa2048 2012-06-17 [E]

from pulseaudio-module-xrdp.

matt335672 avatar matt335672 commented on May 23, 2024

The problem seems to be related to /usr/share/debootstrap/scripts/bullseye which on my system is a symlink to /usr/share/debootstrap/scripts/sid.

This file is telling the debootstrap utility to use /usr/share/keyrings/debian-archive-keyring.gpg. This is fine for a Debian bullseye machine, but not a PI, as the packages are signed with a different key.

Can you edit the original script, and make this change?

Replace this line (130):-

sudo debootstrap $distro $BUILDROOT >$log 2>&1 || {

with

sudo debootstrap --keyring=/etc/apt/trusted.gpg $distro $BUILDROOT >$log 2>&1 || {

I'm trying to come up with something which will work with other Debian derivatives.

Thanks again for your help with investigating this.

from pulseaudio-module-xrdp.

Precision-Tech avatar Precision-Tech commented on May 23, 2024

Happy to try and help!

Changing line 130 results in the following:

cat /var/tmp/pa-build-pi-debootstrap.log
I: Target architecture can be executed
I: Retrieving InRelease
I: Checking Release signature
E: Release signed by unknown key (key id 605C66F00D6C9793)
   The specified keyring /etc/apt/trusted.gpg may be incorrect or out of date.
   You can find the latest Debian release key at https://ftp-master.debian.org/keys.html

from pulseaudio-module-xrdp.

Precision-Tech avatar Precision-Tech commented on May 23, 2024

Maybe adding this to line 130 would help?

--no-check-gpg
              Disables checking gpg signatures of retrieved Release files.

from pulseaudio-module-xrdp.

Precision-Tech avatar Precision-Tech commented on May 23, 2024

Changing line 130 to sudo debootstrap --keyring=/etc/apt/trusted.gpg --no-check-gpg $distro $BUILDROOT >$log 2>&1 || { gets us past the error above. However, this is still an issue:

cat /var/tmp/pa-build-pi-schroot.log
Reading package lists...
Building dependency tree...
E: Unable to locate package sudo
E: Unable to locate package lsb-release
/bin/sh: 1: cannot create /etc/sudoers.d/nopasswd-pi: Directory nonexistent
chmod: cannot access '/etc/sudoers.d/nopasswd-pi': No such file or directory
/wrapped_script: 55: lsb_release: not found
/wrapped_script: 55: lsb_release: not found

from pulseaudio-module-xrdp.

matt335672 avatar matt335672 commented on May 23, 2024

We seem to be in a bit of a mess, as the handle bullseye means two separate things:-

  1. The Debian bullseye release
  2. The Raspberry PI OS.

The debootstrap command is defaulting to a Debian mirror http://deb.debian.org/debian rather than the raspbian mirror. The URL is hard-coded in the command (which is a shell script). That explains your first error. The key 605C66F00D6C9793 is a (very) recent Debian signing key:-

$ gpg --search-key 605C66F00D6C9793
gpg: data source: http://162.213.33.9:11371
(1)	Debian Stable Release Key (11/bullseye) <[email protected]
	  4096 bit RSA key 605C66F00D6C9793, created: 2021-02-13

I'm not keen on the --no-check-gpg as you're downloading stuff from the Internet here (probably over vanilla http) which will run with privilege. It's probably OK on a company LAN.

Try this line 130:-

sudo debootstrap --keyring=/etc/apt/trusted.gpg $distro $BUILDROOT http://raspbian.raspberrypi.org/raspbian >$log 2>&1 || {

On my AMD64 machine I get past the error you had earlier, but then get E: Invalid Release file, no entry for main/binary-amd64/Packages. I can see why!

from pulseaudio-module-xrdp.

Precision-Tech avatar Precision-Tech commented on May 23, 2024

I 100% agree that --no-check-gpg was not an ideal solution.

Changing line 130 to:

sudo debootstrap --keyring=/etc/apt/trusted.gpg $distro $BUILDROOT http://raspbian.raspberrypi.org/raspbian >$log 2>&1 || {

did resolve the issue!

Seems like there might need to be some logic to check if bullseye then check if is Raspbian for this to work in the general case, but this does work in the single use case of installing on Raspbian

from pulseaudio-module-xrdp.

Precision-Tech avatar Precision-Tech commented on May 23, 2024

Checking /etc/os-release comes to mind, but I am not sure how reliable it is:

cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

from pulseaudio-module-xrdp.

matt335672 avatar matt335672 commented on May 23, 2024

What I might do is add some way to specify the mirror and keyring to the script, and then add a note on the Wiki.

That means less changes when a similar things happens for another SBC - there are quite a few of them.

from pulseaudio-module-xrdp.

matt335672 avatar matt335672 commented on May 23, 2024

Working on this here:-

https://github.com/matt335672/pulseaudio-module-xrdp/tree/specify_mirror

Direct download link to the update script is:-

https://raw.githubusercontent.com/matt335672/pulseaudio-module-xrdp/specify_mirror/scripts/install_pulseaudio_sources_apt_wrapper.sh

Copy this over your existing script, then this should work:-

./install_pulseaudio_sources_apt_wrapper.sh --mirror=http://raspbian.raspberrypi.org/raspbian --keyring=/etc/apt/trusted.gpg

Let me know, then I can commit this and update the Wiki.

from pulseaudio-module-xrdp.

Precision-Tech avatar Precision-Tech commented on May 23, 2024

It works, thank you for all your support with this issue!

from pulseaudio-module-xrdp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.