I lost the flatpak install of Chromium v134 (the last one to support manifest v2) on my host computer. This version is longer available at flathub, so I can’t restore via commit ID. However, I still have a virtual machine (VM) with a working v134 install.
I used create-usb on the VM to create the repo.
create repo
clayton@fedora:~$ flatpak create-usb -vv ~/dookie org.chromium.Chromium
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /home/clayton/.local/share/flatpak
F: Finding the runtime for ‘app/org.chromium.Chromium/x86_64/stable’
F: Finding related refs for ‘runtime/org.freedesktop.Platform/x86_64/24.08’
F: No installations directory in /etc/flatpak/installations.d. Skipping
Warning: Related ref ‘runtime/org.freedesktop.Platform.Locale/x86_64/24.08’ is partially installed. Use --allow-partial to suppress this message.
Warning: Omitting related ref ‘runtime/org.freedesktop.Platform.openh264/x86_64/2.5.1’ because it's extra-data.
F: Finding related refs for ‘app/org.chromium.Chromium/x86_64/stable’
Warning: Related ref ‘runtime/org.chromium.Chromium.Locale/x86_64/stable’ is partially installed. Use --allow-partial to suppress this message.
F: Fetching summary index file for remote ‘flathub’
F: Loading https://dl.flathub.org/repo/summary.idx using curl
F: Received 10001 bytes
F: Loaded indexed summary file cb93e1b659dd6480c82f7af27e36be28e82ef0ee294d40e6d40dab512eadbff0 from cache for remote ‘flathub’
F: flathub:x86_64 appstream age 88721 is greater than ttl 0
F: flatpak_dir_pull: Using commit 460a0d00bdcc10132b6e2a69dcb4a3c70680547ad234c379719f602f4e45b7e1 for pull of ref appstream2/x86_64 from remote flathub
F: Calling system helper: DeployAppstream
F: Calling system helper: UpdateSummary
F: Copying the following refs: (org.flathub.Stable, appstream2/x86_64) (org.flathub.Stable, runtime/org.freedesktop.Platform.GL.default/x86_64/24.08) (org.flathub.Stable, runtime/org.chromium.Chromium.Codecs/x86_64/stable) (org.flathub.Stable, runtime/org.freedesktop.Platform.GL.default/x86_64/24.08extra) (org.flathub.Stable, runtime/org.gtk.Gtk3theme.Breeze/x86_64/3.22) (org.flathub.Stable, app/org.chromium.Chromium/x86_64/stable) (org.flathub.Stable, runtime/org.freedesktop.Platform.Locale/x86_64/24.08) (org.flathub.Stable, runtime/org.freedesktop.Platform/x86_64/24.08) (org.flathub.Stable, runtime/org.chromium.Chromium.Locale/x86_64/stable)
F: ostree_create_usb: Creating repository in mode 1
5 metadata, 3 content objects imported; 39.3 MB content written
Copied 9/9 refs successfully from ‘/var/lib/flatpak/repo’ to ‘.ostree/repo’ repository in ‘/home/clayton/dookie’.
clayton@fedora:~$
I transferred the repo to the host. When I try to install, I get an error:
sudo flatpak install --no-pull --no-deploy --no-related --no-deps --no-auto-pin --no-static-deltas --reinstall --sideload-repo=~/dookie/ org.chromium.Chromium
[sudo] password for clayton:
Looking for matches…
error: No remote refs found for ‘org.chromium.Chromium’
What am I doing wrong?
Follow up:
When I attempt to reinstall the latest version, it fails and I don’t understand why…
install
clayton@voron:~$ flatpak install org.chromium.Chromium
Looking for matches…
Remotes found with refs similar to ‘org.chromium.Chromium’:
1) ‘fedora’ (system)
2) ‘flathub’ (system)
Which do you want to use (0 to abort)? [0-2]: 2
org.chromium.Chromium permissions:
ipc network cups pulseaudio
wayland x11 devices file access [1]
dbus access [2] bus ownership [3] system dbus access [4]
[1] /run/.heim_org.h5l.kcm-socket, home
[2] com.canonical.AppMenu.Registrar, org.freedesktop.FileManager1, org.freedesktop.Notifications,
org.freedesktop.ScreenSaver, org.freedesktop.secrets, org.gnome.SessionManager, org.kde.kwalletd5,
org.kde.kwalletd6
[3] org.mpris.MediaPlayer2.chromium.*
[4] org.bluez, org.freedesktop.Avahi, org.freedesktop.UPower
ID Branch Op Remote Download
1. [✓] org.chromium.Chromium.Codecs stable i flathub 2.3 kB / 973.7 kB
2. [✗] org.chromium.Chromium.Locale stable i flathub 1.0 kB / 192.3 kB
3. [✗] org.chromium.Chromium stable i flathub 139.0 MB / 150.3 MB
Warning: While pulling runtime/org.chromium.Chromium.Locale/x86_64/stable from remote flathub: Commit 3f259908adf3cf50fbde5b7168789a43b8a0f6b127c2ab08ca7cc2d9889db7eb: Commit has collection ID ‘org.flathub.Stable’ in collection binding metadata, while the remote it came from has collection ID ‘org.chromium.Chromium’
error: Failed to install org.chromium.Chromium: While pulling app/org.chromium.Chromium/x86_64/stable from remote flathub: Commit 9ebd025b873cb07f51ad275bd105c7bbc9ece2eedff36d1c695f5c65e63ab455: Commit has collection ID ‘org.flathub.Stable’ in collection binding metadata, while the remote it came from has collection ID ‘org.chromium.Chromium’
UPDATE:
OK, my bad. Omitted flathub
after install
. However, still receive a warning I don’t understand:
warning
Warning: While pulling runtime/org.chromium.Chromium.Locale/x86_64/stable from remote flathub: Commit 3f259908adf3cf50fbde5b7168789a43b8a0f6b127c2ab08ca7cc2d9889db7eb: Commit has collection ID ‘org.flathub.Stable’ in collection binding metadata, while the remote it came from has collection ID ‘org.chromium.Chromium’
Installation complete.
WORKAROUND
Lacking alternatives, I tried the following:
Deleted /var/lib/flatpak/app/org.chromium.Chromium
on the Host. Copied the same directory from the VM to the Host. It worked! Chromium v134 has returned.
If anyone can answer my original question, I would prefer to do it the official way…