Xdg-desktop-portal kept back

When i update my machine today i got the message?
The following packages have been kept back:
xdg-desktop-portal?
How can i solve this?

I did this to install this package indendently?

sudo apt install xdg-desktop-portal
[sudo] password for jyh:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
fuse3 libfuse3-3
The following packages will be REMOVED:
fuse
The following NEW packages will be installed:
fuse3 libfuse3-3
The following packages will be upgraded:
xdg-desktop-portal
1 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
Need to get 386 kB of archives.
After this operation, 454 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 Index of /ubuntu focal/universe amd64 libfuse3-3 amd64 3.9.0-2 [74,0 kB]
Get:2 Index of /zorinos/stable/ubuntu focal/main amd64 xdg-desktop-portal amd64 1.14.3-1~flatpak1~20.04 [287 kB]
Get:3 Index of /ubuntu focal/universe amd64 fuse3 amd64 3.9.0-2 [24,7 kB]
Fetched 386 kB in 0s (878 kB/s)
Selecting previously unselected package libfuse3-3:amd64.
(Reading database ... 292260 files and directories currently installed.)
Preparing to unpack .../libfuse3-3_3.9.0-2_amd64.deb ...
Unpacking libfuse3-3:amd64 (3.9.0-2) ...
Preparing to unpack .../xdg-desktop-portal_1.14.3-1~flatpak1~20.04_amd64.deb ...
Unpacking xdg-desktop-portal (1.14.3-1~flatpak1~20.04) over (1.8.1-1~flatpak1~20
.04) ...
dpkg: fuse: dependency problems, but removing anyway as you requested:
sshfs depends on fuse.
ntfs-3g depends on fuse.
gvfs-fuse depends on fuse.
flatpak depends on fuse.

(Reading database ... 292275 files and directories currently installed.)
Removing fuse (2.9.9-3) ...
update-initramfs: deferring update (trigger activated)
Selecting previously unselected package fuse3.
(Reading database ... 292265 files and directories currently installed.)
Preparing to unpack .../fuse3_3.9.0-2_amd64.deb ...
Unpacking fuse3 (3.9.0-2) ...
Setting up libfuse3-3:amd64 (3.9.0-2) ...
Setting up fuse3 (3.9.0-2) ...
Installing new version of config file /etc/fuse.conf ...
update-initramfs: deferring update (trigger activated)
Setting up xdg-desktop-portal (1.14.3-1~flatpak1~20.04) ...
Created symlink /etc/systemd/user/graphical-session-pre.target.wants/xdg-desktop
-portal-rewrite-launchers.service → /usr/lib/systemd/user/xdg-desktop-portal-rew
rite-launchers.service.
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for initramfs-tools (0.136ubuntu6.7) ...
update-initramfs: Generating /boot/initrd.img-5.15.0-76-generic

What happened here?

In the above, it tells you the following:

Flatpak depends on fuse, which you removed, and then when upgrading xdg-desktop-portal 1.14.3-1~flatpak1, it was unable due to the missing fuse dependency, and the package was held back.

Is this dangerous?
Should i install fuse?

What was your reason for installing fuse3? Fuse3 necessitated the removal of the previous fuse package.
I suspect that reinstalling fuse will remove fuse3.
So let's sort that out real quickly- then see if we can resolve the Fuse dependency.

What do you mean?

I see, I misread that.
You were installing xdg-desktop portal - but this already comes pre-installed on Zorin OS. So now I am confused.
Why were you installing it?

Because xdg-package was held back ?
When i did the sudo apt update?

I think the above still shows why it was initially held back. So, since it was held back, you tried to manually install it?

Yes, I would reinstall fuse package.
Please relay what the terminal output of that is...

Like sudo apt install fuse ?

1 Like

Yes, run sudo apt fuse and please relay the terminal output here.

