singularity icon indicating copy to clipboard operation
singularity copied to clipboard

Installing dependency "fuse" can break Ubuntu systems and remove functionality by removing fuse3

Open RowanKell opened this issue 1 year ago • 1 comments

Version of Singularity

N/A

Describe the bug

When installing dependencies for Singularity on Ubuntu (22.04), one of the dependencies, "fuse," breaks/removes fuse3, which provides fuse, and removes gnome-control-center, the gnome settings app.

To Reproduce

Steps to reproduce the behavior: run sudo apt-get install -y fuse on Ubuntu

Expected behavior

The dependencies should just install, but this dependency should probably be switched with fuse3, per the comments in this forum post: https://askubuntu.com/questions/1500768/gui-uninstalled-after-installing-fuse

OS / Linux Distribution

Ubuntu 22.04.5 LTS

Additional context See this note from the FUSE github: https://github.com/AppImage/AppImageKit/wiki/FUSE Particularly, note that it says "Warning: While libfuse2 is OK, do not install the fuse package as of 22.04 or you may break your system."

I know this is not a bug with Singularity itself, but this behavior occurred when following the installation instructions given on Singularity's github repo. I am not sure what fuse/fuse3 is used for, but it seems like installing fuse on newer versions of Ubuntu is unsafe. If it is possible to use fuse3 instead of fuse as a dependency, then that may be better - or else at least provide a warning in the installation instructions that installing fuse will remove some functionality, and even break some Ubuntu systems.

I have attached the output of the sudo apt install -y fuse command

➜  ~ sudo apt-get install -y fuse             
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  apg gnome-control-center-faces gnome-online-accounts libcolord-gtk1 libfreerdp-server2-2
  libgsound0 libgupnp-av-1.0-3 libgupnp-dlna-2.0-4 librygel-core-2.6-2 librygel-db-2.6-2
  librygel-renderer-2.6-2 librygel-server-2.6-2 libvncserver1 mobile-broadband-provider-info
  network-manager-gnome python3-macaroonbakery python3-protobuf python3-pymacaroons python3-rfc3339
  rygel
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  fuse3 gnome-control-center gnome-remote-desktop
The following NEW packages will be installed:
  fuse
0 upgraded, 1 newly installed, 3 to remove and 17 not upgraded.
Need to get 0 B/27.0 kB of archives.
After this operation, 5,489 kB disk space will be freed.
(Reading database ... 468423 files and directories currently installed.)
Removing gnome-control-center (1:41.7-0ubuntu0.22.04.9) ...
Removing gnome-remote-desktop (42.9-0ubuntu0.22.04.2) ...
dpkg: fuse3: dependency problems, but removing anyway as you requested:
 snapd depends on fuse3 (>= 3.10.5-1) | fuse; however:
  Package fuse3 is to be removed.
  Package fuse is not installed.
  Package fuse3 which provides fuse is to be removed.
 snapd depends on fuse3 (>= 3.10.5-1) | fuse; however:
  Package fuse3 is to be removed.
  Package fuse is not installed.
  Package fuse3 which provides fuse is to be removed.

Removing fuse3 (3.10.5-1build1) ...
update-initramfs: deferring update (trigger activated)
Selecting previously unselected package fuse.
(Reading database ... 468348 files and directories currently installed.)
Preparing to unpack .../fuse_2.9.9-5ubuntu3_amd64.deb ...
Unpacking fuse (2.9.9-5ubuntu3) ...
Setting up fuse (2.9.9-5ubuntu3) ...
Installing new version of config file /etc/fuse.conf ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.140ubuntu13.5) ...
update-initramfs: Generating /boot/initrd.img-6.8.0-60-generic
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for libglib2.0-0:amd64 (2.72.4-0ubuntu2.5) ...
Processing triggers for libglib2.0-0:i386 (2.72.4-0ubuntu2.5) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...

RowanKell avatar Jun 16 '25 21:06 RowanKell

Thanks for the issue and PR. Released as 4.3.2 today.

dtrudg avatar Jun 19 '25 10:06 dtrudg