Nautilus-Share-Message: Called “net usershare info” but it failed: Failed to execute child process “net” (No such file or directory)

On Ubuntu 20.04.01 LTS, I got the following message while launching GNOME file browser Nautilus from the command line:

Nautilus-Share-Message: Called “net usershare info” but it failed: Failed to execute child process “net” (No such file or directory)


apt-file search /bin/net | grep -w 'net$'

The utility net is provided by the samba-common-bin Ubuntu package.

To install it:


apt install samba-common-bin

After installing this package, the error no longer pops up.

Error detected while processing function jedi#init_python[11]..26_display_exception:

While using Vim in a Python virtual environment created using the venv module, this error pops up when opening a Python script:

Error detected while processing function jedi#init_python[11]..26_display_exception:
line 19:
Error: jedi-vim failed to initialize Python: jedi#setup_python_imports: ModuleNotFoundError: No module named ‘jedi’ (in function jedi#init_python[4]..26_init_python[27]..jedi#setup_python_imports, li
ne 27). See :messages and/or :JediDebugInfo for more information.

Let’s gather some information about the working environment:

Vim version:

:vers

VIM - Vi IMproved 8.1 (2018 May 18, compiled Mar 19 2020 13:12:18)
Included patches: 1-875, 878, 884, 948, 1046, 1365-1368, 1382, 1401

OS information:

cat /etc/os-release
NAME="Ubuntu"
VERSION="19.10 (Eoan Ermine)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 19.10"
VERSION_ID="19.10"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=eoan
UBUNTU_CODENAME=eoan

Current status of the jedi-vim plugin installation:

dpkg -l |grep vim-python-jedi

Package: vim-python-jedi
Version: 0.14.1-1
Priority: optional
Section: universe/python
Source: python-jedi
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Piotr Ożarowski
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 117 kB
Depends: python3-jedi, vim-nox | vim-python
Recommends: vim-addon-manager
Homepage: https://github.com/davidhalter/jedi
Download-Size: 24.0 kB
APT-Manual-Installed: yes
APT-Sources: http://ca.archive.ubuntu.com/ubuntu eoan/universe amd64 Packages
Description: autocompletion tool for Python - VIM addon files
Jedi is an autocompletion tool for Python. It works. With and without
syntax errors. Sometimes it sucks, but that's normal in dynamic languages.
But it sucks less than other tools. It understands almost all of the basic
Python syntax elements including many builtins.
.
`vim-addons install python-jedi` will create all needed symlinks in
~/.vim/

Vim plugins using the OS package installer (for Debian/Ubuntu based distros) are handled by the vim-addons utility.

To list all the installed Vim plugins:

vim-addons list


editexisting
espeak
justify
matchit
python-jedi

The version provided by Ubuntu for jedi-vim is older than the latest one publicly available. For more details about the releases: jedi-vim releases

Since version 8, Vim has now a native plugins management.

For more details:


:h packages
:h package-create

To install the vanilla version of jedi-vim and have it available at Vim startup:


