1
1
Fork
You've already forked flatpak-readonlyroot
1

Unable to match packages during Bootc build #1

Closed
opened 2025年01月08日 00:04:20 +01:00 by defrostediceman · 2 comments

I'm using this tool to install Flatpak images during my Bootc containerfile build for several applications. However, i'm getting the following error when running it.

Error

STEP 6/9: COPY flatpak.toml .
--> 053c78959cb7`
STEP 7/9: RUN flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo && wget https://codeberg.org/HeliumOS/flatpak-readonlyroot/raw/branch/master/flatpak-readonlyroot.py && chmod +x flatpak-readonlyroot.py && python3.11 flatpak-readonlyroot.py flatpak.toml && dnf remove -y python3.11 && rm -rdf flatpak-readonlyroot.py flatpak.toml /var/roothome
[0] Downloading 'https://codeberg.org/HeliumOS/flatpak-readonlyroot/raw/branch/master/flatpak-readonlyroot.py' ...
Saving 'flatpak-readonlyroot.py'
HTTP response 200 [https://codeberg.org/HeliumOS/flatpak-readonlyroot/raw/branch/master/flatpak-readonlyroot.py]
INFO:__main__:flatpak-readonlyroot version 0.1
INFO:root:flatpak_location=PosixPath('/usr/lib/flatpak-readonlyroot')
INFO:root:config_path=PosixPath('flatpak.toml')
Looking for matches...
error: Nothing matches com.usebottles.bottles in remote flathub
Traceback (most recent call last):
 File "//flatpak-readonlyroot.py", line 244, in <module>
 main()
 File "//flatpak-readonlyroot.py", line 238, in main
 setup_mandatory(state)
 File "//flatpak-readonlyroot.py", line 210, in setup_mandatory
 subprocess.run(
 File "/usr/lib64/python3.11/subprocess.py", line 571, in run
 raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['flatpak', 'install', '--installation=installation', '-y', 'flathub', 'com.usebottles.bottles']' returned non-zero exit status 1.
Error: building at STEP "RUN flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo && wget https://codeberg.org/HeliumOS/flatpak-readonlyroot/raw/branch/master/flatpak-readonlyroot.py && chmod +x flatpak-readonlyroot.py && python3.11 flatpak-readonlyroot.py flatpak.toml && dnf remove -y python3.11 && rm -rdf flatpak-readonlyroot.py flatpak.toml /var/roothome": while running runtime: exit status 1`

Containerfile