sudo apt install fuse
[sudo] password for jyh:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
gnome-shell-extension-remove-dropdown-arrows
gnome-shell-extension-x11gestures gnome-shell-extension-zorin-appindicator
gnome-shell-extension-zorin-magic-lamp-effect
gnome-shell-extension-zorin-menu gnome-shell-extension-zorin-printers
gnome-shell-extension-zorin-taskbar
gnome-shell-extension-zorin-window-move-effect gnome-shell-extensions
gnome-themes-extra gnome-themes-extra-data gtk2-engines-pixbuf libfuse3-3
libpugixml1v5 touchegg xwayland
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
fuse3 gnome-shell-extension-zorin-desktop-icons
gnome-shell-extensions-zorin-desktop xdg-desktop-portal
xdg-desktop-portal-gtk zorin-appearance-layouts-shell-core
zorin-desktop-session zorin-os-desktop
The following NEW packages will be installed:
fuse
0 upgraded, 1 newly installed, 8 to remove and 0 not upgraded.
Need to get 26,0 kB of archives.
After this operation, 3 100 kB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 Index of /ubuntu focal/main amd64 fuse amd64 2.9.9-3 [26,0 kB]
Fetched 26,0 kB in 0s (228 kB/s)
(Reading database ... 292277 files and directories currently installed.)
Removing xdg-desktop-portal-gtk (1.8.0-1~flatpak1~20.04) ...
Removing zorin-appearance-layouts-shell-core (3.0.4) ...
dpkg: gnome-shell-extensions-zorin-desktop: dependency problems, but removing an
yway as you requested:
zorin-os-desktop depends on gnome-shell-extensions-zorin-desktop.
zorin-desktop-session depends on gnome-shell-extensions-zorin-desktop.

Removing gnome-shell-extensions-zorin-desktop (3.4) ...
Removing gnome-shell-extension-zorin-desktop-icons (0.18.3) ...
Removing xdg-desktop-portal (1.14.3-1~flatpak1~20.04) ...
dpkg: fuse3: dependency problems, but removing anyway as you requested:
sshfs depends on fuse; however:
Package fuse is not installed.
Package fuse3 which provides fuse is to be removed.
ntfs-3g depends on fuse; however:
Package fuse is not installed.
Package fuse3 which provides fuse is to be removed.
gvfs-fuse depends on fuse; however:
Package fuse is not installed.
Package fuse3 which provides fuse is to be removed.
flatpak depends on fuse; however:
Package fuse is not installed.
Package fuse3 which provides fuse is to be removed.

Removing fuse3 (3.9.0-2) ...
update-initramfs: deferring update (trigger activated)
Selecting previously unselected package fuse.
(Reading database ... 292135 files and directories currently installed.)
Preparing to unpack .../fuse_2.9.9-3_amd64.deb ...
Unpacking fuse (2.9.9-3) ...
(Reading database ... 292145 files and directories currently installed.)
Removing zorin-os-desktop (1.5.14) ...
Removing zorin-desktop-session (4.2.3) ...
Setting up fuse (2.9.9-3) ...
Installing new version of config file /etc/fuse.conf ...
update-initramfs: deferring update (trigger activated)
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for initramfs-tools (0.136ubuntu6.7) ...
update-initramfs: Generating /boot/initrd.img-5.15.0-76-generic
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libglib2.0-0:amd64 (2.64.6-1~ubuntu20.04.6) ...
Processing triggers for libglib2.0-0:i386 (2.64.6-1~ubuntu20.04.6) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ..
?

I get E: Invalid operation fuse ?
Or did you mean sudo apt install fuse?

I am sorry, I was not clear.
I asked you to relay the output in the terminal. I was being to fast with my post.
When you clicked y to accept, it removed your entire Zorin OS desktop.
Please run in terminal

sudo apt install --reinstall zorin-os-desktop -y

That should restore the above removals.

There seems to be a flaw in the flatpack packaging here.
It sets a dependency on something that does not make sense.

No when i start the my computer i get whole black screen?
Is there some way to reinstall the zorin desktop?

Why did you restart?!

You will now need to use Grub Menu to enter Recovery Mode. Enter the Zorin (Recovery) option. In the Recovery Menu, first arrow key to Enable Networking and enable it. Then back to the recovery menu, arrow key down to "Drop to prompt" and in the prompt, run
sudo apt install --reinstall zorin-os-desktop -y

How do i get into Zorin Recovery option?

You must reboot, then tap the esc or tab key after seeing your motherboard splash screen to pull up the Grub Menu. From Grub Menu, select Advanced Options for Zorin

It's all black?


It may be a matter of timing. Tap the esc key like you are playing Mortal Kombat the moment you see the motherboard splash screen.


After that?