unzip -d jedi-vim ~/Downloads/jedi-vim-0.10.0.zip
mkdir -p ~/.vim/pack/vendor/start/jedi-vim
cp -rf jedi/vim/* ~/.vim/pack/vendor/start/jedi-vim/

~./vim/pack/vendor/start is the destination folder for any packages that contain plugins for Vim and automatically enabled at startup.

The plugin is now available and ready to be used in Vim.

If Vim is used in a Python virtual environment, the following error pops up:

jedi-vim: Error when loading the jedi python module (module ‘jedi’ has no attribute ‘__version__’). Please ensure that Jedi is installed correctly (see Installation in the README.

Furthermore, the Python code autocompletion feature provided by jedi-vim is not available in Vim.

2 options are available to fix this issue:

Either install the Python module jedi within the virtual environment using pip

Or re-create the virtual environment and enable access to the system site-packages dir (https://docs.python.org/3.7/library/venv.html) as follows:

python3 -m venv --system-site-packages my_new_env

Enable this new virtual environment:

cd $HOME/my_new_env

source bin/activate

python -c 'import jedi'

If there is anything wrong with loading this module:

Traceback (most recent call last):
File “”, line 1, in
ModuleNotFoundError: No module named ‘jedi’

This module will be picked up from the version installed using the OS package manager. For Ubuntu, jedi is provided by the python3-jedi package.

Missing documentation in Vim on Suse Linux Enterprise Server 12 SP4

Offline Vim documentation usually comes with the Vim binary itself and can be accessed with the following Vim command:

:h help.txt

Regarding the OS vendor, the documentation is not always automatically installed.

This issue occurred on Suse Linux Enterprise Server 12 SP4.

To check the existing installed Vim related packages:


zypper search -i vim

Only the vim binary is installed and provided by the package vim

What is needed is Vim runtime files.


zypper search vim

vim-data is the package that provides Vim runtime files, including Vim documentation.

To install it:


zypper install vim-data

The documentation is now available in Vim:


:h help.txt

[WARNING] This document format requires a nonempty element

If you are using pandoc for converting markdown files to html files, you can come up with this warning message:

[WARNING] This document format requires a nonempty element

This message pop up while using gfm (GitHub Flavored Markdown) and the version of pandoc provided on Debian stable.(https://packages.debian.org/buster/pandoc, version 2.2.1)

As a solution, it is suggested to specify some metadata parameters as argument to pandoc command line tool.
Let’s give an example:

file1=$(basename -s .md $file)
file1=${file1/_/ }
pandoc -s -f gfm -t html+raw_html --metadata pagetitle:"${file1^}" -o ${file%md}"$suffix" $file

Despite such setting, the warning message still pop up.
The workaround has been to upgrade pandoc to a newer version (2.5). No need to provide the metadata details anymore to get rid of this warning.

How to display the current time in a different timezone than yours ?

To quote an example from the Superuser forum:

It’s 6pm in Taipei, what time is it here?

date --date='TZ="Asia/Taipei" 18:00'
Fri Jul 16 11:00:00 BST 2010

At 11am here in London, what time is it in Taipei?

TZ=Asia/Taipei date -d "11:00 BST"
Fri Jul 16 18:00:00 CST 2010

Source: https://superuser.com/questions/164339/timezone-conversion-by-command-line

Could not launch application ‘blueman.desktop’: Unable to start application: Failed to execute child process “blueman-applet” (No such file or directory)

After an upgrade from Debian 9.9 to Debian 10, some errors were found in my .xsessions-errors file.

The apt-file utility provided by the Debian distribution provides an easy way to provide the matching Debian package for a given file.

To install it :

apt install apt-file

To provide it with the latest details from Debian repos :

apt-file update

To look for the corresponding Debian package that blueman.desktop file belongs to :

apt-file search blueman.desktop
blueman: /etc/xdg/autostart/blueman.desktop
blueman: /usr/share/Thunar/sendto/thunar-sendto-blueman.desktop

To install it :

apt install blueman

More details :

Details of apt-file Debian package

Details of blueman Debian package

Could not launch application ‘hplip-systray.desktop’: Unable to start application: Failed to execute child process “hp-systray” (No such fil e or directory)

After an upgrade from Debian 9.9 to Debian 10, some errors were found in my .xsessions-errors file.

The apt-file utility provided by the Debian distribution provides an easy way to provide the matching Debian package for a given file.

To install it :

apt install apt-file

To provide it with the latest details from Debian repos :

apt-file update

To look for the corresponding Debian package that hplip-systray.desktop file belongs to :

apt-file search hplip-systray.desktop
hplip-gui: /etc/xdg/autostart/hplip-systray.desktop

To install it :

apt install hplip-gui

More details :

Details of apt-file Debian package

Details of hplip-gui Debian package

To detect whether software based rendering is needed for Qt 5 the glxinfo program is a requirement but it was not found on this system.

After an upgrade from Debian 9.9 to Debian 10, some errors were found in my .xsessions-errors file.

To detect whether software based rendering is needed for Qt 5 the glxinfo program is a requirement but it was not found on this system.

The glxinfo program is provided by the mesa-utils Debian package.

To install it :

apt install mesa-utils

More details : Details of mesa-utils Debian package