#Step 2
RUN ln -sr /etc/containers/systemd/*.container /usr/lib/bootc/bound-images.d/ && \
 mkdir -p /var/roothome /data /var/home /root/.cache/dconf `
# Step 6
COPY flatpak.toml . `
# Step 7
RUN flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo && \
 wget https://codeberg.org/HeliumOS/flatpak-readonlyroot/raw/branch/master/flatpak-readonlyroot.py && \
 chmod +x flatpak-readonlyroot.py && \
 python3.11 flatpak-readonlyroot.py flatpak.toml && \
 dnf remove -y python3.11 && \
 rm -rdf flatpak-readonlyroot.py flatpak.toml /var/roothome`

flatpak.toml

[[remotes]]
name = "flathub"
url = "https://dl.flathub.org/repo/flathub.flatpakrepo"
[[packages]]
remote = "flathub"
app_id = "com.usebottles.bottles"
[[packages]]
remote = "flathub"
app_id = "com.github.tchx84.Flatseal"
[[packages]]
remote = "flathub"
app_id = "com.protonvpn.www"
[[packages]]
remote = "flathub"
app_id = "org.signal.Signal"
[[packages]]
remote = "flathub"
app_id = "com.vivaldi.Vivaldi"
[[packages]]
remote = "flathub"
app_id = "com.vscodium.codium"

Podman version 5.3.1

I'm using this tool to install Flatpak images during my Bootc containerfile build for several applications. However, i'm getting the following error when running it. Error ``` STEP 6/9: COPY flatpak.toml . --> 053c78959cb7` ``` ``` STEP 7/9: RUN flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo && wget https://codeberg.org/HeliumOS/flatpak-readonlyroot/raw/branch/master/flatpak-readonlyroot.py && chmod +x flatpak-readonlyroot.py && python3.11 flatpak-readonlyroot.py flatpak.toml && dnf remove -y python3.11 && rm -rdf flatpak-readonlyroot.py flatpak.toml /var/roothome [0] Downloading 'https://codeberg.org/HeliumOS/flatpak-readonlyroot/raw/branch/master/flatpak-readonlyroot.py' ... Saving 'flatpak-readonlyroot.py' HTTP response 200 [https://codeberg.org/HeliumOS/flatpak-readonlyroot/raw/branch/master/flatpak-readonlyroot.py] INFO:__main__:flatpak-readonlyroot version 0.1 INFO:root:flatpak_location=PosixPath('/usr/lib/flatpak-readonlyroot') INFO:root:config_path=PosixPath('flatpak.toml') Looking for matches... error: Nothing matches com.usebottles.bottles in remote flathub Traceback (most recent call last): File "//flatpak-readonlyroot.py", line 244, in <module> main() File "//flatpak-readonlyroot.py", line 238, in main setup_mandatory(state) File "//flatpak-readonlyroot.py", line 210, in setup_mandatory subprocess.run( File "/usr/lib64/python3.11/subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['flatpak', 'install', '--installation=installation', '-y', 'flathub', 'com.usebottles.bottles']' returned non-zero exit status 1. Error: building at STEP "RUN flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo && wget https://codeberg.org/HeliumOS/flatpak-readonlyroot/raw/branch/master/flatpak-readonlyroot.py && chmod +x flatpak-readonlyroot.py && python3.11 flatpak-readonlyroot.py flatpak.toml && dnf remove -y python3.11 && rm -rdf flatpak-readonlyroot.py flatpak.toml /var/roothome": while running runtime: exit status 1` ``` Containerfile ``` #Step 2 RUN ln -sr /etc/containers/systemd/*.container /usr/lib/bootc/bound-images.d/ && \ mkdir -p /var/roothome /data /var/home /root/.cache/dconf ` ``` ``` # Step 6 COPY flatpak.toml . ` ``` ``` # Step 7 RUN flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo && \ wget https://codeberg.org/HeliumOS/flatpak-readonlyroot/raw/branch/master/flatpak-readonlyroot.py && \ chmod +x flatpak-readonlyroot.py && \ python3.11 flatpak-readonlyroot.py flatpak.toml && \ dnf remove -y python3.11 && \ rm -rdf flatpak-readonlyroot.py flatpak.toml /var/roothome` ``` flatpak.toml ``` [[remotes]] name = "flathub" url = "https://dl.flathub.org/repo/flathub.flatpakrepo" [[packages]] remote = "flathub" app_id = "com.usebottles.bottles" [[packages]] remote = "flathub" app_id = "com.github.tchx84.Flatseal" [[packages]] remote = "flathub" app_id = "com.protonvpn.www" [[packages]] remote = "flathub" app_id = "org.signal.Signal" [[packages]] remote = "flathub" app_id = "com.vivaldi.Vivaldi" [[packages]] remote = "flathub" app_id = "com.vscodium.codium" ``` Podman version 5.3.1
Owner
Copy link

This occurs because the requested Flatpak is x86_64 only, but the build host is aarch64.

This occurs because the requested Flatpak is x86_64 only, but the build host is aarch64.

All sorted, thanks for your assistance @imbev

All sorted, thanks for your assistance @imbev
Sign in to join this conversation.
No Branch/Tag specified
master
v0.2
v0.1
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
HeliumOS/flatpak-readonlyroot#1
Reference in a new issue
HeliumOS/flatpak-readonlyroot
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?