Fish-shell behaving differently after latest system update

Hi all, :wave:

it seems there´s just another thing I´d like to ask you about. Sorry for troubling you again. :slightly_frowning_face:

I just updated my system (Lubuntu 20.04.3) and this time there were quite a lot of updates available. I applied them all and after a reboot my default shell - which is fish

(https://fishshell.com/ ) - behaves differently. :astonished:

Until now whenever I opened a new terminal I got this default output:


Willkommen zu fish, der freundlichen interaktiven Shell
Type `help` for instructions on how to use fish
rosika@rosika-10159 ~>

After the recent updates something seems to have changed. Now I get some weird output prepended to the default one:

usr/share/fish/vendor_conf.d/snapd.fish (line 3): 
fish_add_path -aP $snap_bin_path
^
from sourcing file /usr/share/fish/vendor_conf.d/snapd.fish
        called on line 294 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
        called during startup
Willkommen zu fish, der freundlichen interaktiven Shell
Type `help` for instructions on how to use fish
rosika@rosika-10159 ~>

Although the functionality doesn´t seem to be impacted I´d very much like to know what might be amiss here :question:

Has anyone got any ideas :question:

Many thanks in advance for your help.
Many greetings from Rosika :slightly_smiling_face:

P.S.:

I don´t know whether it helps but for the sake of completeness I´ll provide the packages which have been updated here.
My guess is: (at least) one of them has to be the culprit. :thinking:

< ii  breeze-cursor-theme                           4:5.18.8-0ubuntu0.1                   all          Default Plasma cursor theme.
< ii  bsdutils                                      1:2.34-0.1ubuntu9.3                   amd64        basic utilities from 4.4BSD-Lite
< ii  fdisk                                         2.34-0.1ubuntu9.3                     amd64        collection of partitioning utilities
< ii  firejail                                      0.9.68-3~0ubuntu20.04.0               amd64        sandbox to restrict the application environment
< ii  firejail-profiles                             0.9.68-3~0ubuntu20.04.0               all          profiles for the firejail application sandbox
< ii  initramfs-tools                               0.136ubuntu6.7                        all          generic modular initramfs generator (automation)
< ii  initramfs-tools-bin                           0.136ubuntu6.7                        amd64        binaries used by initramfs-tools
< ii  initramfs-tools-core                          0.136ubuntu6.7                        all          generic modular initramfs generator (core tools)
< ii  kactivitymanagerd                             5.18.8-0ubuntu0.1                     amd64        System service to manage user's activities
< ii  kde-style-breeze                              4:5.18.8-0ubuntu0.1                   amd64        Widget style for Qt and KDE Software
< ii  libblkid1:amd64                               2.34-0.1ubuntu9.3                     amd64        block device ID library
< ii  libblkid1:i386                                2.34-0.1ubuntu9.3                     i386         block device ID library
< ii  libdrm-amdgpu1:amd64                          2.4.107-8ubuntu1~20.04.1              amd64        Userspace interface to amdgpu-specific kernel DRM services -- runtime
< ii  libdrm-amdgpu1:i386                           2.4.107-8ubuntu1~20.04.1              i386         Userspace interface to amdgpu-specific kernel DRM services -- runtime
< ii  libdrm-common                                 2.4.107-8ubuntu1~20.04.1              all          Userspace interface to kernel DRM services -- common files
< ii  libdrm-intel1:amd64                           2.4.107-8ubuntu1~20.04.1              amd64        Userspace interface to intel-specific kernel DRM services -- runtime
< ii  libdrm-intel1:i386                            2.4.107-8ubuntu1~20.04.1              i386         Userspace interface to intel-specific kernel DRM services -- runtime
< ii  libdrm-nouveau2:amd64                         2.4.107-8ubuntu1~20.04.1              amd64        Userspace interface to nouveau-specific kernel DRM services -- runtime
< ii  libdrm-nouveau2:i386                          2.4.107-8ubuntu1~20.04.1              i386         Userspace interface to nouveau-specific kernel DRM services -- runtime
< ii  libdrm-radeon1:amd64                          2.4.107-8ubuntu1~20.04.1              amd64        Userspace interface to radeon-specific kernel DRM services -- runtime
< ii  libdrm-radeon1:i386                           2.4.107-8ubuntu1~20.04.1              i386         Userspace interface to radeon-specific kernel DRM services -- runtime
< ii  libdrm2:amd64                                 2.4.107-8ubuntu1~20.04.1              amd64        Userspace interface to kernel DRM services -- runtime
< ii  libdrm2:i386                                  2.4.107-8ubuntu1~20.04.1              i386         Userspace interface to kernel DRM services -- runtime
< ii  libegl-mesa0:amd64                            21.2.6-0ubuntu0.1~20.04.1             amd64        free implementation of the EGL API -- Mesa vendor library
< ii  libfdisk1:amd64                               2.34-0.1ubuntu9.3                     amd64        fdisk partitioning library
< ii  libgbm1:amd64                                 21.2.6-0ubuntu0.1~20.04.1             amd64        generic buffer management API -- runtime
< ii  libgl1-mesa-dri:amd64                         21.2.6-0ubuntu0.1~20.04.1             amd64        free implementation of the OpenGL API -- DRI modules
< ii  libgl1-mesa-dri:i386                          21.2.6-0ubuntu0.1~20.04.1             i386         free implementation of the OpenGL API -- DRI modules
< ii  libglapi-mesa:amd64                           21.2.6-0ubuntu0.1~20.04.1             amd64        free implementation of the GL API -- shared library
< ii  libglapi-mesa:i386                            21.2.6-0ubuntu0.1~20.04.1             i386         free implementation of the GL API -- shared library
< ii  libglx-mesa0:amd64                            21.2.6-0ubuntu0.1~20.04.1             amd64        free implementation of the OpenGL API -- GLX vendor library
< ii  libglx-mesa0:i386                             21.2.6-0ubuntu0.1~20.04.1             i386         free implementation of the OpenGL API -- GLX vendor library
< ii  libkworkspace5-5                              4:5.18.8-0ubuntu0.1                   amd64        Plasma Workspace for KF5 library
< ii  libmount1:amd64                               2.34-0.1ubuntu9.3                     amd64        device mounting library
< ii  libmount1:i386                                2.34-0.1ubuntu9.3                     i386         device mounting library
< ii  libosmesa6:i386                               21.2.6-0ubuntu0.1~20.04.1             i386         Mesa Off-screen rendering extension
< ii  libsmartcols1:amd64                           2.34-0.1ubuntu9.3                     amd64        smart column output alignment library
< ii  libspeex1:amd64                               1.2~rc1.2-1.1ubuntu1.20.04.1          amd64        The Speex codec runtime library
< ii  libspeex1:i386                                1.2~rc1.2-1.1ubuntu1.20.04.1          i386         The Speex codec runtime library
< ii  libspeexdsp1:amd64                            1.2~rc1.2-1.1ubuntu1.20.04.1          amd64        The Speex extended runtime library
< ii  libuuid1:amd64                                2.34-0.1ubuntu9.3                     amd64        Universally Unique ID library
< ii  libuuid1:i386                                 2.34-0.1ubuntu9.3                     i386         Universally Unique ID library
< ii  libxatracker2:amd64                           21.2.6-0ubuntu0.1~20.04.1             amd64        X acceleration library -- runtime
< rc  linux-image-5.4.0-96-generic                  5.4.0-96.109                          amd64        Signed kernel image generic
< rc  linux-modules-5.4.0-96-generic                5.4.0-96.109                          amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
< rc  linux-modules-extra-5.4.0-96-generic          5.4.0-96.109                          amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
< ii  mesa-va-drivers:amd64                         21.2.6-0ubuntu0.1~20.04.1             amd64        Mesa VA-API video acceleration drivers
< ii  mesa-va-drivers:i386                          21.2.6-0ubuntu0.1~20.04.1             i386         Mesa VA-API video acceleration drivers
< ii  mesa-vdpau-drivers:amd64                      21.2.6-0ubuntu0.1~20.04.1             amd64        Mesa VDPAU video acceleration drivers
< ii  mesa-vdpau-drivers:i386                       21.2.6-0ubuntu0.1~20.04.1             i386         Mesa VDPAU video acceleration drivers
< ii  mesa-vulkan-drivers:amd64                     21.2.6-0ubuntu0.1~20.04.1             amd64        Mesa Vulkan graphics drivers
< ii  mesa-vulkan-drivers:i386                      21.2.6-0ubuntu0.1~20.04.1             i386         Mesa Vulkan graphics drivers
< ii  mount                                         2.34-0.1ubuntu9.3                     amd64        tools for mounting and manipulating filesystems
< ii  plasma-discover                               5.18.7-0ubuntu0.1                     amd64        Discover software management suite
< ii  plasma-discover-backend-fwupd                 5.18.7-0ubuntu0.1                     amd64        Discover software management suite - fwupd backend
< ii  plasma-discover-backend-snap                  5.18.7-0ubuntu0.1                     amd64        Discover software management suite - Snap backend
< ii  plasma-discover-common                        5.18.7-0ubuntu0.1                     all          Discover software manager suite (common data files)
< ii  rfkill                                        2.34-0.1ubuntu9.3                     amd64        tool for enabling and disabling wireless devices
< ii  snapd                                         2.54.2+20.04ubuntu2                   amd64        Daemon and tooling that enable snap packages
< ii  ubuntu-advantage-tools                        27.6~20.04.1                          amd64        management tools for Ubuntu Advantage
< ii  util-linux                                    2.34-0.1ubuntu9.3                     amd64        miscellaneous system utilities
< ii  uuid-runtime                                  2.34-0.1ubuntu9.3                     amd64        runtime components for the Universally Unique ID library
1 Like

Hi,

I´ve been looking around a bit and found out I´m not the only one suffering from this problem:

l´ll still have to read it through; just wanted to let you know… :blush:

UPDATE:

Seems I´ve been able to solve the problem.
Details follow.

O.K.:

According to the source I´ve mentioned:

The page you linked is for fish 3.3.1 - according to the release notes, fish_add_path was added in fish 3.2.0 … you appear to be using fish 3.1.0
steeldriver

Indeed I was using version 3.1.0-1.2 (as per ubuntu repositories). :smirk:

So I did the following:

sudo add-apt-repository ppa:fish-shell/release-3
sudo apt-get update

(from: fish shell - 3.x release series : “Fish shell maintainers” team )

Then I only had to update my system again with sudo apt upgrade and the version 3.3.1-1~focal is installed now. That solved the issue :blush:.

So upon opening a terminal now I get the old output again.

Phew, am I glad. :smiley:

Many greetings from Rosika :slightly_smiling_face:

1 Like

It seems you had a snap version installed.

@TrekJunky:

Hi Cane, :wave:

thanks for your reply.

Yet - believe it or not - it just seems that way from the somewhat curious output:

from sourcing file /usr/share/fish/vendor_conf.d/snapd.fish

That made me wonder, as I´m pretty certain I never installed fish as a snap. And indeed it´s not:

 env LANG=en_GB:en snap list --all
No snaps are installed yet. Try 'snap install hello-world'.

On the askubuntu-page (see above) one user came up with the same phenomenon:

FWIW, I’m having the same issue. Fish installed thru apt, running 3.1.0. Commenting out the line in /usr/share/fish/vendor_conf.d/snapd.fish does hide the error

mwmwm

As you can see he also installed fish via apt … and still got that weird reference to “snapd.fish”. :astonished:

Despite all I´m glad I could sort things out.

Many thanks, Cane, and have a nice weekend.
Many greetings from Rosika :slightly_smiling_face:

1 Like

Well it was a shot in the dark.

Hi,

well, it was still a logical thing to argue that way.
In fact I would´ve guessed some snap-related behaviour as well, considering the output. :wink:

Thanks a lot.
Many greetings
Rosika :slightly_smiling_face:

You’re welcome, but I didn’t solve it.

1 Like

Dear Cane, :wave:

don’t fret, I haven´t solved the issue by myself either.

It was the post within the askubuntu-forum (see above) which led me in the right direction. :blush:

What´s interesting is the fact that this very issue has been immediately been dealt with.
Right now it says:

Asked 2 days ago […] Viewed 297 times

Many greetings
Rosika :slightly_smiling_face: