I have recently installed Ubuntu 18.04.6 LTS and then installed Fritzing using packages from official repository by using below command

sudo apt-get install fritzing

Then on first launch it showed three windows with errors

Oops!
Sorry, we have a problem with the swapping mechanism.
Fritzing still works, but you won't be able to change parts properties.

Fritzing
Cannot read file /home/username/bins/core.fzb:
No such file or directory.

Fritzing
Fritzing cannot load the parts bin

and the parts list was empty as the result. I need to run Fritzing for my hobby project.


So we have a problem here - the official Fritzing 0.9.3b deb-package which is broken in 18.04 LTS.
I have reported a bug 1949087 about such behaviour.

Also I have created a PPA for Ubuntu 18.04 LTS with Fritzing 0.9.3b from Ubuntu 20.04 LTS.
So one can install the deb-packaged version using the following commands:

sudo add-apt-repository ppa:nrbrtx/fritzing
sudo apt-get update
sudo apt-get install fritzing

and it will function normally on Ubuntu 18.04 LTS.
To have updated parts use the hack below:

sudo rm -rf /usr/share/fritzing/parts

sudo apt-get install git
sudo git clone https://github.com/fritzing/fritzing-parts.git -b develop /usr/share/fritzing/parts

It should be noted that packages even for Ubuntu 21.10 is still 0.9.3b, so same version.
So if one needs newer version, then there is a way to replace it with Flatpak version as follows:

sudo apt-get purge --autoremove fritzing

sudo add-apt-repository ppa:flatpak/stable
sudo apt update
sudo apt install flatpak

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

flatpak install flathub org.fritzing.Fritzing

and then enjoy Fritzing 0.9.6 as the result.